-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Reduce module parameter-names to their name without the modules identifier #2677
Closed
Labels
Comments
Found items Code reference$files = (Get-ChildItem -Path 'C:\dev\ip\Azure-ResourceModules\ResourceModules\modules' -Recurse -Filter 'deploy.bicep')
foreach ($file in $files) {
$content = Get-Content $file
$resourceNames = @()
$params = @()
$content | ForEach-Object {
if ($_ -match '^resource ([a-zA-Z]+) ') {
$resourceNames += $matches[1]
} elseif ($_ -match '^param ([a-zA-Z]+) ') {
$params += $matches[1]
}
}
$relevant = $params | Where-Object {
foreach ($resourceName in $resourceNames) {
if ($_ -like "$resourceName*") {
return $_
}
}
} | Where-Object {
-not [String]::IsNullOrEmpty($_)
} | Select-Object -Unique
if ($relevant.Count -gt 0) {
Write-Host "Handling [$file]" -ForegroundColor Blue
$relevant | ForEach-Object {
Write-Host "- $_" -ForegroundColor 'Green'
}
}
} List 10.02
|
4 tasks
Re-open for remaining components: List 13.02Handling [Microsoft.Compute\virtualMachines\deploy.bicep]
- vmComputerNamesTransformation
- vmSize
- vmPriority
Handling [Microsoft.DevTestLab\labs\deploy.bicep]
- labStorageType
Handling [Microsoft.DocumentDB\databaseAccounts\deploy.bicep]
- databaseAccountOfferType
Handling [Microsoft.EventGrid\eventSubscriptions\deploy.bicep]
- eventGridTopicName
Handling [Microsoft.Insights\components\deploy.bicep]
- appInsightsType
Handling [Microsoft.Insights\dataCollectionRules\deploy.bicep]
- dataCollectionRuleDescription
Handling [Microsoft.KeyVault\vaults\keys\deploy.bicep]
- keyOps
- keySize
Handling [Microsoft.KubernetesConfiguration\extensions\deploy.bicep]
- extensionType
Handling [Microsoft.Network\azureFirewalls\deploy.bicep]
- azureFirewallSubnetPublicIpId
Handling [Microsoft.Network\bastionHosts\deploy.bicep]
- azureBastionSubnetPublicIpId
Handling [Microsoft.Network\firewallPolicies\ruleCollectionGroups\deploy.bicep]
- firewallPolicyName
Handling [Microsoft.Network\loadBalancers\deploy.bicep]
- loadBalancerSku
Handling [Microsoft.Network\loadBalancers\backendAddressPools\deploy.bicep]
- loadBalancerBackendAddresses
Handling [Microsoft.Network\natGateways\deploy.bicep]
- natGatewayPublicIpAddress
- natGatewayPipName
- natGatewayPublicIPPrefixId
- natGatewayDomainNameLabel
Handling [Microsoft.Network\networkManagers\deploy.bicep]
- networkManagerScopeAccesses
- networkManagerScopes
Handling [Microsoft.Network\networkManagers\securityAdminConfigurations\ruleCollections\rules\deploy.bicep]
- ruleCollectionName
Handling [Microsoft.Network\privateDnsZones\A\deploy.bicep]
- aRecords
Handling [Microsoft.Network\privateDnsZones\AAAA\deploy.bicep]
- aaaaRecords
Handling [Microsoft.Network\privateDnsZones\CNAME\deploy.bicep]
- cnameRecord
Handling [Microsoft.Network\privateDnsZones\MX\deploy.bicep]
- mxRecords
Handling [Microsoft.Network\privateDnsZones\PTR\deploy.bicep]
- ptrRecords
Handling [Microsoft.Network\privateDnsZones\SOA\deploy.bicep]
- soaRecord
Handling [Microsoft.Network\privateDnsZones\SRV\deploy.bicep]
- srvRecords
Handling [Microsoft.Network\privateDnsZones\TXT\deploy.bicep]
- txtRecords
Handling [Microsoft.Network\publicIPAddresses\deploy.bicep]
- publicIPAddressVersion
Handling [Microsoft.Network\virtualNetworkGateways\deploy.bicep]
- virtualNetworkGatewayType
- virtualNetworkGatewaySku
- virtualNetworkGatewaydiagnosticLogCategoriesToEnable
- virtualNetworkGatewayDiagnosticSettingsName
Handling [Microsoft.Network\virtualNetworks\deploy.bicep]
- virtualNetworkPeerings
Handling [Microsoft.Network\vpnGateways\deploy.bicep]
- vpnGatewayScaleUnit
Handling [Microsoft.Network\vpnGateways\connections\deploy.bicep]
- vpnConnectionProtocolType
Handling [Microsoft.Network\vpnSites\deploy.bicep]
- vpnSiteLinks
Handling [Microsoft.OperationalInsights\workspaces\storageInsightConfigs\deploy.bicep]
- storageAccountId
Handling [Microsoft.Purview\accounts\deploy.bicep]
- accountPrivateEndpoints
Handling [Microsoft.RecoveryServices\vaults\backupPolicies\deploy.bicep]
- backupPolicyProperties
Handling [Microsoft.RecoveryServices\vaults\protectionContainers\protectedItems\deploy.bicep]
- protectedItemType
Handling [Microsoft.RecoveryServices\vaults\replicationFabrics\replicationProtectionContainers\deploy.bicep]
- replicationContainerMappings
Handling [Microsoft.Sql\managedInstances\deploy.bicep]
- managedInstanceCreateMode
Handling [Microsoft.Sql\managedInstances\vulnerabilityAssessments\deploy.bicep]
- vulnerabilityAssessmentsStorageAccountId
Handling [Microsoft.Sql\servers\keys\deploy.bicep]
- serverKeyType
Handling [Microsoft.Sql\servers\vulnerabilityAssessments\deploy.bicep]
- vulnerabilityAssessmentsStorageAccountId
Handling [Microsoft.Synapse\workspaces\keys\deploy.bicep]
- keyVaultResourceId
Handling [Microsoft.Web\connections\deploy.bicep]
- connectionApi
Handling [Microsoft.Web\sites\deploy.bicep]
- appServiceEnvironmentId
- appInsightId
- appSettingsKeyValuePairs
Handling [Microsoft.Web\sites\config-appsettings\deploy.bicep]
- storageAccountId
- appInsightId
- appSettingsKeyValuePairs
Handling [Microsoft.Web\sites\slots\deploy.bicep]
- appServiceEnvironmentId
- appInsightId
- appSettingsKeyValuePairs
Handling [Microsoft.Web\sites\slots\config-appsettings\deploy.bicep]
- storageAccountId
- appInsightId
- appSettingsKeyValuePairs |
4 tasks
4 tasks
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Several modules like
have properties like
storageAccountSku
which should only besku
. The idea of this issue is toThe text was updated successfully, but these errors were encountered: