diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index cda51c33..de98a74e 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -8,6 +8,7 @@ + diff --git a/src/TemplateRefGenerator.Tests/BicepCompilationTests.cs b/src/TemplateRefGenerator.Tests/BicepCompilationTests.cs new file mode 100644 index 00000000..a89ca376 --- /dev/null +++ b/src/TemplateRefGenerator.Tests/BicepCompilationTests.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Azure.Deployments.Testing.Utilities; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Bicep.RpcClient; +using FluentAssertions; +using Bicep.RpcClient.Models; +using System.Diagnostics.CodeAnalysis; +using System.Text.Json.Serialization; +using System.Text.Json; +using System.Text.Encodings.Web; +using Microsoft.WindowsAzure.ResourceStack.Common.Extensions; + +namespace TemplateRefGenerator.Tests; + +[TestClass] +public class BicepCompilationTests +{ + [NotNull] + public TestContext? TestContext { get; set; } + + [TestMethod] + [TestCategory(BaselineHelper.BaselineTestCategory)] + [EmbeddedFilesTestData(@"^Files/compilation/bicep-diagnostics.md$")] + public async Task All_bicep_samples_are_valid(EmbeddedFile embeddedFile) + { + // This test verifies there are no errors, and that the warnings match those that are expected + var baselineFolder = BaselineFolder.BuildOutputFolder(TestContext, embeddedFile); + var resultsFile = baselineFolder.GetBaselineFile(embeddedFile.FileName); + RemarksLoader remarksLoader = new(); + + BicepClientFactory bicepClientFactory = new(new()); + using var bicep = await bicepClientFactory.DownloadAndInitialize(new() + { + BicepVersion = "0.41.2" + }, CancellationToken.None); + + var markdownOutput = """ + # Bicep Sample Diagnostics + + """; + + var providers = remarksLoader.GetProviderNamespacesWithRemarks(); + var tempPath = Path.GetTempPath(); + Directory.CreateDirectory(tempPath); + var tempFile = Path.Combine(tempPath, Guid.NewGuid() + ".bicep"); + foreach (var provider in providers.OrderBy(x => x, StringComparer.OrdinalIgnoreCase)) + { + var bicepSamples = remarksLoader.GetRemarks(provider).BicepSamples ?? []; + + foreach (var sample in bicepSamples.OrderBy(x => x.Path, StringComparer.OrdinalIgnoreCase)) + { + var bicepContents = remarksLoader.GetCodeSample(provider, sample); + File.WriteAllText(tempFile, bicepContents); + + var result = await bicep.Compile(new(tempFile)); + + result.Diagnostics.Count(x => string.Equals(x.Level, "Error", StringComparison.OrdinalIgnoreCase)).Should().Be(0, because: $"Bicep sample '{sample.Path}' should not have compilation errors"); + + if (result.Diagnostics.Any()) + { + markdownOutput += $""" + ## {sample.Path} + + """; + foreach (var diag in result.Diagnostics.OrderBy(x => x.Range.Start.Line).ThenBy(x => x.Range.Start.Char)) + { + markdownOutput += $""" + * [[{diag.Code}] {diag.Level}: {diag.Message}](../../../../settings/remarks/{provider}/{sample.Path}#L{diag.Range.Start.Line + 1}-L{diag.Range.End.Line + 1}) + + """; + } + } + } + } + + resultsFile.WriteToOutputFolder(markdownOutput); + resultsFile.ShouldHaveExpectedValue(); + } +} \ No newline at end of file diff --git a/src/TemplateRefGenerator.Tests/Files/compilation/bicep-diagnostics.md b/src/TemplateRefGenerator.Tests/Files/compilation/bicep-diagnostics.md new file mode 100644 index 00000000..bdc793fc --- /dev/null +++ b/src/TemplateRefGenerator.Tests/Files/compilation/bicep-diagnostics.md @@ -0,0 +1,525 @@ +# Bicep Sample Diagnostics +## samples/service/authorizationservers/main.bicep +* [[no-unused-params] Warning: Parameter "oauthClientId" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/authorizationservers/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "oauthClientSecret" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/authorizationservers/main.bicep#L7-L7) +* [[BCP036] Warning: The property "clientId" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.apimanagement/samples/service/authorizationservers/main.bicep#L42-L42) +## samples/service/caches/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.apimanagement/samples/service/caches/main.bicep#L4-L4) +## samples/service/gateways/certificateauthorities/main.bicep +* [[no-unused-params] Warning: Parameter "certificateData" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/gateways/certificateauthorities/main.bicep#L5-L5) +* [[no-unused-params] Warning: Parameter "certificatePassword" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/gateways/certificateauthorities/main.bicep#L8-L8) +## samples/service/identityproviders/main.bicep +* [[no-unused-params] Warning: Parameter "identityProviderClientId" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/identityproviders/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "identityProviderClientSecret" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/identityproviders/main.bicep#L7-L7) +* [[BCP036] Warning: The property "clientId" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.apimanagement/samples/service/identityproviders/main.bicep#L49-L49) +* [[BCP036] Warning: The property "clientSecret" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.apimanagement/samples/service/identityproviders/main.bicep#L50-L50) +## samples/service/openidconnectproviders/main.bicep +* [[no-unused-params] Warning: Parameter "openidClientId" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/openidconnectproviders/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "openidClientSecret" is declared but never used.](../../../../settings/remarks/microsoft.apimanagement/samples/service/openidconnectproviders/main.bicep#L7-L7) +* [[BCP036] Warning: The property "clientId" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.apimanagement/samples/service/openidconnectproviders/main.bicep#L37-L37) +## samples/containerapps/main.bicep +* [[BCP073] Warning: The property "ephemeralStorage" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.app/samples/containerapps/main.bicep#L21-L21) +## samples/managedenvironments/certificates/main.bicep +* [[no-unused-params] Warning: Parameter "certificatePassword" is declared but never used.](../../../../settings/remarks/microsoft.app/samples/managedenvironments/certificates/main.bicep#L5-L5) +## samples/managedenvironments/storages/main.bicep +* [[BCP053] Warning: The type "StorageAccountPropertiesCreateParametersOrStorageAccountProperties" does not contain property "name". Available properties include "accessTier", "allowBlobPublicAccess", "allowCrossTenantReplication", "allowedCopyScope", "allowSharedKeyAccess", "azureFilesIdentityBasedAuthentication", "blobRestoreStatus", "creationTime", "customDomain", "defaultToOAuthAuthentication", "dnsEndpointType", "encryption", "failoverInProgress", "geoReplicationStats", "immutableStorageWithVersioning", "isHnsEnabled", "isLocalUserEnabled", "isNfsV3Enabled", "isSftpEnabled", "keyCreationTime", "keyPolicy", "largeFileSharesState", "lastGeoFailoverTime", "minimumTlsVersion", "networkAcls", "primaryEndpoints", "primaryLocation", "privateEndpointConnections", "provisioningState", "publicNetworkAccess", "routingPreference", "sasPolicy", "secondaryEndpoints", "secondaryLocation", "statusOfPrimary", "statusOfSecondary", "storageAccountSkuConversionStatus", "supportsHttpsTrafficOnly".](../../../../settings/remarks/microsoft.app/samples/managedenvironments/storages/main.bicep#L85-L85) +## samples/policyassignments/main.bicep +* [[BCP073] Warning: The property "scope" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.authorization/samples/policyassignments/main.bicep#L20-L20) +## samples/policyexemptions/main.bicep +* [[BCP073] Warning: The property "scope" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.authorization/samples/policyexemptions/main.bicep#L11-L11) +## samples/roledefinitions/main.bicep +* [[no-unused-params] Warning: Parameter "resourceName" is declared but never used.](../../../../settings/remarks/microsoft.authorization/samples/roledefinitions/main.bicep#L3-L3) +## samples/automationaccounts/connections/main.bicep +* [[no-unused-params] Warning: Parameter "servicePrincipalApplicationId" is declared but never used.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/connections/main.bicep#L4-L4) +* [[BCP036] Warning: The property "ApplicationId" expected a value of type "string" but the provided value is of type "null".](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/connections/main.bicep#L29-L29) +## samples/automationaccounts/credentials/main.bicep +* [[no-unused-params] Warning: Parameter "automationCredentialPassword" is declared but never used.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/credentials/main.bicep#L5-L5) +* [[BCP036] Warning: The property "password" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/credentials/main.bicep#L26-L26) +## samples/automationaccounts/hybridrunbookworkergroups/hybridrunbookworkers/main.bicep +* [[no-unused-params] Warning: Parameter "automationWorkerPassword" is declared but never used.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/hybridrunbookworkergroups/hybridrunbookworkers/main.bicep#L5-L5) +* [[no-unused-params] Warning: Parameter "vmAdminPassword" is declared but never used.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/hybridrunbookworkergroups/hybridrunbookworkers/main.bicep#L8-L8) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/hybridrunbookworkergroups/hybridrunbookworkers/main.bicep#L76-L76) +* [[BCP036] Warning: The property "password" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/hybridrunbookworkergroups/hybridrunbookworkers/main.bicep#L135-L135) +## samples/automationaccounts/hybridrunbookworkergroups/main.bicep +* [[no-unused-params] Warning: Parameter "credentialPassword" is declared but never used.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/hybridrunbookworkergroups/main.bicep#L5-L5) +* [[BCP036] Warning: The property "password" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/hybridrunbookworkergroups/main.bicep#L26-L26) +## samples/automationaccounts/modules/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net"](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/modules/main.bicep#L23-L23) +## samples/automationaccounts/powershell72modules/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Automation/automationAccounts/powerShell72Modules@2020-01-13-preview" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/powershell72modules/main.bicep#L18-L18) +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net"](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/powershell72modules/main.bicep#L23-L23) +## samples/automationaccounts/softwareupdateconfigurations/main.bicep +* [[BCP073] Warning: The property "startTimeOffsetMinutes" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/softwareupdateconfigurations/main.bicep#L29-L29) +## samples/automationaccounts/sourcecontrols/main.bicep +* [[no-unused-params] Warning: Parameter "pat" is declared but never used.](../../../../settings/remarks/microsoft.automation/samples/automationaccounts/sourcecontrols/main.bicep#L5-L5) +## samples/b2cdirectories/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.AzureActiveDirectory/b2cDirectories@2021-04-01-preview" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.azureactivedirectory/samples/b2cdirectories/main.bicep#L11-L11) +## samples/batchaccounts/certificates/main.bicep +* [[no-unused-params] Warning: Parameter "certificateData" is declared but never used.](../../../../settings/remarks/microsoft.batch/samples/batchaccounts/certificates/main.bicep#L5-L5) +* [[BCP036] Warning: The property "data" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.batch/samples/batchaccounts/certificates/main.bicep#L25-L25) +## samples/batchaccounts/pools/main.bicep +* [[BCP036] Warning: The property "placement" expected a value of type "'CacheDisk' | null" but the provided value is of type "''". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.batch/samples/batchaccounts/pools/main.bicep#L32-L32) +* [[BCP036] Warning: The property "nodeDeallocationOption" expected a value of type "'Requeue' | 'RetainedData' | 'TaskCompletion' | 'Terminate' | null" but the provided value is of type "''". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.batch/samples/batchaccounts/pools/main.bicep#L42-L42) +## samples/profiles/rulesets/rules/main.bicep +* [[no-unused-params] Warning: Parameter "cdnLocation" is declared but never used.](../../../../settings/remarks/microsoft.cdn/samples/profiles/rulesets/rules/main.bicep#L2-L2) +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.cdn/samples/profiles/rulesets/rules/main.bicep#L4-L4) +* [[BCP329] Warning: The provided value can be as small as -4 and may be too small to assign to a target with a configured minimum of 0.](../../../../settings/remarks/microsoft.cdn/samples/profiles/rulesets/rules/main.bicep#L30-L30) +* [[BCP329] Warning: The provided value can be as small as -4 and may be too small to assign to a target with a configured minimum of 0.](../../../../settings/remarks/microsoft.cdn/samples/profiles/rulesets/rules/main.bicep#L50-L50) +## samples/disks/main.bicep +* [[BCP036] Warning: The property "osType" expected a value of type "'Linux' | 'Windows' | null" but the provided value is of type "''". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.compute/samples/disks/main.bicep#L16-L16) +## samples/galleries/applications/versions/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net"](../../../../settings/remarks/microsoft.compute/samples/galleries/applications/versions/main.bicep#L92-L92) +## samples/restorepointcollections/main.bicep +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.compute/samples/restorepointcollections/main.bicep#L65-L65) +## samples/restorepointcollections/restorepoints/main.bicep +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.compute/samples/restorepointcollections/restorepoints/main.bicep#L65-L65) +## samples/virtualmachines/basic/main.bicep +* [[no-unused-params] Warning: Parameter "adminUsername" is declared but never used.](../../../../settings/remarks/microsoft.compute/samples/virtualmachines/basic/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.compute/samples/virtualmachines/basic/main.bicep#L7-L7) +## samples/virtualmachines/extensions/main.bicep +* [[no-unused-params] Warning: Parameter "vmAdminPassword" is declared but never used.](../../../../settings/remarks/microsoft.compute/samples/virtualmachines/extensions/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "testadmin"](../../../../settings/remarks/microsoft.compute/samples/virtualmachines/extensions/main.bicep#L48-L48) +## samples/virtualmachines/runcommands/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.compute/samples/virtualmachines/runcommands/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.compute/samples/virtualmachines/runcommands/main.bicep#L64-L64) +## samples/virtualmachinescalesets/extensions/main.bicep +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.compute/samples/virtualmachinescalesets/extensions/main.bicep#L64-L64) +## samples/virtualmachinescalesets/main.bicep +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.compute/samples/virtualmachinescalesets/main.bicep#L64-L64) +## samples/ledgers/main.bicep +* [[no-unused-params] Warning: Parameter "ledgerCertificate" is declared but never used.](../../../../settings/remarks/microsoft.confidentialledger/samples/ledgers/main.bicep#L5-L5) +## samples/registries/agentpools/main.bicep +* [[BCP073] Warning: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/agentpools/main.bicep#L34-L34) +## samples/registries/credentialsets/main.bicep +* [[no-unused-params] Warning: Parameter "credentialUsername" is declared but never used.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/credentialsets/main.bicep#L5-L5) +* [[secure-parameter-default] Warning: Secure parameters should not have hardcoded defaults (except for empty or newGuid()).](../../../../settings/remarks/microsoft.containerregistry/samples/registries/credentialsets/main.bicep#L5-L5) +* [[no-unused-params] Warning: Parameter "credentialPassword" is declared but never used.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/credentialsets/main.bicep#L8-L8) +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "vault.azure.net"](../../../../settings/remarks/microsoft.containerregistry/samples/registries/credentialsets/main.bicep#L80-L80) +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "vault.azure.net"](../../../../settings/remarks/microsoft.containerregistry/samples/registries/credentialsets/main.bicep#L81-L81) +## samples/registries/main.bicep +* [[BCP073] Warning: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/main.bicep#L34-L34) +## samples/registries/scopemaps/main.bicep +* [[BCP073] Warning: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/scopemaps/main.bicep#L34-L34) +## samples/registries/taskruns/main.bicep +* [[BCP073] Warning: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/taskruns/main.bicep#L34-L34) +## samples/registries/tasks/main.bicep +* [[BCP073] Warning: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/tasks/main.bicep#L34-L34) +## samples/registries/tokens/main.bicep +* [[BCP073] Warning: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/tokens/main.bicep#L34-L34) +## samples/registries/webhooks/main.bicep +* [[BCP073] Warning: The property "tier" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/webhooks/main.bicep#L34-L34) +* [[use-secure-value-for-secure-inputs] Warning: Property 'serviceUri' expects a secure value, but the value provided may not be secure.](../../../../settings/remarks/microsoft.containerregistry/samples/registries/webhooks/main.bicep#L48-L48) +## samples/fleets/members/main.bicep +* [[BCP328] Warning: The provided value (which will always be less than or equal to 0) is too small to assign to a target for which the minimum allowable value is 1.](../../../../settings/remarks/microsoft.containerservice/samples/fleets/members/main.bicep#L33-L33) +## samples/managedclusters/trustedaccessrolebindings/main.bicep +* [[BCP328] Warning: The provided value (which will always be less than or equal to 0) is too small to assign to a target for which the minimum allowable value is 1.](../../../../settings/remarks/microsoft.containerservice/samples/managedclusters/trustedaccessrolebindings/main.bicep#L43-L43) +* [[BCP334] Warning: The provided value can have a length as small as 2 and may be too short to assign to a target with a configured minimum length of 3.](../../../../settings/remarks/microsoft.containerservice/samples/managedclusters/trustedaccessrolebindings/main.bicep#L87-L87) +## samples/factories/credentials/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.datafactory/samples/factories/credentials/main.bicep#L13-L13) +## samples/backupvaults/backupinstances/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dataprotection/samples/backupvaults/backupinstances/main.bicep#L5-L5) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dataprotection/samples/backupvaults/backupinstances/main.bicep#L25-L25) +* [[BCP073] Warning: The property "id" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dataprotection/samples/backupvaults/backupinstances/main.bicep#L108-L108) +## samples/backupvaults/backuppolicies/main.bicep +* [[BCP073] Warning: The property "id" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dataprotection/samples/backupvaults/backuppolicies/main.bicep#L48-L48) +## samples/accounts/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "identity". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.datashare/samples/accounts/main.bicep#L4-L4) +## samples/accounts/shares/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "identity". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.datashare/samples/accounts/shares/main.bicep#L4-L4) +## samples/servers/configurations/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/configurations/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/configurations/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/configurations/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/configurations/main.bicep#L14-L14) +## samples/servers/databases/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/databases/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/databases/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/databases/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/databases/main.bicep#L14-L14) +## samples/servers/firewallrules/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/firewallrules/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/firewallrules/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/firewallrules/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/firewallrules/main.bicep#L14-L14) +## samples/servers/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/main.bicep#L14-L14) +## samples/servers/virtualnetworkrules/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/virtualnetworkrules/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/virtualnetworkrules/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/virtualnetworkrules/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformariadb/samples/servers/virtualnetworkrules/main.bicep#L14-L14) +## samples/flexibleservers/administrators/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/flexibleservers/administrators/main.bicep#L5-L5) +## samples/flexibleservers/configurations/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/flexibleservers/configurations/main.bicep#L5-L5) +## samples/flexibleservers/databases/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/flexibleservers/databases/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/flexibleservers/databases/main.bicep#L7-L7) +## samples/flexibleservers/firewallrules/main.bicep +* [[no-unused-params] Warning: Parameter "mysqlAdministratorPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/flexibleservers/firewallrules/main.bicep#L5-L5) +## samples/flexibleservers/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/flexibleservers/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/flexibleservers/main.bicep#L7-L7) +## samples/servers/administrators/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/administrators/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/administrators/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/administrators/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/administrators/main.bicep#L14-L14) +## samples/servers/configurations/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/configurations/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/configurations/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/configurations/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/configurations/main.bicep#L14-L14) +## samples/servers/databases/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/databases/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/databases/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/databases/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/databases/main.bicep#L14-L14) +## samples/servers/firewallrules/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/firewallrules/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/firewallrules/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/firewallrules/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/firewallrules/main.bicep#L14-L14) +## samples/servers/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/main.bicep#L14-L14) +## samples/servers/virtualnetworkrules/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/virtualnetworkrules/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/virtualnetworkrules/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/virtualnetworkrules/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbformysql/samples/servers/virtualnetworkrules/main.bicep#L14-L14) +## samples/flexibleservers/administrators/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/administrators/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/administrators/main.bicep#L7-L7) +## samples/flexibleservers/configurations/main.bicep +* [[no-unused-params] Warning: Parameter "postgresqlAdministratorPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/configurations/main.bicep#L5-L5) +## samples/flexibleservers/databases/main.bicep +* [[no-unused-params] Warning: Parameter "postgresqlAdministratorPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/databases/main.bicep#L5-L5) +## samples/flexibleservers/firewallrules/main.bicep +* [[no-unused-params] Warning: Parameter "postgresqlAdministratorPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/firewallrules/main.bicep#L5-L5) +## samples/flexibleservers/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/main.bicep#L7-L7) +## samples/flexibleservers/virtualendpoints/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/flexibleservers/virtualendpoints/main.bicep#L5-L5) +## samples/servergroupsv2/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servergroupsv2/main.bicep#L5-L5) +## samples/servers/administrators/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/administrators/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/administrators/main.bicep#L7-L7) +* [[no-unused-params] Warning: Parameter "adminLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/administrators/main.bicep#L9-L9) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/administrators/main.bicep#L15-L15) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/administrators/main.bicep#L16-L16) +* [[BCP036] Warning: The property "login" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/administrators/main.bicep#L42-L42) +## samples/servers/configurations/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/configurations/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/configurations/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/configurations/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/configurations/main.bicep#L14-L14) +## samples/servers/databases/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/databases/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/databases/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/databases/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/databases/main.bicep#L14-L14) +## samples/servers/firewallrules/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/firewallrules/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/firewallrules/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/firewallrules/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/firewallrules/main.bicep#L14-L14) +## samples/servers/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/main.bicep#L14-L14) +## samples/servers/virtualnetworkrules/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/virtualnetworkrules/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/virtualnetworkrules/main.bicep#L7-L7) +* [[BCP036] Warning: The property "administratorLogin" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/virtualnetworkrules/main.bicep#L13-L13) +* [[BCP036] Warning: The property "administratorLoginPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.dbforpostgresql/samples/servers/virtualnetworkrules/main.bicep#L14-L14) +## samples/applicationgroups/applications/main.bicep +* [[BCP187] Warning: The property "location" does not exist in the resource or type definition, although it might still be valid. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.desktopvirtualization/samples/applicationgroups/applications/main.bicep#L30-L30) +## samples/devcenters/catalogs/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "vault.azure.net"](../../../../settings/remarks/microsoft.devcenter/samples/devcenters/catalogs/main.bicep#L17-L17) +## samples/iothubs/certificates/main.bicep +* [[no-unused-params] Warning: Parameter "certificateContent" is declared but never used.](../../../../settings/remarks/microsoft.devices/samples/iothubs/certificates/main.bicep#L5-L5) +## samples/accounts/instances/main.bicep +* [[BCP073] Warning: The property "accountName" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.deviceupdate/samples/accounts/instances/main.bicep#L43-L43) +## samples/labs/policysets/policies/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "properties". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.devtestlab/samples/labs/policysets/policies/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.DevTestLab/labs/policySets@2018-09-15" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.devtestlab/samples/labs/policysets/policies/main.bicep#L10-L10) +## samples/labs/virtualmachines/main.bicep +* [[no-unused-params] Warning: Parameter "vmPassword" is declared but never used.](../../../../settings/remarks/microsoft.devtestlab/samples/labs/virtualmachines/main.bicep#L5-L5) +* [[BCP073] Warning: The property "osType" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.devtestlab/samples/labs/virtualmachines/main.bicep#L34-L34) +## samples/schedules/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.devtestlab/samples/schedules/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "testadmin"](../../../../settings/remarks/microsoft.devtestlab/samples/schedules/main.bicep#L82-L82) +## samples/digitaltwinsinstances/endpoints/main.bicep +* [[use-secure-value-for-secure-inputs] Warning: Property 'primaryConnectionString' expects a secure value, but the value provided may not be secure.](../../../../settings/remarks/microsoft.digitaltwins/samples/digitaltwinsinstances/endpoints/main.bicep#L31-L31) +* [[use-secure-value-for-secure-inputs] Warning: Property 'secondaryConnectionString' expects a secure value, but the value provided may not be secure.](../../../../settings/remarks/microsoft.digitaltwins/samples/digitaltwinsinstances/endpoints/main.bicep#L32-L32) +## samples/databaseaccounts/mongodbuserdefinitions/main.bicep +* [[no-unused-params] Warning: Parameter "mongodbUserPassword" is declared but never used.](../../../../settings/remarks/microsoft.documentdb/samples/databaseaccounts/mongodbuserdefinitions/main.bicep#L5-L5) +## samples/databaseaccounts/sqlroleassignments/main.bicep +* [[BCP053] Warning: The type "ClusterProperties" does not contain property "identity". Available properties include "acceptedAudiences", "allowedFqdnList", "allowedIpRangeList", "dataIngestionUri", "enableAutoStop", "enableDiskEncryption", "enableDoubleEncryption", "enablePurge", "enableStreamingIngest", "engineType", "keyVaultProperties", "languageExtensions", "migrationCluster", "optimizedAutoscale", "privateEndpointConnections", "provisioningState", "publicIPType", "publicNetworkAccess", "restrictOutboundNetworkAccess", "state", "stateReason", "trustedExternalTenants", "uri", "virtualNetworkConfiguration".](../../../../settings/remarks/microsoft.documentdb/samples/databaseaccounts/sqlroleassignments/main.bicep#L78-L78) +## samples/elasticsans/volumegroups/volumes/main.bicep +* [[BCP334] Warning: The provided value can have a length as small as 2 and may be too short to assign to a target with a configured minimum length of 3.](../../../../settings/remarks/microsoft.elasticsan/samples/elasticsans/volumegroups/volumes/main.bicep#L31-L31) +## samples/systemtopics/eventsubscriptions/main.bicep +* [[no-unnecessary-dependson] Warning: Remove unnecessary dependsOn entry 'storageAccount'.](../../../../settings/remarks/microsoft.eventgrid/samples/systemtopics/eventsubscriptions/main.bicep#L130-L130) +## samples/guestconfigurationassignments/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.guestconfiguration/samples/guestconfigurationassignments/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.guestconfiguration/samples/guestconfigurationassignments/main.bicep#L80-L80) +## samples/clusters/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net"](../../../../settings/remarks/microsoft.hdinsight/samples/clusters/main.bicep#L89-L89) +* [[BCP036] Warning: The property "tier" expected a value of type "'Premium' | 'Standard' | null" but the provided value is of type "'standard'". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.hdinsight/samples/clusters/main.bicep#L94-L94) +## samples/workspaces/fhirservices/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "login.microsoftonline.com"](../../../../settings/remarks/microsoft.healthcareapis/samples/workspaces/fhirservices/main.bicep#L18-L18) +## samples/workspaces/iotconnectors/fhirdestinations/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "login.microsoftonline.com"](../../../../settings/remarks/microsoft.healthcareapis/samples/workspaces/iotconnectors/fhirdestinations/main.bicep#L44-L44) +## samples/autoscalesettings/main.bicep +* [[no-unused-params] Warning: Parameter "adminUsername" is declared but never used.](../../../../settings/remarks/microsoft.insights/samples/autoscalesettings/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.insights/samples/autoscalesettings/main.bicep#L7-L7) +## samples/datacollectionruleassociations/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.insights/samples/datacollectionruleassociations/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.insights/samples/datacollectionruleassociations/main.bicep#L91-L91) +## samples/privatelinkscopes/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.insights/samples/privatelinkscopes/main.bicep#L3-L3) +## samples/privatelinkscopes/scopedresources/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.insights/samples/privatelinkscopes/scopedresources/main.bicep#L20-L20) +## samples/connectedclusters/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "identity". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.kubernetes/samples/connectedclusters/main.bicep#L4-L4) +## samples/clusters/databases/scripts/main.bicep +* [[use-secure-value-for-secure-inputs] Warning: Property 'scriptContent' expects a secure value, but the value provided may not be secure.](../../../../settings/remarks/microsoft.kusto/samples/clusters/databases/scripts/main.bicep#L40-L49) +## samples/labs/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.labservices/samples/labs/main.bicep#L5-L5) +## samples/labs/schedules/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.labservices/samples/labs/schedules/main.bicep#L5-L5) +## samples/labs/users/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.labservices/samples/labs/users/main.bicep#L5-L5) +## samples/integrationaccounts/maps/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net"](../../../../settings/remarks/microsoft.logic/samples/integrationaccounts/maps/main.bicep#L25-L25) +## samples/workspaces/datastores/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net"](../../../../settings/remarks/microsoft.machinelearningservices/samples/workspaces/datastores/main.bicep#L115-L115) +* [[no-unnecessary-dependson] Warning: Remove unnecessary dependsOn entry 'container'.](../../../../settings/remarks/microsoft.machinelearningservices/samples/workspaces/datastores/main.bicep#L120-L120) +## samples/configurationassignments/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.maintenance/samples/configurationassignments/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "adminuser"](../../../../settings/remarks/microsoft.maintenance/samples/configurationassignments/main.bicep#L80-L80) +## samples/userassignedidentities/federatedidentitycredentials/main.bicep +* [[BCP187] Warning: The property "location" does not exist in the resource or type definition, although it might still be valid. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.managedidentity/samples/userassignedidentities/federatedidentitycredentials/main.bicep#L12-L12) +## samples/mediaservices/accountfilters/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/accountfilters/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/accountFilters@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/accountfilters/main.bicep#L54-L54) +## samples/mediaservices/assets/assetfilters/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/assets/assetfilters/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/assets@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/assets/assetfilters/main.bicep#L54-L54) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/assets/assetFilters@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/assets/assetfilters/main.bicep#L62-L62) +## samples/mediaservices/assets/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/assets/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/assets@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/assets/main.bicep#L54-L54) +## samples/mediaservices/contentkeypolicies/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/contentkeypolicies/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/contentKeyPolicies@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/contentkeypolicies/main.bicep#L54-L54) +## samples/mediaservices/liveevents/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/liveevents/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/liveEvents@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/liveevents/main.bicep#L27-L27) +## samples/mediaservices/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/main.bicep#L4-L4) +## samples/mediaservices/streamingendpoints/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/streamingendpoints/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/streamingEndpoints@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/streamingendpoints/main.bicep#L54-L54) +## samples/mediaservices/streaminglocators/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/streaminglocators/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/assets@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/streaminglocators/main.bicep#L54-L54) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/streamingLocators@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/streaminglocators/main.bicep#L62-L62) +## samples/mediaservices/streamingpolicies/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/streamingpolicies/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/streamingPolicies@2022-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/streamingpolicies/main.bicep#L54-L54) +## samples/mediaservices/transforms/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices@2021-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/transforms/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.Media/mediaServices/transforms@2022-07-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.media/samples/mediaservices/transforms/main.bicep#L54-L54) +## samples/spatialanchorsaccounts/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MixedReality/spatialAnchorsAccounts@2021-01-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mixedreality/samples/spatialanchorsaccounts/main.bicep#L4-L4) +## samples/mobilenetworks/datanetworks/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/datanetworks/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/dataNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/datanetworks/main.bicep#L15-L15) +## samples/mobilenetworks/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/main.bicep#L4-L4) +## samples/mobilenetworks/services/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/services/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/services@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/services/main.bicep#L15-L15) +## samples/mobilenetworks/simpolicies/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/simpolicies/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/dataNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/simpolicies/main.bicep#L15-L15) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/services@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/simpolicies/main.bicep#L22-L22) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/simPolicies@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/simpolicies/main.bicep#L51-L51) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/slices@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/simpolicies/main.bicep#L103-L103) +## samples/mobilenetworks/sites/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/sites/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/sites@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/sites/main.bicep#L15-L15) +## samples/mobilenetworks/slices/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/slices/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/slices@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/mobilenetworks/slices/main.bicep#L15-L15) +## samples/packetcorecontrolplanes/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/packetcorecontrolplanes/main.bicep#L13-L13) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/packetCoreControlPlanes@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/packetcorecontrolplanes/main.bicep#L24-L24) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/sites@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/packetcorecontrolplanes/main.bicep#L48-L48) +## samples/packetcorecontrolplanes/packetcoredataplanes/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/packetcorecontrolplanes/packetcoredataplanes/main.bicep#L13-L13) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/packetCoreControlPlanes@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/packetcorecontrolplanes/packetcoredataplanes/main.bicep#L24-L24) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/packetCoreControlPlanes/packetCoreDataPlanes@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/packetcorecontrolplanes/packetcoredataplanes/main.bicep#L48-L48) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks/sites@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/packetcorecontrolplanes/packetcoredataplanes/main.bicep#L57-L57) +## samples/simgroups/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/mobileNetworks@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/simgroups/main.bicep#L4-L4) +* [[BCP081] Warning: Resource type "Microsoft.MobileNetwork/simGroups@2022-11-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.mobilenetwork/samples/simgroups/main.bicep#L15-L15) +## samples/accounts/privateendpointconnections/main.bicep +* [[BCP081] Warning: Resource type "Microsoft.Monitor/accounts/privateEndpointConnections@2023-04-03" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed.](../../../../settings/remarks/microsoft.monitor/samples/accounts/privateendpointconnections/main.bicep#L38-L38) +## samples/expressroutecircuits/peerings/connections/main.bicep +* [[no-unused-params] Warning: Parameter "expressRouteConnectionSharedKey" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/expressroutecircuits/peerings/connections/main.bicep#L5-L5) +## samples/expressroutecircuits/peerings/main.bicep +* [[no-unused-params] Warning: Parameter "expressRouteSharedKey" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/expressroutecircuits/peerings/main.bicep#L5-L5) +## samples/expressroutegateways/expressrouteconnections/main.bicep +* [[no-unused-params] Warning: Parameter "sharedKey" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/expressroutegateways/expressrouteconnections/main.bicep#L5-L5) +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/expressroutegateways/expressrouteconnections/main.bicep#L71-L71) +## samples/expressroutegateways/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/expressroutegateways/main.bicep#L41-L41) +## samples/networkmanagers/connectivityconfigurations/main.bicep +* [[BCP053] Warning: The type "VirtualNetworkPropertiesFormat" does not contain property "type". Available properties include "addressSpace", "bgpCommunities", "ddosProtectionPlan", "dhcpOptions", "enableDdosProtection", "enableVmProtection", "encryption", "flowTimeoutInMinutes", "ipAllocations", "provisioningState", "resourceGuid", "subnets", "virtualNetworkPeerings".](../../../../settings/remarks/microsoft.network/samples/networkmanagers/connectivityconfigurations/main.bicep#L56-L56) +## samples/networkmanagers/verifierworkspace/reachabilityanalysisintent/main.bicep +* [[no-unused-params] Warning: Parameter "adminUsername" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/networkmanagers/verifierworkspace/reachabilityanalysisintent/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/networkmanagers/verifierworkspace/reachabilityanalysisintent/main.bicep#L7-L7) +## samples/networkmanagers/verifierworkspace/reachabilityanalysisintent/reachabilityanalysisrun/main.bicep +* [[no-unused-params] Warning: Parameter "vmAdminPassword" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/networkmanagers/verifierworkspace/reachabilityanalysisintent/reachabilityanalysisrun/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "testadmin"](../../../../settings/remarks/microsoft.network/samples/networkmanagers/verifierworkspace/reachabilityanalysisintent/reachabilityanalysisrun/main.bicep#L65-L65) +## samples/networkwatchers/packetcaptures/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/networkwatchers/packetcaptures/main.bicep#L5-L5) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "testadmin"](../../../../settings/remarks/microsoft.network/samples/networkwatchers/packetcaptures/main.bicep#L53-L53) +## samples/p2svpngateways/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/p2svpngateways/main.bicep#L53-L53) +## samples/virtualhubs/hubvirtualnetworkconnections/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/virtualhubs/hubvirtualnetworkconnections/main.bicep#L41-L41) +## samples/virtualhubs/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/virtualhubs/main.bicep#L25-L25) +## samples/virtualwans/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/virtualwans/main.bicep#L10-L10) +## samples/vpngateways/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/vpngateways/main.bicep#L25-L25) +## samples/vpngateways/natrules/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/vpngateways/natrules/main.bicep#L25-L25) +## samples/vpngateways/vpnconnections/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/vpngateways/vpnconnections/main.bicep#L25-L25) +## samples/vpnserverconfigurations/configurationpolicygroups/main.bicep +* [[no-unused-params] Warning: Parameter "radiusServerSecret" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/vpnserverconfigurations/configurationpolicygroups/main.bicep#L5-L5) +## samples/vpnserverconfigurations/main.bicep +* [[no-unused-params] Warning: Parameter "radiusServerSecret" is declared but never used.](../../../../settings/remarks/microsoft.network/samples/vpnserverconfigurations/main.bicep#L5-L5) +## samples/vpnsites/main.bicep +* [[BCP073] Warning: The property "office365LocalBreakoutCategory" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.network/samples/vpnsites/main.bicep#L10-L10) +## samples/workspaces/tables/auditlog/main.bicep +* [[BCP036] Warning: The property "columns" expected a value of type "Column[] | null" but the provided value is of type "object". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.operationalinsights/samples/workspaces/tables/auditlog/main.bicep#L33-L33) +## samples/workspaces/tables/basic/main.bicep +* [[BCP036] Warning: The property "columns" expected a value of type "Column[] | null" but the provided value is of type "object". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.operationalinsights/samples/workspaces/tables/basic/main.bicep#L33-L33) +## samples/workspaces/tables/datacollectionlogs/main.bicep +* [[BCP036] Warning: The property "columns" expected a value of type "Column[] | null" but the provided value is of type "object". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.operationalinsights/samples/workspaces/tables/datacollectionlogs/main.bicep#L33-L33) +## samples/remediations/main.bicep +* [[BCP073] Warning: The property "scope" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.policyinsights/samples/remediations/main.bicep#L20-L20) +## samples/vaults/backupresourceguardproxies/main.bicep +* [[BCP073] Warning: The property "type" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.recoveryservices/samples/vaults/backupresourceguardproxies/main.bicep#L29-L29) +## samples/deploymentscripts/main.bicep +* [[use-recent-az-powershell-version] Warning: Deployment script is using AzPowerShell version '8.3' which is below the recommended minimum version '11.0'. Consider upgrading to version 11.0 or higher to avoid EOL Ubuntu 20.04 LTS.](../../../../settings/remarks/microsoft.resources/samples/deploymentscripts/main.bicep#L4-L21) +## samples/searchservices/main.bicep +* [[BCP036] Warning: The property "publicNetworkAccess" expected a value of type "'disabled' | 'enabled' | null" but the provided value is of type "'Enabled'". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.search/samples/searchservices/main.bicep#L20-L20) +## samples/searchservices/sharedprivatelinkresources/main.bicep +* [[BCP036] Warning: The property "publicNetworkAccess" expected a value of type "'disabled' | 'enabled' | null" but the provided value is of type "'Enabled'". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.search/samples/searchservices/sharedprivatelinkresources/main.bicep#L20-L20) +## samples/managedclusters/main.bicep +* [[no-unused-params] Warning: Parameter "adminUsername" is declared but never used.](../../../../settings/remarks/microsoft.servicefabric/samples/managedclusters/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.servicefabric/samples/managedclusters/main.bicep#L7-L7) +* [[BCP036] Warning: The property "adminUserName" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.servicefabric/samples/managedclusters/main.bicep#L17-L17) +## samples/managedclusters/nodetypes/main.bicep +* [[no-unused-params] Warning: Parameter "adminUsername" is declared but never used.](../../../../settings/remarks/microsoft.servicefabric/samples/managedclusters/nodetypes/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.servicefabric/samples/managedclusters/nodetypes/main.bicep#L7-L7) +* [[BCP036] Warning: The property "adminUserName" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.servicefabric/samples/managedclusters/nodetypes/main.bicep#L17-L17) +## samples/instancepools/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.sql/samples/instancepools/main.bicep#L8-L8) +## samples/servers/administrators/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/administrators/main.bicep#L5-L5) +## samples/servers/auditingsettings/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/auditingsettings/main.bicep#L5-L5) +## samples/servers/connectionpolicies/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/connectionpolicies/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/connectionpolicies/main.bicep#L7-L7) +## samples/servers/databases/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/databases/main.bicep#L5-L5) +## samples/servers/databases/securityalertpolicies/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/databases/securityalertpolicies/main.bicep#L5-L5) +## samples/servers/databases/transparentdataencryption/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/databases/transparentdataencryption/main.bicep#L5-L5) +## samples/servers/dnsaliases/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/dnsaliases/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/dnsaliases/main.bicep#L7-L7) +## samples/servers/elasticpools/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/elasticpools/main.bicep#L5-L5) +## samples/servers/encryptionprotector/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/encryptionprotector/main.bicep#L5-L5) +## samples/servers/failovergroups/main.bicep +* [[no-unused-params] Warning: Parameter "secondaryLocation" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/failovergroups/main.bicep#L3-L3) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/failovergroups/main.bicep#L6-L6) +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.sql/samples/servers/failovergroups/main.bicep#L21-L21) +## samples/servers/firewallrules/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/firewallrules/main.bicep#L5-L5) +## samples/servers/jobagents/credentials/main.bicep +* [[no-unused-params] Warning: Parameter "sqlAdminUsername" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/credentials/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "sqlAdminPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/credentials/main.bicep#L7-L7) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/credentials/main.bicep#L10-L10) +* [[BCP036] Warning: The property "password" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/credentials/main.bicep#L56-L56) +* [[BCP036] Warning: The property "username" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/credentials/main.bicep#L57-L57) +## samples/servers/jobagents/jobs/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/jobs/main.bicep#L5-L5) +## samples/servers/jobagents/main.bicep +* [[no-unused-params] Warning: Parameter "sqlAdministratorPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/main.bicep#L5-L5) +## samples/servers/jobagents/targetgroups/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/targetgroups/main.bicep#L5-L5) +* [[no-unused-params] Warning: Parameter "jobCredentialPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/targetgroups/main.bicep#L8-L8) +* [[BCP036] Warning: The property "password" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.sql/samples/servers/jobagents/targetgroups/main.bicep#L65-L65) +## samples/servers/main.bicep +* [[no-unused-params] Warning: Parameter "sqlAdministratorPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/main.bicep#L5-L5) +## samples/servers/outboundfirewallrules/main.bicep +* [[no-unused-params] Warning: Parameter "adminPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/outboundfirewallrules/main.bicep#L5-L5) +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "database.windows.net"](../../../../settings/remarks/microsoft.sql/samples/servers/outboundfirewallrules/main.bicep#L22-L22) +## samples/servers/securityalertpolicies/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLogin" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/securityalertpolicies/main.bicep#L4-L4) +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/securityalertpolicies/main.bicep#L7-L7) +## samples/servers/sqlvulnerabilityassessments/main.bicep +* [[no-unused-params] Warning: Parameter "administratorLoginPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/sqlvulnerabilityassessments/main.bicep#L5-L5) +## samples/servers/virtualnetworkrules/main.bicep +* [[no-unused-params] Warning: Parameter "sqlAdministratorPassword" is declared but never used.](../../../../settings/remarks/microsoft.sql/samples/servers/virtualnetworkrules/main.bicep#L5-L5) +## samples/sqlvirtualmachines/basic/main.bicep +* [[no-unused-params] Warning: Parameter "vmAdminPassword" is declared but never used.](../../../../settings/remarks/microsoft.sqlvirtualmachine/samples/sqlvirtualmachines/basic/main.bicep#L5-L5) +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.sqlvirtualmachine/samples/sqlvirtualmachines/basic/main.bicep#L82-L82) +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "location". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.sqlvirtualmachine/samples/sqlvirtualmachines/basic/main.bicep#L95-L95) +* [[adminusername-should-not-be-literal] Warning: Property 'adminUserName' should not use a literal value. Use a param instead. Found literal string value "testadmin"](../../../../settings/remarks/microsoft.sqlvirtualmachine/samples/sqlvirtualmachines/basic/main.bicep#L113-L113) +## samples/storageaccounts/blobservices/containers/immutabilitypolicies/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "kind". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.storage/samples/storageaccounts/blobservices/containers/immutabilitypolicies/main.bicep#L9-L9) +## samples/storageaccounts/blobservices/containers/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "kind". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.storage/samples/storageaccounts/blobservices/containers/main.bicep#L9-L9) +## samples/storageaccounts/fileservices/shares/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "kind". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.storage/samples/storageaccounts/fileservices/shares/main.bicep#L9-L9) +## samples/storageaccounts/queueservices/queues/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "kind". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.storage/samples/storageaccounts/queueservices/queues/main.bicep#L9-L9) +## samples/storageaccounts/tableservices/tables/main.bicep +* [[BCP035] Warning: The specified "resource" declaration is missing the following required properties: "kind". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.storage/samples/storageaccounts/tableservices/tables/main.bicep#L9-L9) +## samples/workspaces/sqlpools/vulnerabilityassessments/main.bicep +* [[no-hardcoded-env-urls] Warning: Environment URLs should not be hardcoded. Use the environment() function to ensure compatibility across clouds. Found this disallowed host: "core.windows.net"](../../../../settings/remarks/microsoft.synapse/samples/workspaces/sqlpools/vulnerabilityassessments/main.bicep#L66-L66) +## samples/accounts/main.bicep +* [[BCP334] Warning: The provided value can have a length as small as 2 and may be too short to assign to a target with a configured minimum length of 3.](../../../../settings/remarks/microsoft.videoindexer/samples/accounts/main.bicep#L16-L16) +## samples/sites/siteextensions/main.bicep +* [[BCP187] Warning: The property "location" does not exist in the resource or type definition, although it might still be valid. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/microsoft.web/samples/sites/siteextensions/main.bicep#L56-L56) +## samples/nginxdeployments/configurations/main.bicep +* [[use-secure-value-for-secure-inputs] Warning: Property 'content' expects a secure value, but the value provided may not be secure.](../../../../settings/remarks/nginx.nginxplus/samples/nginxdeployments/configurations/main.bicep#L78-L78) +## samples/filesystems/main.bicep +* [[no-unused-params] Warning: Parameter "qumuloPassword" is declared but never used.](../../../../settings/remarks/qumulo.storage/samples/filesystems/main.bicep#L5-L5) +* [[BCP036] Warning: The property "adminPassword" expected a value of type "string" but the provided value is of type "null". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/qumulo.storage/samples/filesystems/main.bicep#L11-L11) +* [[use-secure-value-for-secure-inputs] Warning: Property 'email' expects a secure value, but the value provided may not be secure.](../../../../settings/remarks/qumulo.storage/samples/filesystems/main.bicep#L21-L21) +* [[BCP187] Warning: The property "location" does not exist in the resource or type definition, although it might still be valid. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/qumulo.storage/samples/filesystems/main.bicep#L43-L43) +* [[BCP073] Warning: The property "actions" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.](../../../../settings/remarks/qumulo.storage/samples/filesystems/main.bicep#L51-L51) diff --git a/src/TemplateRefGenerator.Tests/TemplateRefGenerator.Tests.csproj b/src/TemplateRefGenerator.Tests/TemplateRefGenerator.Tests.csproj index 150b56ee..90ea54d9 100644 --- a/src/TemplateRefGenerator.Tests/TemplateRefGenerator.Tests.csproj +++ b/src/TemplateRefGenerator.Tests/TemplateRefGenerator.Tests.csproj @@ -14,6 +14,7 @@ + diff --git a/src/TemplateRefGenerator/Config/RemarksLoader.cs b/src/TemplateRefGenerator/Config/RemarksLoader.cs index e5dc3cee..c7e17861 100644 --- a/src/TemplateRefGenerator/Config/RemarksLoader.cs +++ b/src/TemplateRefGenerator/Config/RemarksLoader.cs @@ -102,4 +102,9 @@ public RemarksFile GetRemarks(string providerNamespace) return Utils.DeserializeJsonFile(Utils.GetManifestFilePath(pathComponents), contents); } + + public ImmutableArray GetProviderNamespacesWithRemarks() + => [.. Utils.ListManifestFiles("settings/remarks") + .Select(path => path.Split('/')[2]) + .Distinct(StringComparer.OrdinalIgnoreCase)]; } \ No newline at end of file diff --git a/src/TemplateRefGenerator/Utils/Utils.cs b/src/TemplateRefGenerator/Utils/Utils.cs index 8708c72d..2b001463 100644 --- a/src/TemplateRefGenerator/Utils/Utils.cs +++ b/src/TemplateRefGenerator/Utils/Utils.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Collections.Immutable; using System.IO; using System.Text.Json; using System.Text.Json.Serialization; @@ -22,6 +23,9 @@ public static string GetUnqualifiedType(string resourceType) ? new StreamReader(stream).ReadToEnd() : null; + public static ImmutableArray ListManifestFiles(string parentPath) + => [.. typeof(Utils).Assembly.GetManifestResourceNames().Where(name => name.StartsWith(parentPath, StringComparison.OrdinalIgnoreCase))]; + public static string ReadManifestFile(params string[] pathComponents) => TryReadManifestFile(pathComponents) ?? throw new InvalidOperationException($"File {GetManifestFilePath(pathComponents)} does not exist");