From 363201b95717a4eef7c40a0cd22dc3215f63aae6 Mon Sep 17 00:00:00 2001 From: MrMCake Date: Sat, 7 May 2022 21:49:06 +0200 Subject: [PATCH 1/7] Added location output --- arm/Microsoft.AAD/DomainServices/deploy.bicep | 3 +++ arm/Microsoft.AAD/DomainServices/readme.md | 1 + arm/Microsoft.AnalysisServices/servers/deploy.bicep | 3 +++ arm/Microsoft.AnalysisServices/servers/readme.md | 1 + arm/Microsoft.ApiManagement/service/deploy.bicep | 3 +++ arm/Microsoft.ApiManagement/service/readme.md | 1 + arm/Microsoft.Authorization/policyAssignments/deploy.bicep | 3 +++ .../policyAssignments/managementGroup/deploy.bicep | 3 +++ .../policyAssignments/managementGroup/readme.md | 1 + arm/Microsoft.Authorization/policyAssignments/readme.md | 1 + .../policyAssignments/resourceGroup/deploy.bicep | 3 +++ .../policyAssignments/resourceGroup/readme.md | 1 + .../policyAssignments/subscription/deploy.bicep | 3 +++ .../policyAssignments/subscription/readme.md | 1 + arm/Microsoft.Automation/automationAccounts/deploy.bicep | 3 +++ .../automationAccounts/modules/deploy.bicep | 3 +++ .../automationAccounts/modules/readme.md | 1 + arm/Microsoft.Automation/automationAccounts/readme.md | 1 + .../automationAccounts/runbooks/deploy.bicep | 3 +++ .../automationAccounts/runbooks/readme.md | 1 + arm/Microsoft.Batch/batchAccounts/deploy.bicep | 3 +++ arm/Microsoft.Batch/batchAccounts/readme.md | 1 + arm/Microsoft.CognitiveServices/accounts/deploy.bicep | 3 +++ arm/Microsoft.CognitiveServices/accounts/readme.md | 1 + arm/Microsoft.Compute/availabilitySets/deploy.bicep | 3 +++ arm/Microsoft.Compute/availabilitySets/readme.md | 1 + arm/Microsoft.Compute/diskEncryptionSets/deploy.bicep | 3 +++ arm/Microsoft.Compute/diskEncryptionSets/readme.md | 1 + arm/Microsoft.Compute/disks/deploy.bicep | 5 ++++- arm/Microsoft.Compute/disks/readme.md | 1 + arm/Microsoft.Compute/galleries/deploy.bicep | 3 +++ arm/Microsoft.Compute/galleries/images/deploy.bicep | 3 +++ arm/Microsoft.Compute/galleries/images/readme.md | 1 + arm/Microsoft.Compute/galleries/readme.md | 1 + arm/Microsoft.Compute/images/deploy.bicep | 3 +++ arm/Microsoft.Compute/images/readme.md | 1 + arm/Microsoft.Compute/proximityPlacementGroups/deploy.bicep | 3 +++ arm/Microsoft.Compute/proximityPlacementGroups/readme.md | 1 + arm/Microsoft.Compute/virtualMachineScaleSets/deploy.bicep | 3 +++ arm/Microsoft.Compute/virtualMachineScaleSets/readme.md | 1 + arm/Microsoft.Compute/virtualMachines/deploy.bicep | 3 +++ .../virtualMachines/extensions/deploy.bicep | 3 +++ arm/Microsoft.Compute/virtualMachines/extensions/readme.md | 1 + arm/Microsoft.Compute/virtualMachines/readme.md | 1 + arm/Microsoft.ContainerInstance/containerGroups/deploy.bicep | 3 +++ arm/Microsoft.ContainerInstance/containerGroups/readme.md | 1 + arm/Microsoft.ContainerRegistry/registries/deploy.bicep | 3 +++ arm/Microsoft.ContainerRegistry/registries/readme.md | 1 + .../registries/replications/deploy.bicep | 3 +++ .../registries/replications/readme.md | 1 + arm/Microsoft.ContainerService/managedClusters/deploy.bicep | 3 +++ arm/Microsoft.ContainerService/managedClusters/readme.md | 1 + arm/Microsoft.DataFactory/factories/deploy.bicep | 3 +++ arm/Microsoft.DataFactory/factories/readme.md | 1 + arm/Microsoft.Databricks/workspaces/deploy.bicep | 3 +++ arm/Microsoft.Databricks/workspaces/readme.md | 1 + .../applicationgroups/deploy.bicep | 3 +++ .../applicationgroups/readme.md | 1 + arm/Microsoft.DesktopVirtualization/hostpools/deploy.bicep | 3 +++ arm/Microsoft.DesktopVirtualization/hostpools/readme.md | 1 + .../scalingplans/deploy.bicep | 3 +++ arm/Microsoft.DesktopVirtualization/scalingplans/readme.md | 1 + arm/Microsoft.DesktopVirtualization/workspaces/deploy.bicep | 3 +++ arm/Microsoft.DesktopVirtualization/workspaces/readme.md | 1 + arm/Microsoft.DocumentDB/databaseAccounts/deploy.bicep | 3 +++ arm/Microsoft.DocumentDB/databaseAccounts/readme.md | 1 + arm/Microsoft.EventGrid/systemTopics/deploy.bicep | 3 +++ arm/Microsoft.EventGrid/systemTopics/readme.md | 1 + arm/Microsoft.EventGrid/topics/deploy.bicep | 3 +++ arm/Microsoft.EventGrid/topics/readme.md | 1 + arm/Microsoft.EventHub/namespaces/deploy.bicep | 3 +++ arm/Microsoft.EventHub/namespaces/readme.md | 1 + arm/Microsoft.HealthBot/healthBots/deploy.bicep | 3 +++ arm/Microsoft.HealthBot/healthBots/readme.md | 1 + arm/Microsoft.Insights/actionGroups/deploy.bicep | 3 +++ arm/Microsoft.Insights/actionGroups/readme.md | 1 + arm/Microsoft.Insights/activityLogAlerts/deploy.bicep | 3 +++ arm/Microsoft.Insights/activityLogAlerts/readme.md | 1 + arm/Microsoft.Insights/components/deploy.bicep | 3 +++ arm/Microsoft.Insights/components/readme.md | 1 + arm/Microsoft.Insights/metricAlerts/deploy.bicep | 3 +++ arm/Microsoft.Insights/metricAlerts/readme.md | 1 + arm/Microsoft.Insights/privateLinkScopes/deploy.bicep | 3 +++ arm/Microsoft.Insights/privateLinkScopes/readme.md | 1 + arm/Microsoft.Insights/scheduledQueryRules/deploy.bicep | 3 +++ arm/Microsoft.Insights/scheduledQueryRules/readme.md | 1 + arm/Microsoft.KeyVault/vaults/deploy.bicep | 3 +++ arm/Microsoft.KeyVault/vaults/readme.md | 1 + arm/Microsoft.Logic/workflows/deploy.bicep | 3 +++ arm/Microsoft.Logic/workflows/readme.md | 1 + .../workspaces/computes/deploy.bicep | 3 +++ .../workspaces/computes/readme.md | 1 + .../workspaces/deploy.bicep | 3 +++ arm/Microsoft.MachineLearningServices/workspaces/readme.md | 1 + .../userAssignedIdentities/deploy.bicep | 3 +++ .../userAssignedIdentities/readme.md | 1 + .../netAppAccounts/capacityPools/deploy.bicep | 3 +++ arm/Microsoft.NetApp/netAppAccounts/capacityPools/readme.md | 1 + .../netAppAccounts/capacityPools/volumes/deploy.bicep | 3 +++ .../netAppAccounts/capacityPools/volumes/readme.md | 1 + arm/Microsoft.NetApp/netAppAccounts/deploy.bicep | 3 +++ arm/Microsoft.NetApp/netAppAccounts/readme.md | 1 + arm/Microsoft.Network/applicationGateways/deploy.bicep | 3 +++ arm/Microsoft.Network/applicationGateways/readme.md | 1 + arm/Microsoft.Network/applicationSecurityGroups/deploy.bicep | 3 +++ arm/Microsoft.Network/applicationSecurityGroups/readme.md | 1 + arm/Microsoft.Network/azureFirewalls/deploy.bicep | 3 +++ arm/Microsoft.Network/azureFirewalls/readme.md | 1 + arm/Microsoft.Network/bastionHosts/deploy.bicep | 3 +++ arm/Microsoft.Network/bastionHosts/readme.md | 1 + arm/Microsoft.Network/connections/deploy.bicep | 3 +++ arm/Microsoft.Network/connections/readme.md | 1 + arm/Microsoft.Network/ddosProtectionPlans/deploy.bicep | 3 +++ arm/Microsoft.Network/ddosProtectionPlans/readme.md | 1 + arm/Microsoft.Network/expressRouteCircuits/deploy.bicep | 3 +++ arm/Microsoft.Network/expressRouteCircuits/readme.md | 1 + arm/Microsoft.Network/firewallPolicies/deploy.bicep | 3 +++ arm/Microsoft.Network/firewallPolicies/readme.md | 1 + arm/Microsoft.Network/ipGroups/deploy.bicep | 3 +++ arm/Microsoft.Network/ipGroups/readme.md | 1 + arm/Microsoft.Network/loadBalancers/deploy.bicep | 3 +++ arm/Microsoft.Network/loadBalancers/readme.md | 1 + arm/Microsoft.Network/localNetworkGateways/deploy.bicep | 3 +++ arm/Microsoft.Network/localNetworkGateways/readme.md | 1 + arm/Microsoft.Network/natGateways/deploy.bicep | 3 +++ arm/Microsoft.Network/natGateways/readme.md | 1 + arm/Microsoft.Network/networkSecurityGroups/deploy.bicep | 3 +++ arm/Microsoft.Network/networkSecurityGroups/readme.md | 1 + .../networkWatchers/connectionMonitors/deploy.bicep | 3 +++ .../networkWatchers/connectionMonitors/readme.md | 1 + arm/Microsoft.Network/networkWatchers/deploy.bicep | 3 +++ arm/Microsoft.Network/networkWatchers/flowLogs/deploy.bicep | 3 +++ arm/Microsoft.Network/networkWatchers/flowLogs/readme.md | 1 + arm/Microsoft.Network/networkWatchers/readme.md | 1 + arm/Microsoft.Network/privateDnsZones/deploy.bicep | 3 +++ arm/Microsoft.Network/privateDnsZones/readme.md | 1 + .../privateDnsZones/virtualNetworkLinks/deploy.bicep | 3 +++ .../privateDnsZones/virtualNetworkLinks/readme.md | 1 + arm/Microsoft.Network/privateEndpoints/deploy.bicep | 3 +++ arm/Microsoft.Network/privateEndpoints/readme.md | 1 + arm/Microsoft.Network/publicIPAddresses/deploy.bicep | 3 +++ arm/Microsoft.Network/publicIPAddresses/readme.md | 1 + arm/Microsoft.Network/publicIPPrefixes/deploy.bicep | 3 +++ arm/Microsoft.Network/publicIPPrefixes/readme.md | 1 + arm/Microsoft.Network/routeTables/deploy.bicep | 3 +++ arm/Microsoft.Network/routeTables/readme.md | 1 + arm/Microsoft.Network/virtualHubs/deploy.bicep | 3 +++ arm/Microsoft.Network/virtualHubs/readme.md | 3 ++- arm/Microsoft.Network/virtualNetworkGateways/deploy.bicep | 3 +++ arm/Microsoft.Network/virtualNetworkGateways/readme.md | 1 + arm/Microsoft.Network/virtualNetworks/deploy.bicep | 3 +++ arm/Microsoft.Network/virtualNetworks/readme.md | 1 + arm/Microsoft.Network/virtualWans/deploy.bicep | 3 +++ arm/Microsoft.Network/virtualWans/readme.md | 1 + arm/Microsoft.Network/vpnGateways/deploy.bicep | 3 +++ arm/Microsoft.Network/vpnGateways/readme.md | 1 + arm/Microsoft.Network/vpnSites/deploy.bicep | 3 +++ arm/Microsoft.Network/vpnSites/readme.md | 1 + arm/Microsoft.OperationalInsights/workspaces/deploy.bicep | 3 +++ arm/Microsoft.OperationalInsights/workspaces/readme.md | 1 + arm/Microsoft.RecoveryServices/vaults/deploy.bicep | 3 +++ arm/Microsoft.RecoveryServices/vaults/readme.md | 1 + .../vaults/replicationFabrics/deploy.bicep | 3 +++ .../vaults/replicationFabrics/readme.md | 1 + arm/Microsoft.Resources/deploymentScripts/deploy.bicep | 3 +++ arm/Microsoft.Resources/deploymentScripts/readme.md | 1 + arm/Microsoft.Resources/resourceGroups/deploy.bicep | 3 +++ arm/Microsoft.Resources/resourceGroups/readme.md | 1 + arm/Microsoft.ServiceBus/namespaces/deploy.bicep | 3 +++ arm/Microsoft.ServiceBus/namespaces/readme.md | 1 + arm/Microsoft.ServiceFabric/clusters/deploy.bicep | 3 +++ arm/Microsoft.ServiceFabric/clusters/readme.md | 1 + arm/Microsoft.Sql/managedInstances/databases/deploy.bicep | 3 +++ arm/Microsoft.Sql/managedInstances/databases/readme.md | 1 + arm/Microsoft.Sql/managedInstances/deploy.bicep | 3 +++ arm/Microsoft.Sql/managedInstances/readme.md | 1 + arm/Microsoft.Sql/servers/databases/deploy.bicep | 3 +++ arm/Microsoft.Sql/servers/databases/readme.md | 1 + arm/Microsoft.Sql/servers/deploy.bicep | 3 +++ arm/Microsoft.Sql/servers/readme.md | 1 + arm/Microsoft.Storage/storageAccounts/deploy.bicep | 3 +++ arm/Microsoft.Storage/storageAccounts/readme.md | 1 + arm/Microsoft.Synapse/privateLinkHubs/deploy.bicep | 3 +++ arm/Microsoft.Synapse/privateLinkHubs/readme.md | 1 + .../imageTemplates/deploy.bicep | 3 +++ arm/Microsoft.VirtualMachineImages/imageTemplates/readme.md | 1 + arm/Microsoft.Web/connections/deploy.bicep | 3 +++ arm/Microsoft.Web/connections/readme.md | 1 + arm/Microsoft.Web/hostingEnvironments/deploy.bicep | 3 +++ arm/Microsoft.Web/hostingEnvironments/readme.md | 1 + arm/Microsoft.Web/serverfarms/deploy.bicep | 3 +++ arm/Microsoft.Web/serverfarms/readme.md | 1 + arm/Microsoft.Web/sites/deploy.bicep | 3 +++ arm/Microsoft.Web/sites/readme.md | 1 + arm/Microsoft.Web/staticSites/deploy.bicep | 3 +++ arm/Microsoft.Web/staticSites/readme.md | 1 + .../roleAssignments-multiRolesMultiPrincipals/deploy.bicep | 1 + 197 files changed, 395 insertions(+), 2 deletions(-) diff --git a/arm/Microsoft.AAD/DomainServices/deploy.bicep b/arm/Microsoft.AAD/DomainServices/deploy.bicep index 7a3cf0fbb7..91ef3b1383 100644 --- a/arm/Microsoft.AAD/DomainServices/deploy.bicep +++ b/arm/Microsoft.AAD/DomainServices/deploy.bicep @@ -244,3 +244,6 @@ output resourceGroupName string = resourceGroup().name @description('The resource ID of the Azure Active Directory Domain Services(Azure ADDS)') output resourceId string = domainService.id + +@description('The location the resource was deployed into.') +output location string = domainService.location diff --git a/arm/Microsoft.AAD/DomainServices/readme.md b/arm/Microsoft.AAD/DomainServices/readme.md index c710dec217..137fec3574 100644 --- a/arm/Microsoft.AAD/DomainServices/readme.md +++ b/arm/Microsoft.AAD/DomainServices/readme.md @@ -141,6 +141,7 @@ $pfxCertificate = [System.Convert]::ToBase64String($rawCertByteStream) | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The domain name of the Azure Active Directory Domain Services(Azure ADDS) | | `resourceGroupName` | string | The name of the resource group the Azure Active Directory Domain Services(Azure ADDS) was created in. | | `resourceId` | string | The resource ID of the Azure Active Directory Domain Services(Azure ADDS) | diff --git a/arm/Microsoft.AnalysisServices/servers/deploy.bicep b/arm/Microsoft.AnalysisServices/servers/deploy.bicep index 11d60c7154..1761226ac9 100644 --- a/arm/Microsoft.AnalysisServices/servers/deploy.bicep +++ b/arm/Microsoft.AnalysisServices/servers/deploy.bicep @@ -162,3 +162,6 @@ output resourceId string = server.id @description('The resource group the analysis service was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = server.location diff --git a/arm/Microsoft.AnalysisServices/servers/readme.md b/arm/Microsoft.AnalysisServices/servers/readme.md index cab72e06de..bd615329a2 100644 --- a/arm/Microsoft.AnalysisServices/servers/readme.md +++ b/arm/Microsoft.AnalysisServices/servers/readme.md @@ -92,6 +92,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the analysis service | | `resourceGroupName` | string | The resource group the analysis service was deployed into | | `resourceId` | string | The resource ID of the analysis service | diff --git a/arm/Microsoft.ApiManagement/service/deploy.bicep b/arm/Microsoft.ApiManagement/service/deploy.bicep index 04fb0a52fd..8a1cdc15a4 100644 --- a/arm/Microsoft.ApiManagement/service/deploy.bicep +++ b/arm/Microsoft.ApiManagement/service/deploy.bicep @@ -461,3 +461,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(apiManagementService.identity, 'principalId') ? apiManagementService.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = apiManagementService.location diff --git a/arm/Microsoft.ApiManagement/service/readme.md b/arm/Microsoft.ApiManagement/service/readme.md index a4fdd42db1..26b34eee89 100644 --- a/arm/Microsoft.ApiManagement/service/readme.md +++ b/arm/Microsoft.ApiManagement/service/readme.md @@ -157,6 +157,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the API management service | | `resourceGroupName` | string | The resource group the API management service was deployed into | | `resourceId` | string | The resource ID of the API management service | diff --git a/arm/Microsoft.Authorization/policyAssignments/deploy.bicep b/arm/Microsoft.Authorization/policyAssignments/deploy.bicep index 33077b4da3..30cc798b6b 100644 --- a/arm/Microsoft.Authorization/policyAssignments/deploy.bicep +++ b/arm/Microsoft.Authorization/policyAssignments/deploy.bicep @@ -148,3 +148,6 @@ output principalId string = empty(subscriptionId) && empty(resourceGroupName) ? @sys.description('Policy Assignment resource ID') output resourceId string = empty(subscriptionId) && empty(resourceGroupName) ? policyAssignment_mg.outputs.resourceId : (!empty(subscriptionId) && empty(resourceGroupName) ? policyAssignment_sub.outputs.resourceId : policyAssignment_rg.outputs.resourceId) + +@sys.description('The location the resource was deployed into.') +output location string = empty(subscriptionId) && empty(resourceGroupName) ? policyAssignment_mg.outputs.location : (!empty(subscriptionId) && empty(resourceGroupName) ? policyAssignment_sub.outputs.location : policyAssignment_rg.outputs.location) diff --git a/arm/Microsoft.Authorization/policyAssignments/managementGroup/deploy.bicep b/arm/Microsoft.Authorization/policyAssignments/managementGroup/deploy.bicep index abec837c78..c4e2073351 100644 --- a/arm/Microsoft.Authorization/policyAssignments/managementGroup/deploy.bicep +++ b/arm/Microsoft.Authorization/policyAssignments/managementGroup/deploy.bicep @@ -115,3 +115,6 @@ output principalId string = identity == 'SystemAssigned' ? policyAssignment.iden @sys.description('Policy Assignment resource ID') output resourceId string = extensionResourceId(tenantResourceId('Microsoft.Management/managementGroups', managementGroupId), 'Microsoft.Authorization/policyAssignments', policyAssignment.name) + +@sys.description('The location the resource was deployed into.') +output location string = policyAssignment.location diff --git a/arm/Microsoft.Authorization/policyAssignments/managementGroup/readme.md b/arm/Microsoft.Authorization/policyAssignments/managementGroup/readme.md index 640d350ce3..ec36dd295c 100644 --- a/arm/Microsoft.Authorization/policyAssignments/managementGroup/readme.md +++ b/arm/Microsoft.Authorization/policyAssignments/managementGroup/readme.md @@ -45,6 +45,7 @@ With this module you can perform policy assignments on a management group level. | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | Policy Assignment Name | | `principalId` | string | Policy Assignment principal ID | | `resourceId` | string | Policy Assignment resource ID | diff --git a/arm/Microsoft.Authorization/policyAssignments/readme.md b/arm/Microsoft.Authorization/policyAssignments/readme.md index da12994f35..483fdcca30 100644 --- a/arm/Microsoft.Authorization/policyAssignments/readme.md +++ b/arm/Microsoft.Authorization/policyAssignments/readme.md @@ -106,6 +106,7 @@ module policyassignment 'yourpath/arm/Microsoft.Authorization.policyAssignments/ | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | Policy Assignment Name | | `principalId` | string | Policy Assignment principal ID | | `resourceId` | string | Policy Assignment resource ID | diff --git a/arm/Microsoft.Authorization/policyAssignments/resourceGroup/deploy.bicep b/arm/Microsoft.Authorization/policyAssignments/resourceGroup/deploy.bicep index ea4675ccb6..5bb5b7ce02 100644 --- a/arm/Microsoft.Authorization/policyAssignments/resourceGroup/deploy.bicep +++ b/arm/Microsoft.Authorization/policyAssignments/resourceGroup/deploy.bicep @@ -120,3 +120,6 @@ output resourceId string = az.resourceId(subscriptionId, resourceGroupName, 'Mic @sys.description('The name of the resource group the policy was assigned to') output resourceGroupName string = resourceGroup().name + +@sys.description('The location the resource was deployed into.') +output location string = policyAssignment.location diff --git a/arm/Microsoft.Authorization/policyAssignments/resourceGroup/readme.md b/arm/Microsoft.Authorization/policyAssignments/resourceGroup/readme.md index 17d0fecafd..24292c7874 100644 --- a/arm/Microsoft.Authorization/policyAssignments/resourceGroup/readme.md +++ b/arm/Microsoft.Authorization/policyAssignments/resourceGroup/readme.md @@ -46,6 +46,7 @@ With this module you can perform policy assignments on a resource group level | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | Policy Assignment Name | | `principalId` | string | Policy Assignment principal ID | | `resourceGroupName` | string | The name of the resource group the policy was assigned to | diff --git a/arm/Microsoft.Authorization/policyAssignments/subscription/deploy.bicep b/arm/Microsoft.Authorization/policyAssignments/subscription/deploy.bicep index 060a500ecd..c138f2e1c8 100644 --- a/arm/Microsoft.Authorization/policyAssignments/subscription/deploy.bicep +++ b/arm/Microsoft.Authorization/policyAssignments/subscription/deploy.bicep @@ -115,3 +115,6 @@ output principalId string = identity == 'SystemAssigned' ? policyAssignment.iden @sys.description('Policy Assignment resource ID') output resourceId string = subscriptionResourceId(subscriptionId, 'Microsoft.Authorization/policyAssignments', policyAssignment.name) + +@sys.description('The location the resource was deployed into.') +output location string = policyAssignment.location diff --git a/arm/Microsoft.Authorization/policyAssignments/subscription/readme.md b/arm/Microsoft.Authorization/policyAssignments/subscription/readme.md index bb09822f69..086abe5af3 100644 --- a/arm/Microsoft.Authorization/policyAssignments/subscription/readme.md +++ b/arm/Microsoft.Authorization/policyAssignments/subscription/readme.md @@ -45,6 +45,7 @@ With this module you can perform policy assignments on a subscription level. | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | Policy Assignment Name | | `principalId` | string | Policy Assignment principal ID | | `resourceId` | string | Policy Assignment resource ID | diff --git a/arm/Microsoft.Automation/automationAccounts/deploy.bicep b/arm/Microsoft.Automation/automationAccounts/deploy.bicep index 0302bb3f62..8793ef7dec 100644 --- a/arm/Microsoft.Automation/automationAccounts/deploy.bicep +++ b/arm/Microsoft.Automation/automationAccounts/deploy.bicep @@ -382,3 +382,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(automationAccount.identity, 'principalId') ? automationAccount.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = automationAccount.location diff --git a/arm/Microsoft.Automation/automationAccounts/modules/deploy.bicep b/arm/Microsoft.Automation/automationAccounts/modules/deploy.bicep index 3613074482..391a7d3333 100644 --- a/arm/Microsoft.Automation/automationAccounts/modules/deploy.bicep +++ b/arm/Microsoft.Automation/automationAccounts/modules/deploy.bicep @@ -56,3 +56,6 @@ output resourceId string = module.id @description('The resource group of the deployed module') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = module.location diff --git a/arm/Microsoft.Automation/automationAccounts/modules/readme.md b/arm/Microsoft.Automation/automationAccounts/modules/readme.md index 73f411e926..1c9d006a86 100644 --- a/arm/Microsoft.Automation/automationAccounts/modules/readme.md +++ b/arm/Microsoft.Automation/automationAccounts/modules/readme.md @@ -53,6 +53,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed module | | `resourceGroupName` | string | The resource group of the deployed module | | `resourceId` | string | The resource ID of the deployed module | diff --git a/arm/Microsoft.Automation/automationAccounts/readme.md b/arm/Microsoft.Automation/automationAccounts/readme.md index 997ea76bd7..b1f1e724d0 100644 --- a/arm/Microsoft.Automation/automationAccounts/readme.md +++ b/arm/Microsoft.Automation/automationAccounts/readme.md @@ -196,6 +196,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed automation account | | `resourceGroupName` | string | The resource group of the deployed automation account | | `resourceId` | string | The resource ID of the deployed automation account | diff --git a/arm/Microsoft.Automation/automationAccounts/runbooks/deploy.bicep b/arm/Microsoft.Automation/automationAccounts/runbooks/deploy.bicep index e506586e52..274893d849 100644 --- a/arm/Microsoft.Automation/automationAccounts/runbooks/deploy.bicep +++ b/arm/Microsoft.Automation/automationAccounts/runbooks/deploy.bicep @@ -95,3 +95,6 @@ output resourceId string = runbook.id @description('The resource group of the deployed runbook') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = runbook.location diff --git a/arm/Microsoft.Automation/automationAccounts/runbooks/readme.md b/arm/Microsoft.Automation/automationAccounts/runbooks/readme.md index bcf3391a03..8e960f41a0 100644 --- a/arm/Microsoft.Automation/automationAccounts/runbooks/readme.md +++ b/arm/Microsoft.Automation/automationAccounts/runbooks/readme.md @@ -62,6 +62,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed runbook | | `resourceGroupName` | string | The resource group of the deployed runbook | | `resourceId` | string | The resource ID of the deployed runbook | diff --git a/arm/Microsoft.Batch/batchAccounts/deploy.bicep b/arm/Microsoft.Batch/batchAccounts/deploy.bicep index 37e47a1397..7678e27ca7 100644 --- a/arm/Microsoft.Batch/batchAccounts/deploy.bicep +++ b/arm/Microsoft.Batch/batchAccounts/deploy.bicep @@ -212,3 +212,6 @@ output resourceId string = batchAccount.id @description('The resource group the batch account was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = batchAccount.location diff --git a/arm/Microsoft.Batch/batchAccounts/readme.md b/arm/Microsoft.Batch/batchAccounts/readme.md index 12cfeec6c4..5ccd03eead 100644 --- a/arm/Microsoft.Batch/batchAccounts/readme.md +++ b/arm/Microsoft.Batch/batchAccounts/readme.md @@ -88,6 +88,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the batch account | | `resourceGroupName` | string | The resource group the batch account was deployed into | | `resourceId` | string | The resource ID of the batch account | diff --git a/arm/Microsoft.CognitiveServices/accounts/deploy.bicep b/arm/Microsoft.CognitiveServices/accounts/deploy.bicep index fe7cb1e2f1..4e7c9ca753 100644 --- a/arm/Microsoft.CognitiveServices/accounts/deploy.bicep +++ b/arm/Microsoft.CognitiveServices/accounts/deploy.bicep @@ -279,3 +279,6 @@ output endpoint string = cognitiveServices.properties.endpoint @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(cognitiveServices.identity, 'principalId') ? cognitiveServices.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = cognitiveServices.location diff --git a/arm/Microsoft.CognitiveServices/accounts/readme.md b/arm/Microsoft.CognitiveServices/accounts/readme.md index 6a2d1992e3..0514e5832a 100644 --- a/arm/Microsoft.CognitiveServices/accounts/readme.md +++ b/arm/Microsoft.CognitiveServices/accounts/readme.md @@ -182,6 +182,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | | `endpoint` | string | The service endpoint of the cognitive services account | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the cognitive services account | | `resourceGroupName` | string | The resource group the cognitive services account was deployed into | | `resourceId` | string | The resource ID of the cognitive services account | diff --git a/arm/Microsoft.Compute/availabilitySets/deploy.bicep b/arm/Microsoft.Compute/availabilitySets/deploy.bicep index 89ee09731e..d1751ea877 100644 --- a/arm/Microsoft.Compute/availabilitySets/deploy.bicep +++ b/arm/Microsoft.Compute/availabilitySets/deploy.bicep @@ -92,3 +92,6 @@ output resourceId string = availabilitySet.id @description('The resource group the availability set was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = availabilitySet.location diff --git a/arm/Microsoft.Compute/availabilitySets/readme.md b/arm/Microsoft.Compute/availabilitySets/readme.md index 96c86f6836..b8ffdd33e0 100644 --- a/arm/Microsoft.Compute/availabilitySets/readme.md +++ b/arm/Microsoft.Compute/availabilitySets/readme.md @@ -84,6 +84,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the availability set | | `resourceGroupName` | string | The resource group the availability set was deployed into | | `resourceId` | string | The resource ID of the availability set | diff --git a/arm/Microsoft.Compute/diskEncryptionSets/deploy.bicep b/arm/Microsoft.Compute/diskEncryptionSets/deploy.bicep index 6be6e19722..8ee9114a6d 100644 --- a/arm/Microsoft.Compute/diskEncryptionSets/deploy.bicep +++ b/arm/Microsoft.Compute/diskEncryptionSets/deploy.bicep @@ -109,3 +109,6 @@ output systemAssignedPrincipalId string = diskEncryptionSet.identity.principalId @description('The name of the key vault with the disk encryption key') output keyVaultName string = last(split(keyVaultId, '/')) + +@description('The location the resource was deployed into.') +output location string = diskEncryptionSet.location diff --git a/arm/Microsoft.Compute/diskEncryptionSets/readme.md b/arm/Microsoft.Compute/diskEncryptionSets/readme.md index b96330d835..fd84039d53 100644 --- a/arm/Microsoft.Compute/diskEncryptionSets/readme.md +++ b/arm/Microsoft.Compute/diskEncryptionSets/readme.md @@ -84,6 +84,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | | `keyVaultName` | string | The name of the key vault with the disk encryption key | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the disk encryption set | | `resourceGroupName` | string | The resource group the disk encryption set was deployed into | | `resourceId` | string | The resource ID of the disk encryption set | diff --git a/arm/Microsoft.Compute/disks/deploy.bicep b/arm/Microsoft.Compute/disks/deploy.bicep index 463e0069d6..f472e9927a 100644 --- a/arm/Microsoft.Compute/disks/deploy.bicep +++ b/arm/Microsoft.Compute/disks/deploy.bicep @@ -159,7 +159,7 @@ resource disk 'Microsoft.Compute/disks@2021-08-01' = { hyperVGeneration: empty(osType) ? null : hyperVGeneration maxShares: maxShares networkAccessPolicy: networkAccessPolicy - osType: empty(osType) ? null : osType + osType: empty(osType) ? any(null) : osType publicNetworkAccess: publicNetworkAccess supportedCapabilities: empty(osType) ? {} : { acceleratedNetwork: acceleratedNetwork @@ -195,3 +195,6 @@ output resourceId string = disk.id @description('The name of the disk') output name string = disk.name + +@description('The location the resource was deployed into.') +output location string = disk.location diff --git a/arm/Microsoft.Compute/disks/readme.md b/arm/Microsoft.Compute/disks/readme.md index 3ef3fd5b61..82eebf36bc 100644 --- a/arm/Microsoft.Compute/disks/readme.md +++ b/arm/Microsoft.Compute/disks/readme.md @@ -100,6 +100,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the disk | | `resourceGroupName` | string | The resource group the disk was deployed into | | `resourceId` | string | The resource ID of the disk | diff --git a/arm/Microsoft.Compute/galleries/deploy.bicep b/arm/Microsoft.Compute/galleries/deploy.bicep index 621c3f9bac..1714d34f20 100644 --- a/arm/Microsoft.Compute/galleries/deploy.bicep +++ b/arm/Microsoft.Compute/galleries/deploy.bicep @@ -109,3 +109,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the deployed image gallery') output name string = gallery.name + +@description('The location the resource was deployed into.') +output location string = gallery.location diff --git a/arm/Microsoft.Compute/galleries/images/deploy.bicep b/arm/Microsoft.Compute/galleries/images/deploy.bicep index 2de2cd544e..5b88b9ff8d 100644 --- a/arm/Microsoft.Compute/galleries/images/deploy.bicep +++ b/arm/Microsoft.Compute/galleries/images/deploy.bicep @@ -169,3 +169,6 @@ output resourceId string = image.id @description('The name of the image') output name string = image.name + +@description('The location the resource was deployed into.') +output location string = image.location diff --git a/arm/Microsoft.Compute/galleries/images/readme.md b/arm/Microsoft.Compute/galleries/images/readme.md index fab3c217f3..c5b9f970aa 100644 --- a/arm/Microsoft.Compute/galleries/images/readme.md +++ b/arm/Microsoft.Compute/galleries/images/readme.md @@ -98,6 +98,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the image | | `resourceGroupName` | string | The resource group the image was deployed into | | `resourceId` | string | The resource ID of the image | diff --git a/arm/Microsoft.Compute/galleries/readme.md b/arm/Microsoft.Compute/galleries/readme.md index e6c8d8f207..9ff4ae3e61 100644 --- a/arm/Microsoft.Compute/galleries/readme.md +++ b/arm/Microsoft.Compute/galleries/readme.md @@ -83,6 +83,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed image gallery | | `resourceGroupName` | string | The resource group of the deployed image gallery | | `resourceId` | string | The resource ID of the deployed image gallery | diff --git a/arm/Microsoft.Compute/images/deploy.bicep b/arm/Microsoft.Compute/images/deploy.bicep index 988bbda557..9feb6bfce3 100644 --- a/arm/Microsoft.Compute/images/deploy.bicep +++ b/arm/Microsoft.Compute/images/deploy.bicep @@ -81,3 +81,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the image') output name string = image.name + +@description('The location the resource was deployed into.') +output location string = image.location diff --git a/arm/Microsoft.Compute/images/readme.md b/arm/Microsoft.Compute/images/readme.md index 3fc8bb62fc..cf2d6fa2a3 100644 --- a/arm/Microsoft.Compute/images/readme.md +++ b/arm/Microsoft.Compute/images/readme.md @@ -84,6 +84,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the image | | `resourceGroupName` | string | The resource group the image was deployed into | | `resourceId` | string | The resource ID of the image | diff --git a/arm/Microsoft.Compute/proximityPlacementGroups/deploy.bicep b/arm/Microsoft.Compute/proximityPlacementGroups/deploy.bicep index e67aa77400..6b95a36ce1 100644 --- a/arm/Microsoft.Compute/proximityPlacementGroups/deploy.bicep +++ b/arm/Microsoft.Compute/proximityPlacementGroups/deploy.bicep @@ -77,3 +77,6 @@ output resourceId string = proximityPlacementGroup.id @description('The resource group the proximity placement group was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = proximityPlacementGroup.location diff --git a/arm/Microsoft.Compute/proximityPlacementGroups/readme.md b/arm/Microsoft.Compute/proximityPlacementGroups/readme.md index 6eea471964..68a7c846af 100644 --- a/arm/Microsoft.Compute/proximityPlacementGroups/readme.md +++ b/arm/Microsoft.Compute/proximityPlacementGroups/readme.md @@ -81,6 +81,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the proximity placement group | | `resourceGroupName` | string | The resource group the proximity placement group was deployed into | | `resourceId` | string | The resourceId the proximity placement group | diff --git a/arm/Microsoft.Compute/virtualMachineScaleSets/deploy.bicep b/arm/Microsoft.Compute/virtualMachineScaleSets/deploy.bicep index 7930c128f4..5ff709ced2 100644 --- a/arm/Microsoft.Compute/virtualMachineScaleSets/deploy.bicep +++ b/arm/Microsoft.Compute/virtualMachineScaleSets/deploy.bicep @@ -667,3 +667,6 @@ output name string = vmss.name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(vmss.identity, 'principalId') ? vmss.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = vmss.location diff --git a/arm/Microsoft.Compute/virtualMachineScaleSets/readme.md b/arm/Microsoft.Compute/virtualMachineScaleSets/readme.md index e15215a658..14286c2440 100644 --- a/arm/Microsoft.Compute/virtualMachineScaleSets/readme.md +++ b/arm/Microsoft.Compute/virtualMachineScaleSets/readme.md @@ -427,6 +427,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the virtual machine scale set | | `resourceGroupName` | string | The resource group of the virtual machine scale set | | `resourceId` | string | The resource ID of the virtual machine scale set | diff --git a/arm/Microsoft.Compute/virtualMachines/deploy.bicep b/arm/Microsoft.Compute/virtualMachines/deploy.bicep index e6269f9976..6061f3d543 100644 --- a/arm/Microsoft.Compute/virtualMachines/deploy.bicep +++ b/arm/Microsoft.Compute/virtualMachines/deploy.bicep @@ -651,3 +651,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(virtualMachine.identity, 'principalId') ? virtualMachine.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = virtualMachine.location diff --git a/arm/Microsoft.Compute/virtualMachines/extensions/deploy.bicep b/arm/Microsoft.Compute/virtualMachines/extensions/deploy.bicep index b0ec0ffb45..d107e7412c 100644 --- a/arm/Microsoft.Compute/virtualMachines/extensions/deploy.bicep +++ b/arm/Microsoft.Compute/virtualMachines/extensions/deploy.bicep @@ -79,3 +79,6 @@ output resourceId string = extension.id @description('The name of the Resource Group the extension was created in.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = extension.location diff --git a/arm/Microsoft.Compute/virtualMachines/extensions/readme.md b/arm/Microsoft.Compute/virtualMachines/extensions/readme.md index f5c3af9fd7..b9a389aa72 100644 --- a/arm/Microsoft.Compute/virtualMachines/extensions/readme.md +++ b/arm/Microsoft.Compute/virtualMachines/extensions/readme.md @@ -42,6 +42,7 @@ This module deploys a virtual machine extension. | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the extension | | `resourceGroupName` | string | The name of the Resource Group the extension was created in. | | `resourceId` | string | The resource ID of the extension | diff --git a/arm/Microsoft.Compute/virtualMachines/readme.md b/arm/Microsoft.Compute/virtualMachines/readme.md index ac25bd60c8..b7cf2e9f6e 100644 --- a/arm/Microsoft.Compute/virtualMachines/readme.md +++ b/arm/Microsoft.Compute/virtualMachines/readme.md @@ -543,6 +543,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the VM. | | `resourceGroupName` | string | The name of the resource group the VM was created in. | | `resourceId` | string | The resource ID of the VM. | diff --git a/arm/Microsoft.ContainerInstance/containerGroups/deploy.bicep b/arm/Microsoft.ContainerInstance/containerGroups/deploy.bicep index 2948d859bb..ece70236bf 100644 --- a/arm/Microsoft.ContainerInstance/containerGroups/deploy.bicep +++ b/arm/Microsoft.ContainerInstance/containerGroups/deploy.bicep @@ -134,3 +134,6 @@ output iPv4Address string = containergroup.properties.ipAddress.ip @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(containergroup.identity, 'principalId') ? containergroup.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = containergroup.location diff --git a/arm/Microsoft.ContainerInstance/containerGroups/readme.md b/arm/Microsoft.ContainerInstance/containerGroups/readme.md index 29aa7f1198..19ce86b30d 100644 --- a/arm/Microsoft.ContainerInstance/containerGroups/readme.md +++ b/arm/Microsoft.ContainerInstance/containerGroups/readme.md @@ -95,6 +95,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | | `iPv4Address` | string | The IPv4 address of the container group | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the container group | | `resourceGroupName` | string | The resource group the container group was deployed into | | `resourceId` | string | The resource ID of the container group | diff --git a/arm/Microsoft.ContainerRegistry/registries/deploy.bicep b/arm/Microsoft.ContainerRegistry/registries/deploy.bicep index 2272104227..e05133a1ba 100644 --- a/arm/Microsoft.ContainerRegistry/registries/deploy.bicep +++ b/arm/Microsoft.ContainerRegistry/registries/deploy.bicep @@ -304,3 +304,6 @@ output resourceId string = registry.id @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(registry.identity, 'principalId') ? registry.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = registry.location diff --git a/arm/Microsoft.ContainerRegistry/registries/readme.md b/arm/Microsoft.ContainerRegistry/registries/readme.md index b9ff23c7d8..1e3582b7a7 100644 --- a/arm/Microsoft.ContainerRegistry/registries/readme.md +++ b/arm/Microsoft.ContainerRegistry/registries/readme.md @@ -186,6 +186,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `loginServer` | string | The reference to the Azure container registry. | | `name` | string | The Name of the Azure container registry. | | `resourceGroupName` | string | The name of the Azure container registry. | diff --git a/arm/Microsoft.ContainerRegistry/registries/replications/deploy.bicep b/arm/Microsoft.ContainerRegistry/registries/replications/deploy.bicep index 341b6e44b3..52169f580c 100644 --- a/arm/Microsoft.ContainerRegistry/registries/replications/deploy.bicep +++ b/arm/Microsoft.ContainerRegistry/registries/replications/deploy.bicep @@ -58,3 +58,6 @@ output resourceId string = replication.id @description('The name of the resource group the replication was created in.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = replication.location diff --git a/arm/Microsoft.ContainerRegistry/registries/replications/readme.md b/arm/Microsoft.ContainerRegistry/registries/replications/readme.md index 6e1e0f1a8c..4c4db34936 100644 --- a/arm/Microsoft.ContainerRegistry/registries/replications/readme.md +++ b/arm/Microsoft.ContainerRegistry/registries/replications/readme.md @@ -53,6 +53,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the replication. | | `resourceGroupName` | string | The name of the resource group the replication was created in. | | `resourceId` | string | The resource ID of the replication. | diff --git a/arm/Microsoft.ContainerService/managedClusters/deploy.bicep b/arm/Microsoft.ContainerService/managedClusters/deploy.bicep index 9c446189a5..63be780b18 100644 --- a/arm/Microsoft.ContainerService/managedClusters/deploy.bicep +++ b/arm/Microsoft.ContainerService/managedClusters/deploy.bicep @@ -584,3 +584,6 @@ output kubeletidentityObjectId string = contains(managedCluster.properties, 'ide @description('The Object ID of the OMS agent identity.') output omsagentIdentityObjectId string = contains(managedCluster.properties, 'addonProfiles') ? contains(managedCluster.properties.addonProfiles, 'omsagent') ? contains(managedCluster.properties.addonProfiles.omsagent, 'identity') ? managedCluster.properties.addonProfiles.omsagent.identity.objectId : '' : '' : '' + +@description('The location the resource was deployed into.') +output location string = managedCluster.location diff --git a/arm/Microsoft.ContainerService/managedClusters/readme.md b/arm/Microsoft.ContainerService/managedClusters/readme.md index 8a9f9cc5cd..591164891c 100644 --- a/arm/Microsoft.ContainerService/managedClusters/readme.md +++ b/arm/Microsoft.ContainerService/managedClusters/readme.md @@ -247,6 +247,7 @@ You can specify multiple user assigned identities to a resource by providing add | :-- | :-- | :-- | | `controlPlaneFQDN` | string | The control plane FQDN of the managed cluster | | `kubeletidentityObjectId` | string | The Object ID of the AKS identity. | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the managed cluster | | `omsagentIdentityObjectId` | string | The Object ID of the OMS agent identity. | | `resourceGroupName` | string | The resource group the managed cluster was deployed into | diff --git a/arm/Microsoft.DataFactory/factories/deploy.bicep b/arm/Microsoft.DataFactory/factories/deploy.bicep index c17f3ccbca..ad85096b6a 100644 --- a/arm/Microsoft.DataFactory/factories/deploy.bicep +++ b/arm/Microsoft.DataFactory/factories/deploy.bicep @@ -226,3 +226,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(dataFactory.identity, 'principalId') ? dataFactory.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = dataFactory.location diff --git a/arm/Microsoft.DataFactory/factories/readme.md b/arm/Microsoft.DataFactory/factories/readme.md index 2d6abf55af..88ce45f3e2 100644 --- a/arm/Microsoft.DataFactory/factories/readme.md +++ b/arm/Microsoft.DataFactory/factories/readme.md @@ -114,6 +114,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The Name of the Azure Data Factory instance. | | `resourceGroupName` | string | The name of the Resource Group with the Data factory. | | `resourceId` | string | The Resource ID of the Data factory. | diff --git a/arm/Microsoft.Databricks/workspaces/deploy.bicep b/arm/Microsoft.Databricks/workspaces/deploy.bicep index c71acd9037..f63a3c77d4 100644 --- a/arm/Microsoft.Databricks/workspaces/deploy.bicep +++ b/arm/Microsoft.Databricks/workspaces/deploy.bicep @@ -159,3 +159,6 @@ output resourceId string = workspace.id @description('The resource group of the deployed databricks workspace') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = workspace.location diff --git a/arm/Microsoft.Databricks/workspaces/readme.md b/arm/Microsoft.Databricks/workspaces/readme.md index cd897670b6..9625dda64f 100644 --- a/arm/Microsoft.Databricks/workspaces/readme.md +++ b/arm/Microsoft.Databricks/workspaces/readme.md @@ -122,6 +122,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed databricks workspace | | `resourceGroupName` | string | The resource group of the deployed databricks workspace | | `resourceId` | string | The resource ID of the deployed databricks workspace | diff --git a/arm/Microsoft.DesktopVirtualization/applicationgroups/deploy.bicep b/arm/Microsoft.DesktopVirtualization/applicationgroups/deploy.bicep index 8885f6c25a..646c961c7f 100644 --- a/arm/Microsoft.DesktopVirtualization/applicationgroups/deploy.bicep +++ b/arm/Microsoft.DesktopVirtualization/applicationgroups/deploy.bicep @@ -167,3 +167,6 @@ output resourceGroupName string = resourceGroup().name @sys.description('The name of the AVD application group') output name string = appGroup.name + +@sys.description('The location the resource was deployed into.') +output location string = appGroup.location diff --git a/arm/Microsoft.DesktopVirtualization/applicationgroups/readme.md b/arm/Microsoft.DesktopVirtualization/applicationgroups/readme.md index cf12868073..fcc29b9fb9 100644 --- a/arm/Microsoft.DesktopVirtualization/applicationgroups/readme.md +++ b/arm/Microsoft.DesktopVirtualization/applicationgroups/readme.md @@ -94,6 +94,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the AVD application group | | `resourceGroupName` | string | The resource group the AVD application group was deployed into | | `resourceId` | string | The resource ID of the AVD application group | diff --git a/arm/Microsoft.DesktopVirtualization/hostpools/deploy.bicep b/arm/Microsoft.DesktopVirtualization/hostpools/deploy.bicep index 792a73db48..2317ecda8a 100644 --- a/arm/Microsoft.DesktopVirtualization/hostpools/deploy.bicep +++ b/arm/Microsoft.DesktopVirtualization/hostpools/deploy.bicep @@ -212,3 +212,6 @@ output name string = hostPool.name @description('The expiration time for the registration token') output tokenExpirationTime string = dateTimeAdd(baseTime, tokenValidityLength) + +@description('The location the resource was deployed into.') +output location string = hostPool.location diff --git a/arm/Microsoft.DesktopVirtualization/hostpools/readme.md b/arm/Microsoft.DesktopVirtualization/hostpools/readme.md index 6008e718aa..30e2d4c21c 100644 --- a/arm/Microsoft.DesktopVirtualization/hostpools/readme.md +++ b/arm/Microsoft.DesktopVirtualization/hostpools/readme.md @@ -140,6 +140,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the AVD host pool | | `resourceGroupName` | string | The resource group the AVD host pool was deployed into | | `resourceId` | string | The resource ID of the AVD host pool | diff --git a/arm/Microsoft.DesktopVirtualization/scalingplans/deploy.bicep b/arm/Microsoft.DesktopVirtualization/scalingplans/deploy.bicep index 3c6a161dff..55109967a3 100644 --- a/arm/Microsoft.DesktopVirtualization/scalingplans/deploy.bicep +++ b/arm/Microsoft.DesktopVirtualization/scalingplans/deploy.bicep @@ -154,3 +154,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the AVD scaling plan') output name string = scalingPlan.name + +@description('The location the resource was deployed into.') +output location string = scalingPlan.location diff --git a/arm/Microsoft.DesktopVirtualization/scalingplans/readme.md b/arm/Microsoft.DesktopVirtualization/scalingplans/readme.md index 57ef18b9a4..760c5f70ab 100644 --- a/arm/Microsoft.DesktopVirtualization/scalingplans/readme.md +++ b/arm/Microsoft.DesktopVirtualization/scalingplans/readme.md @@ -139,6 +139,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the AVD scaling plan | | `resourceGroupName` | string | The resource group the AVD scaling plan was deployed into | | `resourceId` | string | The resource ID of the AVD scaling plan | diff --git a/arm/Microsoft.DesktopVirtualization/workspaces/deploy.bicep b/arm/Microsoft.DesktopVirtualization/workspaces/deploy.bicep index 9d6f2c1218..ffaa14eb9b 100644 --- a/arm/Microsoft.DesktopVirtualization/workspaces/deploy.bicep +++ b/arm/Microsoft.DesktopVirtualization/workspaces/deploy.bicep @@ -136,3 +136,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the AVD workspace') output name string = workspace.name + +@description('The location the resource was deployed into.') +output location string = workspace.location diff --git a/arm/Microsoft.DesktopVirtualization/workspaces/readme.md b/arm/Microsoft.DesktopVirtualization/workspaces/readme.md index b61d4f3577..3fb94c5e75 100644 --- a/arm/Microsoft.DesktopVirtualization/workspaces/readme.md +++ b/arm/Microsoft.DesktopVirtualization/workspaces/readme.md @@ -91,6 +91,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the AVD workspace | | `resourceGroupName` | string | The resource group the AVD workspace was deployed into | | `resourceId` | string | The resource ID of the AVD workspace | diff --git a/arm/Microsoft.DocumentDB/databaseAccounts/deploy.bicep b/arm/Microsoft.DocumentDB/databaseAccounts/deploy.bicep index 62b4113a34..7347a76039 100644 --- a/arm/Microsoft.DocumentDB/databaseAccounts/deploy.bicep +++ b/arm/Microsoft.DocumentDB/databaseAccounts/deploy.bicep @@ -280,3 +280,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(databaseAccount.identity, 'principalId') ? databaseAccount.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = databaseAccount.location diff --git a/arm/Microsoft.DocumentDB/databaseAccounts/readme.md b/arm/Microsoft.DocumentDB/databaseAccounts/readme.md index 7798f89471..adeaa684e9 100644 --- a/arm/Microsoft.DocumentDB/databaseAccounts/readme.md +++ b/arm/Microsoft.DocumentDB/databaseAccounts/readme.md @@ -223,6 +223,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the database account. | | `resourceGroupName` | string | The name of the resource group the database account was created in. | | `resourceId` | string | The resource ID of the database account. | diff --git a/arm/Microsoft.EventGrid/systemTopics/deploy.bicep b/arm/Microsoft.EventGrid/systemTopics/deploy.bicep index ce60faf001..5d3d63f9d6 100644 --- a/arm/Microsoft.EventGrid/systemTopics/deploy.bicep +++ b/arm/Microsoft.EventGrid/systemTopics/deploy.bicep @@ -175,3 +175,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(systemTopic.identity, 'principalId') ? systemTopic.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = systemTopic.location diff --git a/arm/Microsoft.EventGrid/systemTopics/readme.md b/arm/Microsoft.EventGrid/systemTopics/readme.md index 6695de6364..116232f82e 100644 --- a/arm/Microsoft.EventGrid/systemTopics/readme.md +++ b/arm/Microsoft.EventGrid/systemTopics/readme.md @@ -145,6 +145,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the event grid system topic | | `resourceGroupName` | string | The name of the resource group the event grid system topic was deployed into | | `resourceId` | string | The resource ID of the event grid system topic | diff --git a/arm/Microsoft.EventGrid/topics/deploy.bicep b/arm/Microsoft.EventGrid/topics/deploy.bicep index 516839abbe..ddb5e8dc1f 100644 --- a/arm/Microsoft.EventGrid/topics/deploy.bicep +++ b/arm/Microsoft.EventGrid/topics/deploy.bicep @@ -160,3 +160,6 @@ output resourceId string = eventGrid.id @description('The name of the resource group the event grid was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = eventGrid.location diff --git a/arm/Microsoft.EventGrid/topics/readme.md b/arm/Microsoft.EventGrid/topics/readme.md index f11924a0c0..eddd08e05b 100644 --- a/arm/Microsoft.EventGrid/topics/readme.md +++ b/arm/Microsoft.EventGrid/topics/readme.md @@ -130,6 +130,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the event grid topic | | `resourceGroupName` | string | The name of the resource group the event grid was deployed into | | `resourceId` | string | The resource ID of the event grid | diff --git a/arm/Microsoft.EventHub/namespaces/deploy.bicep b/arm/Microsoft.EventHub/namespaces/deploy.bicep index 84515f7611..942203ba0f 100644 --- a/arm/Microsoft.EventHub/namespaces/deploy.bicep +++ b/arm/Microsoft.EventHub/namespaces/deploy.bicep @@ -296,3 +296,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(eventHubNamespace.identity, 'principalId') ? eventHubNamespace.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = eventHubNamespace.location diff --git a/arm/Microsoft.EventHub/namespaces/readme.md b/arm/Microsoft.EventHub/namespaces/readme.md index b53d96e7cb..c91779ebcc 100644 --- a/arm/Microsoft.EventHub/namespaces/readme.md +++ b/arm/Microsoft.EventHub/namespaces/readme.md @@ -153,6 +153,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the eventspace. | | `resourceGroupName` | string | The resource group where the namespace is deployed. | | `resourceId` | string | The resource ID of the eventspace. | diff --git a/arm/Microsoft.HealthBot/healthBots/deploy.bicep b/arm/Microsoft.HealthBot/healthBots/deploy.bicep index cf434040bf..03c7e5fcb5 100644 --- a/arm/Microsoft.HealthBot/healthBots/deploy.bicep +++ b/arm/Microsoft.HealthBot/healthBots/deploy.bicep @@ -74,3 +74,6 @@ output name string = azureHealthBot.name @description('The resource ID of the health bot') output resourceId string = azureHealthBot.id + +@description('The location the resource was deployed into.') +output location string = azureHealthBot.location diff --git a/arm/Microsoft.HealthBot/healthBots/readme.md b/arm/Microsoft.HealthBot/healthBots/readme.md index ca1a2c2aa7..da4d120b6a 100644 --- a/arm/Microsoft.HealthBot/healthBots/readme.md +++ b/arm/Microsoft.HealthBot/healthBots/readme.md @@ -81,6 +81,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the health bot | | `resourceGroupName` | string | The resource group the health bot was deployed into | | `resourceId` | string | The resource ID of the health bot | diff --git a/arm/Microsoft.Insights/actionGroups/deploy.bicep b/arm/Microsoft.Insights/actionGroups/deploy.bicep index da1866b7e7..541848aa00 100644 --- a/arm/Microsoft.Insights/actionGroups/deploy.bicep +++ b/arm/Microsoft.Insights/actionGroups/deploy.bicep @@ -100,3 +100,6 @@ output name string = actionGroup.name @description('The resource ID of the action group ') output resourceId string = actionGroup.id + +@description('The location the resource was deployed into.') +output location string = actionGroup.location diff --git a/arm/Microsoft.Insights/actionGroups/readme.md b/arm/Microsoft.Insights/actionGroups/readme.md index bec557454e..c93b527bc4 100644 --- a/arm/Microsoft.Insights/actionGroups/readme.md +++ b/arm/Microsoft.Insights/actionGroups/readme.md @@ -134,6 +134,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the action group | | `resourceGroupName` | string | The resource group the action group was deployed into | | `resourceId` | string | The resource ID of the action group | diff --git a/arm/Microsoft.Insights/activityLogAlerts/deploy.bicep b/arm/Microsoft.Insights/activityLogAlerts/deploy.bicep index 07efbf5a07..db33801487 100644 --- a/arm/Microsoft.Insights/activityLogAlerts/deploy.bicep +++ b/arm/Microsoft.Insights/activityLogAlerts/deploy.bicep @@ -83,3 +83,6 @@ output resourceId string = activityLogAlert.id @description('The resource group the activity log alert was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = activityLogAlert.location diff --git a/arm/Microsoft.Insights/activityLogAlerts/readme.md b/arm/Microsoft.Insights/activityLogAlerts/readme.md index 8dc1a768f2..e76a6d0ebe 100644 --- a/arm/Microsoft.Insights/activityLogAlerts/readme.md +++ b/arm/Microsoft.Insights/activityLogAlerts/readme.md @@ -188,6 +188,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the activity log alert | | `resourceGroupName` | string | The resource group the activity log alert was deployed into | | `resourceId` | string | The resource ID of the activity log alert | diff --git a/arm/Microsoft.Insights/components/deploy.bicep b/arm/Microsoft.Insights/components/deploy.bicep index 69568f3504..c688821b80 100644 --- a/arm/Microsoft.Insights/components/deploy.bicep +++ b/arm/Microsoft.Insights/components/deploy.bicep @@ -108,3 +108,6 @@ output resourceGroupName string = resourceGroup().name @description('The application ID of the application insights component') output applicationId string = appInsights.properties.AppId + +@description('The location the resource was deployed into.') +output location string = appInsights.location diff --git a/arm/Microsoft.Insights/components/readme.md b/arm/Microsoft.Insights/components/readme.md index e36c0a3693..2b7e0d854a 100644 --- a/arm/Microsoft.Insights/components/readme.md +++ b/arm/Microsoft.Insights/components/readme.md @@ -84,6 +84,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | | `applicationId` | string | The application ID of the application insights component | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the application insights component | | `resourceGroupName` | string | The resource group the application insights component was deployed into | | `resourceId` | string | The resource ID of the application insights component | diff --git a/arm/Microsoft.Insights/metricAlerts/deploy.bicep b/arm/Microsoft.Insights/metricAlerts/deploy.bicep index 2d3c8e1511..6bcb32f684 100644 --- a/arm/Microsoft.Insights/metricAlerts/deploy.bicep +++ b/arm/Microsoft.Insights/metricAlerts/deploy.bicep @@ -138,3 +138,6 @@ output name string = metricAlert.name @description('The resource ID of the metric alert') output resourceId string = metricAlert.id + +@description('The location the resource was deployed into.') +output location string = metricAlert.location diff --git a/arm/Microsoft.Insights/metricAlerts/readme.md b/arm/Microsoft.Insights/metricAlerts/readme.md index 3bbc249c7c..6995f2bcca 100644 --- a/arm/Microsoft.Insights/metricAlerts/readme.md +++ b/arm/Microsoft.Insights/metricAlerts/readme.md @@ -178,6 +178,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the metric alert | | `resourceGroupName` | string | The resource group the metric alert was deployed into | | `resourceId` | string | The resource ID of the metric alert | diff --git a/arm/Microsoft.Insights/privateLinkScopes/deploy.bicep b/arm/Microsoft.Insights/privateLinkScopes/deploy.bicep index c93b9cd05b..6bbbe88ab0 100644 --- a/arm/Microsoft.Insights/privateLinkScopes/deploy.bicep +++ b/arm/Microsoft.Insights/privateLinkScopes/deploy.bicep @@ -95,3 +95,6 @@ output resourceId string = privateLinkScope.id @description('The resource group the private link scope was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = privateLinkScope.location diff --git a/arm/Microsoft.Insights/privateLinkScopes/readme.md b/arm/Microsoft.Insights/privateLinkScopes/readme.md index 16e1452d30..cadf224694 100644 --- a/arm/Microsoft.Insights/privateLinkScopes/readme.md +++ b/arm/Microsoft.Insights/privateLinkScopes/readme.md @@ -121,6 +121,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the private link scope | | `resourceGroupName` | string | The resource group the private link scope was deployed into | | `resourceId` | string | The resource ID of the private link scope | diff --git a/arm/Microsoft.Insights/scheduledQueryRules/deploy.bicep b/arm/Microsoft.Insights/scheduledQueryRules/deploy.bicep index f6c7969931..e2aef196c3 100644 --- a/arm/Microsoft.Insights/scheduledQueryRules/deploy.bicep +++ b/arm/Microsoft.Insights/scheduledQueryRules/deploy.bicep @@ -124,3 +124,6 @@ output resourceId string = queryRule.id @description('The Resource Group of the created query rule.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = queryRule.location diff --git a/arm/Microsoft.Insights/scheduledQueryRules/readme.md b/arm/Microsoft.Insights/scheduledQueryRules/readme.md index 53f8ba4b77..cb29eda64c 100644 --- a/arm/Microsoft.Insights/scheduledQueryRules/readme.md +++ b/arm/Microsoft.Insights/scheduledQueryRules/readme.md @@ -92,6 +92,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The Name of the created query rule. | | `resourceGroupName` | string | The Resource Group of the created query rule. | | `resourceId` | string | The resource ID of the created query rule. | diff --git a/arm/Microsoft.KeyVault/vaults/deploy.bicep b/arm/Microsoft.KeyVault/vaults/deploy.bicep index 361f0c20d4..df0770807f 100644 --- a/arm/Microsoft.KeyVault/vaults/deploy.bicep +++ b/arm/Microsoft.KeyVault/vaults/deploy.bicep @@ -314,3 +314,6 @@ output name string = keyVault.name @description('The URI of the key vault.') output uri string = keyVault.properties.vaultUri + +@description('The location the resource was deployed into.') +output location string = keyVault.location diff --git a/arm/Microsoft.KeyVault/vaults/readme.md b/arm/Microsoft.KeyVault/vaults/readme.md index b63748eaaa..c93e5767f6 100644 --- a/arm/Microsoft.KeyVault/vaults/readme.md +++ b/arm/Microsoft.KeyVault/vaults/readme.md @@ -196,6 +196,7 @@ To use Private Endpoint the following dependencies must be deployed: | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the key vault. | | `resourceGroupName` | string | The name of the resource group the key vault was created in. | | `resourceId` | string | The resource ID of the key vault. | diff --git a/arm/Microsoft.Logic/workflows/deploy.bicep b/arm/Microsoft.Logic/workflows/deploy.bicep index 14407d7b5f..4674a31ab5 100644 --- a/arm/Microsoft.Logic/workflows/deploy.bicep +++ b/arm/Microsoft.Logic/workflows/deploy.bicep @@ -234,3 +234,6 @@ output resourceId string = logicApp.id @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(logicApp.identity, 'principalId') ? logicApp.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = logicApp.location diff --git a/arm/Microsoft.Logic/workflows/readme.md b/arm/Microsoft.Logic/workflows/readme.md index f734b53b1c..7390558321 100644 --- a/arm/Microsoft.Logic/workflows/readme.md +++ b/arm/Microsoft.Logic/workflows/readme.md @@ -172,6 +172,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the logic app | | `resourceGroupName` | string | The resource group the logic app was deployed into | | `resourceId` | string | The resource ID of the logic app | diff --git a/arm/Microsoft.MachineLearningServices/workspaces/computes/deploy.bicep b/arm/Microsoft.MachineLearningServices/workspaces/computes/deploy.bicep index de7d43f86c..1e80a9e4df 100644 --- a/arm/Microsoft.MachineLearningServices/workspaces/computes/deploy.bicep +++ b/arm/Microsoft.MachineLearningServices/workspaces/computes/deploy.bicep @@ -134,3 +134,6 @@ output resourceGroupName string = resourceGroup().name @sys.description('The principal ID of the system assigned identity. Is null in case of attaching a compute resource, i.e. when you provide a resource ID.') output systemAssignedPrincipalId string = empty(resourceId) ? (systemAssignedIdentity && contains(machineLearningWorkspaceCompute.identity, 'principalId') ? machineLearningWorkspaceCompute.identity.principalId : '') : '' + +@sys.description('The location the resource was deployed into.') +output location string = machineLearningWorkspace.location diff --git a/arm/Microsoft.MachineLearningServices/workspaces/computes/readme.md b/arm/Microsoft.MachineLearningServices/workspaces/computes/readme.md index 95e104fae1..2556eb9dfe 100644 --- a/arm/Microsoft.MachineLearningServices/workspaces/computes/readme.md +++ b/arm/Microsoft.MachineLearningServices/workspaces/computes/readme.md @@ -88,6 +88,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the compute. | | `resourceGroupName` | string | The resource group the compute was deployed into. | | `resourceId` | string | The resource ID of the compute. | diff --git a/arm/Microsoft.MachineLearningServices/workspaces/deploy.bicep b/arm/Microsoft.MachineLearningServices/workspaces/deploy.bicep index 210a03e794..5a713f6615 100644 --- a/arm/Microsoft.MachineLearningServices/workspaces/deploy.bicep +++ b/arm/Microsoft.MachineLearningServices/workspaces/deploy.bicep @@ -290,3 +290,6 @@ output name string = workspace.name @sys.description('The principal ID of the system assigned identity.') output principalId string = (!empty(identity) && contains(identity.type, 'SystemAssigned')) ? workspace.identity.principalId : '' + +@sys.description('The location the resource was deployed into.') +output location string = workspace.location diff --git a/arm/Microsoft.MachineLearningServices/workspaces/readme.md b/arm/Microsoft.MachineLearningServices/workspaces/readme.md index eeecadf235..d66d772e01 100644 --- a/arm/Microsoft.MachineLearningServices/workspaces/readme.md +++ b/arm/Microsoft.MachineLearningServices/workspaces/readme.md @@ -215,6 +215,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the machine learning service | | `principalId` | string | The principal ID of the system assigned identity. | | `resourceGroupName` | string | The resource group the machine learning service was deployed into | diff --git a/arm/Microsoft.ManagedIdentity/userAssignedIdentities/deploy.bicep b/arm/Microsoft.ManagedIdentity/userAssignedIdentities/deploy.bicep index 204da36b7d..bcc5b0a438 100644 --- a/arm/Microsoft.ManagedIdentity/userAssignedIdentities/deploy.bicep +++ b/arm/Microsoft.ManagedIdentity/userAssignedIdentities/deploy.bicep @@ -70,3 +70,6 @@ output principalId string = userMsi.properties.principalId @description('The resource group the user assigned identity was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = userMsi.location diff --git a/arm/Microsoft.ManagedIdentity/userAssignedIdentities/readme.md b/arm/Microsoft.ManagedIdentity/userAssignedIdentities/readme.md index 54d6ccb601..ef2556a616 100644 --- a/arm/Microsoft.ManagedIdentity/userAssignedIdentities/readme.md +++ b/arm/Microsoft.ManagedIdentity/userAssignedIdentities/readme.md @@ -76,6 +76,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the user assigned identity | | `principalId` | string | The principal ID of the user assigned identity | | `resourceGroupName` | string | The resource group the user assigned identity was deployed into | diff --git a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/deploy.bicep b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/deploy.bicep index cef2a84608..e7778c5069 100644 --- a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/deploy.bicep +++ b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/deploy.bicep @@ -108,3 +108,6 @@ output resourceId string = capacityPool.id @description('The name of the Resource Group the Capacity Pool was created in.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = capacityPool.location diff --git a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/readme.md b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/readme.md index 876de7db1c..1fd6065b32 100644 --- a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/readme.md +++ b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/readme.md @@ -85,6 +85,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the Capacity Pool. | | `resourceGroupName` | string | The name of the Resource Group the Capacity Pool was created in. | | `resourceId` | string | The resource ID of the Capacity Pool. | diff --git a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/deploy.bicep b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/deploy.bicep index 46e957e1d4..00e7860b5b 100644 --- a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/deploy.bicep +++ b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/deploy.bicep @@ -95,3 +95,6 @@ output resourceId string = volume.id @description('The name of the Resource Group the Volume was created in.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = volume.location diff --git a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/readme.md b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/readme.md index 6cd5de18fa..15adb5e228 100644 --- a/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/readme.md +++ b/arm/Microsoft.NetApp/netAppAccounts/capacityPools/volumes/readme.md @@ -68,6 +68,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the Volume. | | `resourceGroupName` | string | The name of the Resource Group the Volume was created in. | | `resourceId` | string | The Resource ID of the Volume. | diff --git a/arm/Microsoft.NetApp/netAppAccounts/deploy.bicep b/arm/Microsoft.NetApp/netAppAccounts/deploy.bicep index 2ac0bbae47..01848e0184 100644 --- a/arm/Microsoft.NetApp/netAppAccounts/deploy.bicep +++ b/arm/Microsoft.NetApp/netAppAccounts/deploy.bicep @@ -119,3 +119,6 @@ output resourceId string = netAppAccount.id @description('The name of the Resource Group the NetApp account was created in.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = netAppAccount.location diff --git a/arm/Microsoft.NetApp/netAppAccounts/readme.md b/arm/Microsoft.NetApp/netAppAccounts/readme.md index 38ef055926..ea58a2cdce 100644 --- a/arm/Microsoft.NetApp/netAppAccounts/readme.md +++ b/arm/Microsoft.NetApp/netAppAccounts/readme.md @@ -89,6 +89,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the NetApp account. | | `resourceGroupName` | string | The name of the Resource Group the NetApp account was created in. | | `resourceId` | string | The Resource ID of the NetApp account. | diff --git a/arm/Microsoft.Network/applicationGateways/deploy.bicep b/arm/Microsoft.Network/applicationGateways/deploy.bicep index c94b24d398..d73125d86c 100644 --- a/arm/Microsoft.Network/applicationGateways/deploy.bicep +++ b/arm/Microsoft.Network/applicationGateways/deploy.bicep @@ -361,3 +361,6 @@ output resourceId string = applicationGateway.id @description('The resource group the application gateway was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = applicationGateway.location diff --git a/arm/Microsoft.Network/applicationGateways/readme.md b/arm/Microsoft.Network/applicationGateways/readme.md index 7e3507835b..72a86674ba 100644 --- a/arm/Microsoft.Network/applicationGateways/readme.md +++ b/arm/Microsoft.Network/applicationGateways/readme.md @@ -674,6 +674,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the application gateway | | `resourceGroupName` | string | The resource group the application gateway was deployed into | | `resourceId` | string | The resource ID of the application gateway | diff --git a/arm/Microsoft.Network/applicationSecurityGroups/deploy.bicep b/arm/Microsoft.Network/applicationSecurityGroups/deploy.bicep index 924f02eb52..40fa095fbf 100644 --- a/arm/Microsoft.Network/applicationSecurityGroups/deploy.bicep +++ b/arm/Microsoft.Network/applicationSecurityGroups/deploy.bicep @@ -68,3 +68,6 @@ output resourceId string = applicationSecurityGroup.id @description('The name of the application security group') output name string = applicationSecurityGroup.name + +@description('The location the resource was deployed into.') +output location string = applicationSecurityGroup.location diff --git a/arm/Microsoft.Network/applicationSecurityGroups/readme.md b/arm/Microsoft.Network/applicationSecurityGroups/readme.md index db5fa47226..8245052f1c 100644 --- a/arm/Microsoft.Network/applicationSecurityGroups/readme.md +++ b/arm/Microsoft.Network/applicationSecurityGroups/readme.md @@ -80,6 +80,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the application security group | | `resourceGroupName` | string | The resource group the application security group was deployed into | | `resourceId` | string | The resource ID of the application security group | diff --git a/arm/Microsoft.Network/azureFirewalls/deploy.bicep b/arm/Microsoft.Network/azureFirewalls/deploy.bicep index b60a82504b..37727cf761 100644 --- a/arm/Microsoft.Network/azureFirewalls/deploy.bicep +++ b/arm/Microsoft.Network/azureFirewalls/deploy.bicep @@ -222,3 +222,6 @@ output networkRuleCollections array = networkRuleCollections @description('Collection of NAT rule collections used by Azure Firewall') output natRuleCollections array = natRuleCollections + +@description('The location the resource was deployed into.') +output location string = azureFirewall.location diff --git a/arm/Microsoft.Network/azureFirewalls/readme.md b/arm/Microsoft.Network/azureFirewalls/readme.md index f455c021ef..4e1f1a7753 100644 --- a/arm/Microsoft.Network/azureFirewalls/readme.md +++ b/arm/Microsoft.Network/azureFirewalls/readme.md @@ -100,6 +100,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | | `applicationRuleCollections` | array | List of Application Rule Collections | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the Azure firewall | | `natRuleCollections` | array | Collection of NAT rule collections used by Azure Firewall | | `networkRuleCollections` | array | List of Network Rule Collections | diff --git a/arm/Microsoft.Network/bastionHosts/deploy.bicep b/arm/Microsoft.Network/bastionHosts/deploy.bicep index 8a0d46168f..15004cfa56 100644 --- a/arm/Microsoft.Network/bastionHosts/deploy.bicep +++ b/arm/Microsoft.Network/bastionHosts/deploy.bicep @@ -195,3 +195,6 @@ output name string = azureBastion.name @description('The resource ID the Azure Bastion') output resourceId string = azureBastion.id + +@description('The location the resource was deployed into.') +output location string = azureBastion.location diff --git a/arm/Microsoft.Network/bastionHosts/readme.md b/arm/Microsoft.Network/bastionHosts/readme.md index 65041a6120..56df98db2c 100644 --- a/arm/Microsoft.Network/bastionHosts/readme.md +++ b/arm/Microsoft.Network/bastionHosts/readme.md @@ -94,6 +94,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name the Azure Bastion | | `resourceGroupName` | string | The resource group the Azure Bastion was deployed into | | `resourceId` | string | The resource ID the Azure Bastion | diff --git a/arm/Microsoft.Network/connections/deploy.bicep b/arm/Microsoft.Network/connections/deploy.bicep index cdf3fdaaa9..e560904b18 100644 --- a/arm/Microsoft.Network/connections/deploy.bicep +++ b/arm/Microsoft.Network/connections/deploy.bicep @@ -123,3 +123,6 @@ output name string = connection.name @description('The resource ID of the remote connection') output resourceId string = connection.id + +@description('The location the resource was deployed into.') +output location string = connection.location diff --git a/arm/Microsoft.Network/connections/readme.md b/arm/Microsoft.Network/connections/readme.md index f6f1169c22..f33433fbc2 100644 --- a/arm/Microsoft.Network/connections/readme.md +++ b/arm/Microsoft.Network/connections/readme.md @@ -138,6 +138,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the remote connection | | `resourceGroupName` | string | The resource group the remote connection was deployed into | | `resourceId` | string | The resource ID of the remote connection | diff --git a/arm/Microsoft.Network/ddosProtectionPlans/deploy.bicep b/arm/Microsoft.Network/ddosProtectionPlans/deploy.bicep index ecd0083f43..f7849c5aea 100644 --- a/arm/Microsoft.Network/ddosProtectionPlans/deploy.bicep +++ b/arm/Microsoft.Network/ddosProtectionPlans/deploy.bicep @@ -69,3 +69,6 @@ output resourceId string = ddosProtectionPlan.id @description('The name of the DDOS protection plan') output name string = ddosProtectionPlan.name + +@description('The location the resource was deployed into.') +output location string = ddosProtectionPlan.location diff --git a/arm/Microsoft.Network/ddosProtectionPlans/readme.md b/arm/Microsoft.Network/ddosProtectionPlans/readme.md index 6c58d3117f..289a37db82 100644 --- a/arm/Microsoft.Network/ddosProtectionPlans/readme.md +++ b/arm/Microsoft.Network/ddosProtectionPlans/readme.md @@ -80,6 +80,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the DDOS protection plan | | `resourceGroupName` | string | The resource group the DDOS protection plan was deployed into | | `resourceId` | string | The resource ID of the DDOS protection plan | diff --git a/arm/Microsoft.Network/expressRouteCircuits/deploy.bicep b/arm/Microsoft.Network/expressRouteCircuits/deploy.bicep index fb217b5d07..9546d8ecbd 100644 --- a/arm/Microsoft.Network/expressRouteCircuits/deploy.bicep +++ b/arm/Microsoft.Network/expressRouteCircuits/deploy.bicep @@ -218,3 +218,6 @@ output name string = expressRouteCircuits.name @description('The service key of the express route circuit') output serviceKey string = reference(expressRouteCircuits.id, '2021-02-01').serviceKey + +@description('The location the resource was deployed into.') +output location string = expressRouteCircuits.location diff --git a/arm/Microsoft.Network/expressRouteCircuits/readme.md b/arm/Microsoft.Network/expressRouteCircuits/readme.md index 8c7304f569..42300a0db6 100644 --- a/arm/Microsoft.Network/expressRouteCircuits/readme.md +++ b/arm/Microsoft.Network/expressRouteCircuits/readme.md @@ -101,6 +101,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of express route curcuit | | `resourceGroupName` | string | The resource group the express route curcuit was deployed into | | `resourceId` | string | The resource ID of express route curcuit | diff --git a/arm/Microsoft.Network/firewallPolicies/deploy.bicep b/arm/Microsoft.Network/firewallPolicies/deploy.bicep index 3188cb5cb5..7394d54012 100644 --- a/arm/Microsoft.Network/firewallPolicies/deploy.bicep +++ b/arm/Microsoft.Network/firewallPolicies/deploy.bicep @@ -177,3 +177,6 @@ output resourceId string = firewallPolicy.id @description('The resource group of the deployed firewall policy') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = firewallPolicy.location diff --git a/arm/Microsoft.Network/firewallPolicies/readme.md b/arm/Microsoft.Network/firewallPolicies/readme.md index 9cddae8114..8018cd225a 100644 --- a/arm/Microsoft.Network/firewallPolicies/readme.md +++ b/arm/Microsoft.Network/firewallPolicies/readme.md @@ -84,6 +84,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed firewall policy | | `resourceGroupName` | string | The resource group of the deployed firewall policy | | `resourceId` | string | The resource ID of the deployed firewall policy | diff --git a/arm/Microsoft.Network/ipGroups/deploy.bicep b/arm/Microsoft.Network/ipGroups/deploy.bicep index ee21e30c1a..08deff1fa1 100644 --- a/arm/Microsoft.Network/ipGroups/deploy.bicep +++ b/arm/Microsoft.Network/ipGroups/deploy.bicep @@ -74,3 +74,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the IP group') output name string = ipGroup.name + +@description('The location the resource was deployed into.') +output location string = ipGroup.location diff --git a/arm/Microsoft.Network/ipGroups/readme.md b/arm/Microsoft.Network/ipGroups/readme.md index 923051fc43..c818ce27ad 100644 --- a/arm/Microsoft.Network/ipGroups/readme.md +++ b/arm/Microsoft.Network/ipGroups/readme.md @@ -81,6 +81,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the IP group | | `resourceGroupName` | string | The resource group of the IP group was deployed into | | `resourceId` | string | The resource ID of the IP group | diff --git a/arm/Microsoft.Network/loadBalancers/deploy.bicep b/arm/Microsoft.Network/loadBalancers/deploy.bicep index bb467080bf..4ea5dc8dc3 100644 --- a/arm/Microsoft.Network/loadBalancers/deploy.bicep +++ b/arm/Microsoft.Network/loadBalancers/deploy.bicep @@ -266,3 +266,6 @@ output resourceGroupName string = resourceGroup().name @description('The backend address pools available in the load balancer.') output backendpools array = loadBalancer.properties.backendAddressPools + +@description('The location the resource was deployed into.') +output location string = loadBalancer.location diff --git a/arm/Microsoft.Network/loadBalancers/readme.md b/arm/Microsoft.Network/loadBalancers/readme.md index 93a7f6e56b..2eccb1cc13 100644 --- a/arm/Microsoft.Network/loadBalancers/readme.md +++ b/arm/Microsoft.Network/loadBalancers/readme.md @@ -228,6 +228,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | | `backendpools` | array | The backend address pools available in the load balancer. | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the load balancer | | `resourceGroupName` | string | The resource group the load balancer was deployed into | | `resourceId` | string | The resource ID of the load balancer | diff --git a/arm/Microsoft.Network/localNetworkGateways/deploy.bicep b/arm/Microsoft.Network/localNetworkGateways/deploy.bicep index a8570e13ae..1b26066122 100644 --- a/arm/Microsoft.Network/localNetworkGateways/deploy.bicep +++ b/arm/Microsoft.Network/localNetworkGateways/deploy.bicep @@ -100,3 +100,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the local network gateway') output name string = localNetworkGateway.name + +@description('The location the resource was deployed into.') +output location string = localNetworkGateway.location diff --git a/arm/Microsoft.Network/localNetworkGateways/readme.md b/arm/Microsoft.Network/localNetworkGateways/readme.md index 5adfdfe681..ae77bfd9bc 100644 --- a/arm/Microsoft.Network/localNetworkGateways/readme.md +++ b/arm/Microsoft.Network/localNetworkGateways/readme.md @@ -86,6 +86,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the local network gateway | | `resourceGroupName` | string | The resource group the local network gateway was deployed into | | `resourceId` | string | The resource ID of the local network gateway | diff --git a/arm/Microsoft.Network/natGateways/deploy.bicep b/arm/Microsoft.Network/natGateways/deploy.bicep index e13ac102ec..b599a0f725 100644 --- a/arm/Microsoft.Network/natGateways/deploy.bicep +++ b/arm/Microsoft.Network/natGateways/deploy.bicep @@ -212,3 +212,6 @@ output resourceId string = natGateway.id @description('The resource group the NAT Gateway was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = natGateway.location diff --git a/arm/Microsoft.Network/natGateways/readme.md b/arm/Microsoft.Network/natGateways/readme.md index ee69855552..aabedd81a7 100644 --- a/arm/Microsoft.Network/natGateways/readme.md +++ b/arm/Microsoft.Network/natGateways/readme.md @@ -98,6 +98,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the NAT Gateway | | `resourceGroupName` | string | The resource group the NAT Gateway was deployed into | | `resourceId` | string | The resource ID of the NAT Gateway | diff --git a/arm/Microsoft.Network/networkSecurityGroups/deploy.bicep b/arm/Microsoft.Network/networkSecurityGroups/deploy.bicep index 5db5c2fce3..f20f237b69 100644 --- a/arm/Microsoft.Network/networkSecurityGroups/deploy.bicep +++ b/arm/Microsoft.Network/networkSecurityGroups/deploy.bicep @@ -167,3 +167,6 @@ output resourceId string = networkSecurityGroup.id @description('The name of the network security group') output name string = networkSecurityGroup.name + +@description('The location the resource was deployed into.') +output location string = networkSecurityGroup.location diff --git a/arm/Microsoft.Network/networkSecurityGroups/readme.md b/arm/Microsoft.Network/networkSecurityGroups/readme.md index d9251dff8c..aafdc01ff2 100644 --- a/arm/Microsoft.Network/networkSecurityGroups/readme.md +++ b/arm/Microsoft.Network/networkSecurityGroups/readme.md @@ -90,6 +90,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the network security group | | `resourceGroupName` | string | The resource group the network security group was deployed into | | `resourceId` | string | The resource ID of the network security group | diff --git a/arm/Microsoft.Network/networkWatchers/connectionMonitors/deploy.bicep b/arm/Microsoft.Network/networkWatchers/connectionMonitors/deploy.bicep index 492ee37c42..399949d030 100644 --- a/arm/Microsoft.Network/networkWatchers/connectionMonitors/deploy.bicep +++ b/arm/Microsoft.Network/networkWatchers/connectionMonitors/deploy.bicep @@ -71,3 +71,6 @@ output resourceId string = connectionMonitor.id @description('The resource group the connection monitor was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = connectionMonitor.location diff --git a/arm/Microsoft.Network/networkWatchers/connectionMonitors/readme.md b/arm/Microsoft.Network/networkWatchers/connectionMonitors/readme.md index 42ed73cd65..7752587484 100644 --- a/arm/Microsoft.Network/networkWatchers/connectionMonitors/readme.md +++ b/arm/Microsoft.Network/networkWatchers/connectionMonitors/readme.md @@ -51,6 +51,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed connection monitor | | `resourceGroupName` | string | The resource group the connection monitor was deployed into | | `resourceId` | string | The resource ID of the deployed connection monitor | diff --git a/arm/Microsoft.Network/networkWatchers/deploy.bicep b/arm/Microsoft.Network/networkWatchers/deploy.bicep index 8eb5a8a83c..6fcccb4a2b 100644 --- a/arm/Microsoft.Network/networkWatchers/deploy.bicep +++ b/arm/Microsoft.Network/networkWatchers/deploy.bicep @@ -105,3 +105,6 @@ output resourceId string = networkWatcher.id @description('The resource group the network watcher was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = networkWatcher.location diff --git a/arm/Microsoft.Network/networkWatchers/flowLogs/deploy.bicep b/arm/Microsoft.Network/networkWatchers/flowLogs/deploy.bicep index f148fef06a..307fd218a8 100644 --- a/arm/Microsoft.Network/networkWatchers/flowLogs/deploy.bicep +++ b/arm/Microsoft.Network/networkWatchers/flowLogs/deploy.bicep @@ -100,3 +100,6 @@ output resourceId string = flowLog.id @description('The resource group the flow log was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = flowLog.location diff --git a/arm/Microsoft.Network/networkWatchers/flowLogs/readme.md b/arm/Microsoft.Network/networkWatchers/flowLogs/readme.md index 9f2944edd4..06eb0a374b 100644 --- a/arm/Microsoft.Network/networkWatchers/flowLogs/readme.md +++ b/arm/Microsoft.Network/networkWatchers/flowLogs/readme.md @@ -59,6 +59,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the flow log | | `resourceGroupName` | string | The resource group the flow log was deployed into | | `resourceId` | string | The resource ID of the flow log | diff --git a/arm/Microsoft.Network/networkWatchers/readme.md b/arm/Microsoft.Network/networkWatchers/readme.md index 69545e4cb7..d82fd7f9d9 100644 --- a/arm/Microsoft.Network/networkWatchers/readme.md +++ b/arm/Microsoft.Network/networkWatchers/readme.md @@ -84,6 +84,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed network watcher | | `resourceGroupName` | string | The resource group the network watcher was deployed into | | `resourceId` | string | The resource ID of the deployed network watcher | diff --git a/arm/Microsoft.Network/privateDnsZones/deploy.bicep b/arm/Microsoft.Network/privateDnsZones/deploy.bicep index fa7a207802..5b8308f593 100644 --- a/arm/Microsoft.Network/privateDnsZones/deploy.bicep +++ b/arm/Microsoft.Network/privateDnsZones/deploy.bicep @@ -211,3 +211,6 @@ output name string = privateDnsZone.name @description('The resource ID of the private DNS zone') output resourceId string = privateDnsZone.id + +@description('The location the resource was deployed into.') +output location string = privateDnsZone.location diff --git a/arm/Microsoft.Network/privateDnsZones/readme.md b/arm/Microsoft.Network/privateDnsZones/readme.md index 23cba9d62e..0268477b6c 100644 --- a/arm/Microsoft.Network/privateDnsZones/readme.md +++ b/arm/Microsoft.Network/privateDnsZones/readme.md @@ -98,6 +98,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the private DNS zone | | `resourceGroupName` | string | The resource group the private DNS zone was deployed into | | `resourceId` | string | The resource ID of the private DNS zone | diff --git a/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/deploy.bicep b/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/deploy.bicep index 4785655fab..b74333271f 100644 --- a/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/deploy.bicep +++ b/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/deploy.bicep @@ -56,3 +56,6 @@ output resourceId string = virtualNetworkLink.id @description('The resource group of the deployed virtual network link') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = virtualNetworkLink.location diff --git a/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/readme.md b/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/readme.md index 68aa330d8f..605ed313cd 100644 --- a/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/readme.md +++ b/arm/Microsoft.Network/privateDnsZones/virtualNetworkLinks/readme.md @@ -53,6 +53,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed virtual network link | | `resourceGroupName` | string | The resource group of the deployed virtual network link | | `resourceId` | string | The resource ID of the deployed virtual network link | diff --git a/arm/Microsoft.Network/privateEndpoints/deploy.bicep b/arm/Microsoft.Network/privateEndpoints/deploy.bicep index a84d6bfd50..9685391f83 100644 --- a/arm/Microsoft.Network/privateEndpoints/deploy.bicep +++ b/arm/Microsoft.Network/privateEndpoints/deploy.bicep @@ -104,3 +104,6 @@ output resourceId string = privateEndpoint.id @description('The name of the private endpoint') output name string = privateEndpoint.name + +@description('The location the resource was deployed into.') +output location string = privateEndpoint.location diff --git a/arm/Microsoft.Network/privateEndpoints/readme.md b/arm/Microsoft.Network/privateEndpoints/readme.md index 4460ae8c5e..5fa9160372 100644 --- a/arm/Microsoft.Network/privateEndpoints/readme.md +++ b/arm/Microsoft.Network/privateEndpoints/readme.md @@ -95,6 +95,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the private endpoint | | `resourceGroupName` | string | The resource group the private endpoint was deployed into | | `resourceId` | string | The resource ID of the private endpoint | diff --git a/arm/Microsoft.Network/publicIPAddresses/deploy.bicep b/arm/Microsoft.Network/publicIPAddresses/deploy.bicep index cb6f57cfa9..753e1a4770 100644 --- a/arm/Microsoft.Network/publicIPAddresses/deploy.bicep +++ b/arm/Microsoft.Network/publicIPAddresses/deploy.bicep @@ -192,3 +192,6 @@ output resourceId string = publicIpAddress.id @description('The public IP address of the of the public IP address resource') output ipAddress string = publicIpAddress.properties.ipAddress + +@description('The location the resource was deployed into.') +output location string = publicIpAddress.location diff --git a/arm/Microsoft.Network/publicIPAddresses/readme.md b/arm/Microsoft.Network/publicIPAddresses/readme.md index 0ce2673385..1c4de935e2 100644 --- a/arm/Microsoft.Network/publicIPAddresses/readme.md +++ b/arm/Microsoft.Network/publicIPAddresses/readme.md @@ -94,6 +94,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | | `ipAddress` | string | The public IP address of the of the public IP address resource | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the public IP address | | `resourceGroupName` | string | The resource group the public IP address was deployed into | | `resourceId` | string | The resource ID of the public IP address | diff --git a/arm/Microsoft.Network/publicIPPrefixes/deploy.bicep b/arm/Microsoft.Network/publicIPPrefixes/deploy.bicep index 82f8b7b8af..f2ea8f9e5b 100644 --- a/arm/Microsoft.Network/publicIPPrefixes/deploy.bicep +++ b/arm/Microsoft.Network/publicIPPrefixes/deploy.bicep @@ -80,3 +80,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the public IP prefix') output name string = publicIpPrefix.name + +@description('The location the resource was deployed into.') +output location string = publicIpPrefix.location diff --git a/arm/Microsoft.Network/publicIPPrefixes/readme.md b/arm/Microsoft.Network/publicIPPrefixes/readme.md index 01ad3d3307..0709e62102 100644 --- a/arm/Microsoft.Network/publicIPPrefixes/readme.md +++ b/arm/Microsoft.Network/publicIPPrefixes/readme.md @@ -81,6 +81,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the public IP prefix | | `resourceGroupName` | string | The resource group the public IP prefix was deployed into | | `resourceId` | string | The resource ID of the public IP prefix | diff --git a/arm/Microsoft.Network/routeTables/deploy.bicep b/arm/Microsoft.Network/routeTables/deploy.bicep index 774aa95717..66f6f260cf 100644 --- a/arm/Microsoft.Network/routeTables/deploy.bicep +++ b/arm/Microsoft.Network/routeTables/deploy.bicep @@ -77,3 +77,6 @@ output name string = routeTable.name @description('The resource ID of the route table') output resourceId string = routeTable.id + +@description('The location the resource was deployed into.') +output location string = routeTable.location diff --git a/arm/Microsoft.Network/routeTables/readme.md b/arm/Microsoft.Network/routeTables/readme.md index 2fab128802..5d2a10ba7f 100644 --- a/arm/Microsoft.Network/routeTables/readme.md +++ b/arm/Microsoft.Network/routeTables/readme.md @@ -124,6 +124,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the route table | | `resourceGroupName` | string | The resource group the route table was deployed into | | `resourceId` | string | The resource ID of the route table | diff --git a/arm/Microsoft.Network/virtualHubs/deploy.bicep b/arm/Microsoft.Network/virtualHubs/deploy.bicep index cbd6ae3112..a4e2c320ec 100644 --- a/arm/Microsoft.Network/virtualHubs/deploy.bicep +++ b/arm/Microsoft.Network/virtualHubs/deploy.bicep @@ -171,3 +171,6 @@ output resourceId string = virtualHub.id @description('The name of the virtual hub') output name string = virtualHub.name + +@description('The location the resource was deployed into.') +output location string = virtualHub.location diff --git a/arm/Microsoft.Network/virtualHubs/readme.md b/arm/Microsoft.Network/virtualHubs/readme.md index 5d7d95f945..dae5b822c1 100644 --- a/arm/Microsoft.Network/virtualHubs/readme.md +++ b/arm/Microsoft.Network/virtualHubs/readme.md @@ -13,7 +13,7 @@ This module deploys a Virtual Hub. | Resource Type | API Version | | :-- | :-- | | `Microsoft.Authorization/locks` | [2017-04-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2017-04-01/locks) | -| `Microsoft.Network/virtualHubs` | [2021-05-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/virtualHubs) | +| `Microsoft.Network/virtualHubs` | [2021-05-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2021-05-01/virtualHubs) | | `Microsoft.Network/virtualHubs/hubRouteTables` | [2021-05-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2021-05-01/virtualHubs/hubRouteTables) | | `Microsoft.Network/virtualHubs/hubVirtualNetworkConnections` | [2021-05-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2021-05-01/virtualHubs/hubVirtualNetworkConnections) | @@ -71,6 +71,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the virtual hub | | `resourceGroupName` | string | The resource group the virtual hub was deployed into | | `resourceId` | string | The resource ID of the virtual hub | diff --git a/arm/Microsoft.Network/virtualNetworkGateways/deploy.bicep b/arm/Microsoft.Network/virtualNetworkGateways/deploy.bicep index d99597c1b0..0c0bcec1ec 100644 --- a/arm/Microsoft.Network/virtualNetworkGateways/deploy.bicep +++ b/arm/Microsoft.Network/virtualNetworkGateways/deploy.bicep @@ -406,3 +406,6 @@ output resourceId string = virtualNetworkGateway.id @description('Shows if the virtual network gateway is configured in active-active mode') output activeActive bool = virtualNetworkGateway.properties.activeActive + +@description('The location the resource was deployed into.') +output location string = virtualNetworkGateway.location diff --git a/arm/Microsoft.Network/virtualNetworkGateways/readme.md b/arm/Microsoft.Network/virtualNetworkGateways/readme.md index 6e6f00ff47..da7a40dba9 100644 --- a/arm/Microsoft.Network/virtualNetworkGateways/readme.md +++ b/arm/Microsoft.Network/virtualNetworkGateways/readme.md @@ -139,6 +139,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | | `activeActive` | bool | Shows if the virtual network gateway is configured in active-active mode | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the virtual network gateway | | `resourceGroupName` | string | The resource group the virtual network gateway was deployed | | `resourceId` | string | The resource ID of the virtual network gateway | diff --git a/arm/Microsoft.Network/virtualNetworks/deploy.bicep b/arm/Microsoft.Network/virtualNetworks/deploy.bicep index bd857be34d..3bf0259218 100644 --- a/arm/Microsoft.Network/virtualNetworks/deploy.bicep +++ b/arm/Microsoft.Network/virtualNetworks/deploy.bicep @@ -257,3 +257,6 @@ output subnetNames array = [for subnet in subnets: subnet.name] @description('The resource IDs of the deployed subnets') output subnetResourceIds array = [for subnet in subnets: az.resourceId('Microsoft.Network/virtualNetworks/subnets', name, subnet.name)] + +@description('The location the resource was deployed into.') +output location string = virtualNetwork.location diff --git a/arm/Microsoft.Network/virtualNetworks/readme.md b/arm/Microsoft.Network/virtualNetworks/readme.md index 9599b31554..166ea39e3f 100644 --- a/arm/Microsoft.Network/virtualNetworks/readme.md +++ b/arm/Microsoft.Network/virtualNetworks/readme.md @@ -186,6 +186,7 @@ The network security group and route table resources must reside in the same res | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the virtual network | | `resourceGroupName` | string | The resource group the virtual network was deployed into | | `resourceId` | string | The resource ID of the virtual network | diff --git a/arm/Microsoft.Network/virtualWans/deploy.bicep b/arm/Microsoft.Network/virtualWans/deploy.bicep index ed9577d228..63c9e022c1 100644 --- a/arm/Microsoft.Network/virtualWans/deploy.bicep +++ b/arm/Microsoft.Network/virtualWans/deploy.bicep @@ -89,3 +89,6 @@ output resourceId string = virtualWan.id @description('The resource group the virtual WAN was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = virtualWan.location diff --git a/arm/Microsoft.Network/virtualWans/readme.md b/arm/Microsoft.Network/virtualWans/readme.md index d656fc5f61..13b84293ec 100644 --- a/arm/Microsoft.Network/virtualWans/readme.md +++ b/arm/Microsoft.Network/virtualWans/readme.md @@ -84,6 +84,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the virtual WAN | | `resourceGroupName` | string | The resource group the virtual WAN was deployed into | | `resourceId` | string | The resource ID of the virtual WAN | diff --git a/arm/Microsoft.Network/vpnGateways/deploy.bicep b/arm/Microsoft.Network/vpnGateways/deploy.bicep index 436c0cea3d..5870eedd0c 100644 --- a/arm/Microsoft.Network/vpnGateways/deploy.bicep +++ b/arm/Microsoft.Network/vpnGateways/deploy.bicep @@ -117,3 +117,6 @@ output resourceId string = vpnGateway.id @description('The name of the resource group the VPN gateway was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = vpnGateway.location diff --git a/arm/Microsoft.Network/vpnGateways/readme.md b/arm/Microsoft.Network/vpnGateways/readme.md index 9b07b5236c..270a0cb206 100644 --- a/arm/Microsoft.Network/vpnGateways/readme.md +++ b/arm/Microsoft.Network/vpnGateways/readme.md @@ -96,6 +96,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the VPN gateway | | `resourceGroupName` | string | The name of the resource group the VPN gateway was deployed into | | `resourceId` | string | The resource ID of the VPN gateway | diff --git a/arm/Microsoft.Network/vpnSites/deploy.bicep b/arm/Microsoft.Network/vpnSites/deploy.bicep index 1dd53818ec..d858ee00a1 100644 --- a/arm/Microsoft.Network/vpnSites/deploy.bicep +++ b/arm/Microsoft.Network/vpnSites/deploy.bicep @@ -103,3 +103,6 @@ output resourceId string = vpnSite.id @description('The resource group the VPN site was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = vpnSite.location diff --git a/arm/Microsoft.Network/vpnSites/readme.md b/arm/Microsoft.Network/vpnSites/readme.md index ac37e81d13..a564fb44cf 100644 --- a/arm/Microsoft.Network/vpnSites/readme.md +++ b/arm/Microsoft.Network/vpnSites/readme.md @@ -153,6 +153,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the VPN site | | `resourceGroupName` | string | The resource group the VPN site was deployed into | | `resourceId` | string | The resource ID of the VPN site | diff --git a/arm/Microsoft.OperationalInsights/workspaces/deploy.bicep b/arm/Microsoft.OperationalInsights/workspaces/deploy.bicep index 99995111c5..727c19d3fd 100644 --- a/arm/Microsoft.OperationalInsights/workspaces/deploy.bicep +++ b/arm/Microsoft.OperationalInsights/workspaces/deploy.bicep @@ -274,3 +274,6 @@ output name string = logAnalyticsWorkspace.name @description('The ID associated with the workspace') output logAnalyticsWorkspaceId string = logAnalyticsWorkspace.properties.customerId + +@description('The location the resource was deployed into.') +output location string = logAnalyticsWorkspace.location diff --git a/arm/Microsoft.OperationalInsights/workspaces/readme.md b/arm/Microsoft.OperationalInsights/workspaces/readme.md index 64e726046d..46156c7245 100644 --- a/arm/Microsoft.OperationalInsights/workspaces/readme.md +++ b/arm/Microsoft.OperationalInsights/workspaces/readme.md @@ -235,6 +235,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `logAnalyticsWorkspaceId` | string | The ID associated with the workspace | | `name` | string | The name of the deployed log analytics workspace | | `resourceGroupName` | string | The resource group of the deployed log analytics workspace | diff --git a/arm/Microsoft.RecoveryServices/vaults/deploy.bicep b/arm/Microsoft.RecoveryServices/vaults/deploy.bicep index 6b8d905f65..db17916816 100644 --- a/arm/Microsoft.RecoveryServices/vaults/deploy.bicep +++ b/arm/Microsoft.RecoveryServices/vaults/deploy.bicep @@ -279,3 +279,6 @@ output name string = rsv.name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(rsv.identity, 'principalId') ? rsv.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = rsv.location diff --git a/arm/Microsoft.RecoveryServices/vaults/readme.md b/arm/Microsoft.RecoveryServices/vaults/readme.md index 22011bdd84..07d2675027 100644 --- a/arm/Microsoft.RecoveryServices/vaults/readme.md +++ b/arm/Microsoft.RecoveryServices/vaults/readme.md @@ -423,6 +423,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The Name of the recovery services vault | | `resourceGroupName` | string | The name of the resource group the recovery services vault was created in | | `resourceId` | string | The resource ID of the recovery services vault | diff --git a/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/deploy.bicep b/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/deploy.bicep index 7b5cb2f01c..cdad53051a 100644 --- a/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/deploy.bicep +++ b/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/deploy.bicep @@ -57,3 +57,6 @@ output resourceId string = replicationFabric.id @description('The name of the resource group the replication fabric was created in.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = replicationFabric.location diff --git a/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/readme.md b/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/readme.md index 05e9facccc..6557bf9f81 100644 --- a/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/readme.md +++ b/arm/Microsoft.RecoveryServices/vaults/replicationFabrics/readme.md @@ -59,6 +59,7 @@ This module deploys a Replication Fabric for Azure to Azure disaster recovery sc | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the replication fabric. | | `resourceGroupName` | string | The name of the resource group the replication fabric was created in. | | `resourceId` | string | The resource ID of the replication fabric. | diff --git a/arm/Microsoft.Resources/deploymentScripts/deploy.bicep b/arm/Microsoft.Resources/deploymentScripts/deploy.bicep index 65de5b3b0a..505613db65 100644 --- a/arm/Microsoft.Resources/deploymentScripts/deploy.bicep +++ b/arm/Microsoft.Resources/deploymentScripts/deploy.bicep @@ -134,3 +134,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the deployment script') output name string = deploymentScript.name + +@description('The location the resource was deployed into.') +output location string = deploymentScript.location diff --git a/arm/Microsoft.Resources/deploymentScripts/readme.md b/arm/Microsoft.Resources/deploymentScripts/readme.md index e0409092de..44512e669f 100644 --- a/arm/Microsoft.Resources/deploymentScripts/readme.md +++ b/arm/Microsoft.Resources/deploymentScripts/readme.md @@ -85,6 +85,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployment script | | `resourceGroupName` | string | The resource group the deployment script was deployed into | | `resourceId` | string | The resource ID of the deployment script | diff --git a/arm/Microsoft.Resources/resourceGroups/deploy.bicep b/arm/Microsoft.Resources/resourceGroups/deploy.bicep index f149944422..839c7be439 100644 --- a/arm/Microsoft.Resources/resourceGroups/deploy.bicep +++ b/arm/Microsoft.Resources/resourceGroups/deploy.bicep @@ -69,3 +69,6 @@ output name string = resourceGroup.name @description('The resource ID of the resource group') output resourceId string = resourceGroup.id + +@description('The location the resource was deployed into.') +output location string = resourceGroup.location diff --git a/arm/Microsoft.Resources/resourceGroups/readme.md b/arm/Microsoft.Resources/resourceGroups/readme.md index f5833f2dda..9993f31467 100644 --- a/arm/Microsoft.Resources/resourceGroups/readme.md +++ b/arm/Microsoft.Resources/resourceGroups/readme.md @@ -85,5 +85,6 @@ This module requires a User Assigned Identity (MSI, managed service identity) to | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the resource group | | `resourceId` | string | The resource ID of the resource group | diff --git a/arm/Microsoft.ServiceBus/namespaces/deploy.bicep b/arm/Microsoft.ServiceBus/namespaces/deploy.bicep index ab20032d94..c074ee2c72 100644 --- a/arm/Microsoft.ServiceBus/namespaces/deploy.bicep +++ b/arm/Microsoft.ServiceBus/namespaces/deploy.bicep @@ -339,3 +339,6 @@ output name string = serviceBusNamespace.name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(serviceBusNamespace.identity, 'principalId') ? serviceBusNamespace.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = serviceBusNamespace.location diff --git a/arm/Microsoft.ServiceBus/namespaces/readme.md b/arm/Microsoft.ServiceBus/namespaces/readme.md index e936a20a39..7964acd489 100644 --- a/arm/Microsoft.ServiceBus/namespaces/readme.md +++ b/arm/Microsoft.ServiceBus/namespaces/readme.md @@ -166,6 +166,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed service bus namespace | | `resourceGroupName` | string | The resource group of the deployed service bus namespace | | `resourceId` | string | The resource ID of the deployed service bus namespace | diff --git a/arm/Microsoft.ServiceFabric/clusters/deploy.bicep b/arm/Microsoft.ServiceFabric/clusters/deploy.bicep index fedc50cc08..26050d8b76 100644 --- a/arm/Microsoft.ServiceFabric/clusters/deploy.bicep +++ b/arm/Microsoft.ServiceFabric/clusters/deploy.bicep @@ -321,3 +321,6 @@ output resourceId string = serviceFabricCluster.id @description('The Service Fabric Cluster endpoint.') output endpoint string = serviceFabricCluster.properties.clusterEndpoint + +@description('The location the resource was deployed into.') +output location string = serviceFabricCluster.location diff --git a/arm/Microsoft.ServiceFabric/clusters/readme.md b/arm/Microsoft.ServiceFabric/clusters/readme.md index 4c80adbf96..77dec1d283 100644 --- a/arm/Microsoft.ServiceFabric/clusters/readme.md +++ b/arm/Microsoft.ServiceFabric/clusters/readme.md @@ -132,6 +132,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | | `endpoint` | string | The Service Fabric Cluster endpoint. | +| `location` | string | The location the resource was deployed into. | | `name` | string | The Service Fabric Cluster name. | | `resourceGroupName` | string | The Service Fabric Cluster resource group. | | `resourceId` | string | The Service Fabric Cluster resource ID. | diff --git a/arm/Microsoft.Sql/managedInstances/databases/deploy.bicep b/arm/Microsoft.Sql/managedInstances/databases/deploy.bicep index fd805dfcff..ad9d73b327 100644 --- a/arm/Microsoft.Sql/managedInstances/databases/deploy.bicep +++ b/arm/Microsoft.Sql/managedInstances/databases/deploy.bicep @@ -196,3 +196,6 @@ output resourceId string = database.id @description('The resource group the database was deployed into') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = database.location diff --git a/arm/Microsoft.Sql/managedInstances/databases/readme.md b/arm/Microsoft.Sql/managedInstances/databases/readme.md index 73a495da6c..8d7a83828c 100644 --- a/arm/Microsoft.Sql/managedInstances/databases/readme.md +++ b/arm/Microsoft.Sql/managedInstances/databases/readme.md @@ -79,6 +79,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed database | | `resourceGroupName` | string | The resource group the database was deployed into | | `resourceId` | string | The resource ID of the deployed database | diff --git a/arm/Microsoft.Sql/managedInstances/deploy.bicep b/arm/Microsoft.Sql/managedInstances/deploy.bicep index 44cb5fcdda..612399b43a 100644 --- a/arm/Microsoft.Sql/managedInstances/deploy.bicep +++ b/arm/Microsoft.Sql/managedInstances/deploy.bicep @@ -380,3 +380,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(managedInstance.identity, 'principalId') ? managedInstance.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = managedInstance.location diff --git a/arm/Microsoft.Sql/managedInstances/readme.md b/arm/Microsoft.Sql/managedInstances/readme.md index e07d938b8a..7545d26fd0 100644 --- a/arm/Microsoft.Sql/managedInstances/readme.md +++ b/arm/Microsoft.Sql/managedInstances/readme.md @@ -167,6 +167,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed managed instance | | `resourceGroupName` | string | The resource group of the deployed managed instance | | `resourceId` | string | The resource ID of the deployed managed instance | diff --git a/arm/Microsoft.Sql/servers/databases/deploy.bicep b/arm/Microsoft.Sql/servers/databases/deploy.bicep index 75b98cc14d..2ee4531ec6 100644 --- a/arm/Microsoft.Sql/servers/databases/deploy.bicep +++ b/arm/Microsoft.Sql/servers/databases/deploy.bicep @@ -225,3 +225,6 @@ output resourceId string = database.id @description('The resourceGroup of the deployed database') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = database.location diff --git a/arm/Microsoft.Sql/servers/databases/readme.md b/arm/Microsoft.Sql/servers/databases/readme.md index 78b4c83dbf..88e2cab5a2 100644 --- a/arm/Microsoft.Sql/servers/databases/readme.md +++ b/arm/Microsoft.Sql/servers/databases/readme.md @@ -77,6 +77,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed database | | `resourceGroupName` | string | The resourceGroup of the deployed database | | `resourceId` | string | The resource ID of the deployed database | diff --git a/arm/Microsoft.Sql/servers/deploy.bicep b/arm/Microsoft.Sql/servers/deploy.bicep index eb6605c9f8..74102f78af 100644 --- a/arm/Microsoft.Sql/servers/deploy.bicep +++ b/arm/Microsoft.Sql/servers/deploy.bicep @@ -178,3 +178,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(server.identity, 'principalId') ? server.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = server.location diff --git a/arm/Microsoft.Sql/servers/readme.md b/arm/Microsoft.Sql/servers/readme.md index d2f556b73b..d75343a078 100644 --- a/arm/Microsoft.Sql/servers/readme.md +++ b/arm/Microsoft.Sql/servers/readme.md @@ -122,6 +122,7 @@ https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/servers/administr | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed SQL server | | `resourceGroupName` | string | The resourceGroup of the deployed SQL server | | `resourceId` | string | The resource ID of the deployed SQL server | diff --git a/arm/Microsoft.Storage/storageAccounts/deploy.bicep b/arm/Microsoft.Storage/storageAccounts/deploy.bicep index 8b9ca4d1e2..836e0c6cb2 100644 --- a/arm/Microsoft.Storage/storageAccounts/deploy.bicep +++ b/arm/Microsoft.Storage/storageAccounts/deploy.bicep @@ -356,3 +356,6 @@ output primaryBlobEndpoint string = !empty(blobServices) && contains(blobService @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(storageAccount.identity, 'principalId') ? storageAccount.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = storageAccount.location diff --git a/arm/Microsoft.Storage/storageAccounts/readme.md b/arm/Microsoft.Storage/storageAccounts/readme.md index 3f7567b9fa..2df368e00d 100644 --- a/arm/Microsoft.Storage/storageAccounts/readme.md +++ b/arm/Microsoft.Storage/storageAccounts/readme.md @@ -192,6 +192,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed storage account | | `primaryBlobEndpoint` | string | The primary blob endpoint reference if blob services are deployed. | | `resourceGroupName` | string | The resource group of the deployed storage account | diff --git a/arm/Microsoft.Synapse/privateLinkHubs/deploy.bicep b/arm/Microsoft.Synapse/privateLinkHubs/deploy.bicep index 8aca7e8ff5..c901c3df18 100644 --- a/arm/Microsoft.Synapse/privateLinkHubs/deploy.bicep +++ b/arm/Microsoft.Synapse/privateLinkHubs/deploy.bicep @@ -83,3 +83,6 @@ output name string = privateLinkHub.name @description('The resource group of the deployed Synapse Private Link Hub.') output resourceGroupName string = resourceGroup().name + +@description('The location the resource was deployed into.') +output location string = privateLinkHub.location diff --git a/arm/Microsoft.Synapse/privateLinkHubs/readme.md b/arm/Microsoft.Synapse/privateLinkHubs/readme.md index e8ed6901d8..ea604b9cd2 100644 --- a/arm/Microsoft.Synapse/privateLinkHubs/readme.md +++ b/arm/Microsoft.Synapse/privateLinkHubs/readme.md @@ -119,6 +119,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the deployed Synapse Private Link Hub. | | `resourceGroupName` | string | The resource group of the deployed Synapse Private Link Hub. | | `resourceId` | string | The resource ID of the deployed Synapse Private Link Hub. | diff --git a/arm/Microsoft.VirtualMachineImages/imageTemplates/deploy.bicep b/arm/Microsoft.VirtualMachineImages/imageTemplates/deploy.bicep index 974478571c..8f34af2278 100644 --- a/arm/Microsoft.VirtualMachineImages/imageTemplates/deploy.bicep +++ b/arm/Microsoft.VirtualMachineImages/imageTemplates/deploy.bicep @@ -186,3 +186,6 @@ output name string = imageTemplate.name @description('The command to run in order to trigger the image build') output runThisCommand string = 'Invoke-AzResourceAction -ResourceName ${imageTemplate.name} -ResourceGroupName ${resourceGroup().name} -ResourceType Microsoft.VirtualMachineImages/imageTemplates -Action Run -Force' + +@description('The location the resource was deployed into.') +output location string = imageTemplate.location diff --git a/arm/Microsoft.VirtualMachineImages/imageTemplates/readme.md b/arm/Microsoft.VirtualMachineImages/imageTemplates/readme.md index 5364aef83b..ade40bb4d6 100644 --- a/arm/Microsoft.VirtualMachineImages/imageTemplates/readme.md +++ b/arm/Microsoft.VirtualMachineImages/imageTemplates/readme.md @@ -131,6 +131,7 @@ Create a role assignment for the given resource. If you want to assign a service | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the image template | | `resourceGroupName` | string | The resource group the image template was deployed into | | `resourceId` | string | The resource ID of the image template | diff --git a/arm/Microsoft.Web/connections/deploy.bicep b/arm/Microsoft.Web/connections/deploy.bicep index 879ac65608..454ac6c07d 100644 --- a/arm/Microsoft.Web/connections/deploy.bicep +++ b/arm/Microsoft.Web/connections/deploy.bicep @@ -110,3 +110,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the connection') output name string = connection.name + +@description('The location the resource was deployed into.') +output location string = connection.location diff --git a/arm/Microsoft.Web/connections/readme.md b/arm/Microsoft.Web/connections/readme.md index d31f760f00..bfc0a8a3b8 100644 --- a/arm/Microsoft.Web/connections/readme.md +++ b/arm/Microsoft.Web/connections/readme.md @@ -141,6 +141,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the connection | | `resourceGroupName` | string | The resource group the connection was deployed into | | `resourceId` | string | The resource ID of the connection | diff --git a/arm/Microsoft.Web/hostingEnvironments/deploy.bicep b/arm/Microsoft.Web/hostingEnvironments/deploy.bicep index b9f90d86bf..4f662a43a3 100644 --- a/arm/Microsoft.Web/hostingEnvironments/deploy.bicep +++ b/arm/Microsoft.Web/hostingEnvironments/deploy.bicep @@ -207,3 +207,6 @@ output resourceGroupName string = resourceGroup().name @description('The name of the app service environment') output name string = appServiceEnvironment.name + +@description('The location the resource was deployed into.') +output location string = appServiceEnvironment.location diff --git a/arm/Microsoft.Web/hostingEnvironments/readme.md b/arm/Microsoft.Web/hostingEnvironments/readme.md index bfff0dc05b..c25756a63f 100644 --- a/arm/Microsoft.Web/hostingEnvironments/readme.md +++ b/arm/Microsoft.Web/hostingEnvironments/readme.md @@ -152,6 +152,7 @@ workerPools can have two properties workerSize and workerCount: | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the app service environment | | `resourceGroupName` | string | The resource group the app service environment was deployed into | | `resourceId` | string | The resource ID of the app service environment | diff --git a/arm/Microsoft.Web/serverfarms/deploy.bicep b/arm/Microsoft.Web/serverfarms/deploy.bicep index d02b145448..d613b8e528 100644 --- a/arm/Microsoft.Web/serverfarms/deploy.bicep +++ b/arm/Microsoft.Web/serverfarms/deploy.bicep @@ -180,3 +180,6 @@ output name string = appServicePlan.name @description('The resource ID of the app service plan') output resourceId string = appServicePlan.id + +@description('The location the resource was deployed into.') +output location string = appServicePlan.location diff --git a/arm/Microsoft.Web/serverfarms/readme.md b/arm/Microsoft.Web/serverfarms/readme.md index 63409b186c..4dd0465d44 100644 --- a/arm/Microsoft.Web/serverfarms/readme.md +++ b/arm/Microsoft.Web/serverfarms/readme.md @@ -110,6 +110,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the app service plan | | `resourceGroupName` | string | The resource group the app service plan was deployed into | | `resourceId` | string | The resource ID of the app service plan | diff --git a/arm/Microsoft.Web/sites/deploy.bicep b/arm/Microsoft.Web/sites/deploy.bicep index 27480834f9..1242c98cdf 100644 --- a/arm/Microsoft.Web/sites/deploy.bicep +++ b/arm/Microsoft.Web/sites/deploy.bicep @@ -277,3 +277,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(app.identity, 'principalId') ? app.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = app.location diff --git a/arm/Microsoft.Web/sites/readme.md b/arm/Microsoft.Web/sites/readme.md index b0125b2ae1..172c623168 100644 --- a/arm/Microsoft.Web/sites/readme.md +++ b/arm/Microsoft.Web/sites/readme.md @@ -201,6 +201,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the site. | | `resourceGroupName` | string | The resource group the site was deployed into. | | `resourceId` | string | The resource ID of the site. | diff --git a/arm/Microsoft.Web/staticSites/deploy.bicep b/arm/Microsoft.Web/staticSites/deploy.bicep index 731c02afd0..74690f77b5 100644 --- a/arm/Microsoft.Web/staticSites/deploy.bicep +++ b/arm/Microsoft.Web/staticSites/deploy.bicep @@ -157,3 +157,6 @@ output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') output systemAssignedPrincipalId string = systemAssignedIdentity && contains(staticSite.identity, 'principalId') ? staticSite.identity.principalId : '' + +@description('The location the resource was deployed into.') +output location string = staticSite.location diff --git a/arm/Microsoft.Web/staticSites/readme.md b/arm/Microsoft.Web/staticSites/readme.md index ebf9723f3f..2f000a1ca3 100644 --- a/arm/Microsoft.Web/staticSites/readme.md +++ b/arm/Microsoft.Web/staticSites/readme.md @@ -178,6 +178,7 @@ You can specify multiple user assigned identities to a resource by providing add | Output Name | Type | Description | | :-- | :-- | :-- | +| `location` | string | The location the resource was deployed into. | | `name` | string | The name of the static site. | | `resourceGroupName` | string | The resource group the static site was deployed into. | | `resourceId` | string | The resource ID of the static site. | diff --git a/constructs/Microsoft.Authorization/roleAssignments-multiRolesMultiPrincipals/deploy.bicep b/constructs/Microsoft.Authorization/roleAssignments-multiRolesMultiPrincipals/deploy.bicep index 1dd8b48aab..f771236608 100644 --- a/constructs/Microsoft.Authorization/roleAssignments-multiRolesMultiPrincipals/deploy.bicep +++ b/constructs/Microsoft.Authorization/roleAssignments-multiRolesMultiPrincipals/deploy.bicep @@ -63,5 +63,6 @@ module nested_rbac_rg '.bicep/nested_rbac.bicep' = [for (roleAssignment, index) @description('The scope of the deployed role assignments') output roleAssignmentScope string = !empty(managementGroupId) ? nested_rbac_mg[0].outputs.roleAssignmentScope : (!empty(resourceGroupName) ? nested_rbac_rg[0].outputs.roleAssignmentScope : nested_rbac_sub[0].outputs.roleAssignmentScope) + @description('The names of the deployed role assignments') output roleAssignments array = roleAssignments From 16923369d99485f9e09a37a03424de12be53c27b Mon Sep 17 00:00:00 2001 From: MrMCake Date: Sat, 7 May 2022 21:53:04 +0200 Subject: [PATCH 2/7] small update --- arm/.global/global.module.tests.ps1 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arm/.global/global.module.tests.ps1 b/arm/.global/global.module.tests.ps1 index 03b11009d5..a755ba29b7 100644 --- a/arm/.global/global.module.tests.ps1 +++ b/arm/.global/global.module.tests.ps1 @@ -125,7 +125,7 @@ Describe 'Readme tests' -Tag Readme { if (Test-Path (Join-Path $moduleFolderPath 'deploy.bicep')) { $templateFilePath = Join-Path $moduleFolderPath 'deploy.bicep' $templateContent = az bicep build --file $templateFilePath --stdout | ConvertFrom-Json -AsHashtable - } elseif (Test-Path (Join-Path $moduleFolderPath 'deploy.json')) { + } elseIf (Test-Path (Join-Path $moduleFolderPath 'deploy.json')) { $templateFilePath = Join-Path $moduleFolderPath 'deploy.json' $templateContent = Get-Content $templateFilePath -Raw | ConvertFrom-Json -AsHashtable } else { @@ -441,7 +441,7 @@ Describe 'Deployment template tests' -Tag Template { if (Test-Path (Join-Path $moduleFolderPath 'deploy.bicep')) { $templateFilePath = Join-Path $moduleFolderPath 'deploy.bicep' $templateContent = az bicep build --file $templateFilePath --stdout | ConvertFrom-Json -AsHashtable - } elseif (Test-Path (Join-Path $moduleFolderPath 'deploy.json')) { + } elseIf (Test-Path (Join-Path $moduleFolderPath 'deploy.json')) { $templateFilePath = Join-Path $moduleFolderPath 'deploy.json' $templateContent = Get-Content $templateFilePath -Raw | ConvertFrom-Json -AsHashtable } else { @@ -507,11 +507,11 @@ Describe 'Deployment template tests' -Tag Template { $SchemaArray = @() if ($Schemaverion -eq $RGdeployment) { $SchemaOutput = $true - } elseif ($Schemaverion -eq $Subscriptiondeployment) { + } elseIf ($Schemaverion -eq $Subscriptiondeployment) { $SchemaOutput = $true - } elseif ($Schemaverion -eq $MGdeployment) { + } elseIf ($Schemaverion -eq $MGdeployment) { $SchemaOutput = $true - } elseif ($Schemaverion -eq $Tenantdeployment) { + } elseIf ($Schemaverion -eq $Tenantdeployment) { $SchemaOutput = $true } else { $SchemaOutput = $false @@ -540,10 +540,10 @@ Describe 'Deployment template tests' -Tag Template { foreach ($API in $ApiVersion) { if ($API.Substring(0, 2) -eq '20') { $ApiVersionOutput = $true - } elseif ($API.substring(1, 10) -eq 'parameters') { + } elseIf ($API.substring(1, 10) -eq 'parameters') { # An API version should not be referenced as a parameter $ApiVersionOutput = $false - } elseif ($API.substring(1, 10) -eq 'variables') { + } elseIf ($API.substring(1, 10) -eq 'variables') { # An API version should not be referenced as a variable $ApiVersionOutput = $false } else { @@ -689,9 +689,9 @@ Describe 'Deployment template tests' -Tag Template { foreach ($Locmand in $Locmandoutput) { if ($Locmand.Keys -contains 'Location' -and $Locmand.Location -eq "[parameters('Location')]") { $LocationParamFlag += $true - } elseif ($Locmand.Keys -notcontains 'Location') { + } elseIf ($Locmand.Keys -notcontains 'Location') { $LocationParamFlag += $true - } elseif ($Locmand.Keys -notcontains 'resourceGroup') { + } elseIf ($Locmand.Keys -notcontains 'resourceGroup') { $LocationParamFlag += $true } else { $LocationParamFlag += $false @@ -699,7 +699,7 @@ Describe 'Deployment template tests' -Tag Template { foreach ($Locm in $Locmand.resources) { if ($Locm.Keys -contains 'Location' -and $Locm.Location -eq "[parameters('Location')]") { $LocationParamFlag += $true - } elseif ($Locm.Keys -notcontains 'Location') { + } elseIf ($Locm.Keys -notcontains 'Location') { $LocationParamFlag += $true } else { $LocationParamFlag += $false @@ -727,7 +727,7 @@ Describe 'Deployment template tests' -Tag Template { } } $i | Should -Not -BeLessThan 3 - } ElseIf ((($schemaverion.Split('/')[5]).Split('.')[0]) -eq (($Subscriptiondeployment.Split('/')[5]).Split('.')[0])) { + } elseIf ((($schemaverion.Split('/')[5]).Split('.')[0]) -eq (($Subscriptiondeployment.Split('/')[5]).Split('.')[0])) { # Subscription Level deployment $Stdoutput | Should -Not -BeNullOrEmpty } @@ -844,7 +844,7 @@ Describe "API version tests [All apiVersions in the template should be 'recent'] if (Test-Path (Join-Path $moduleFolderPath 'deploy.bicep')) { $templateFilePath = Join-Path $moduleFolderPath 'deploy.bicep' $templateContent = az bicep build --file $templateFilePath --stdout | ConvertFrom-Json -AsHashtable - } elseif (Test-Path (Join-Path $moduleFolderPath 'deploy.json')) { + } elseIf (Test-Path (Join-Path $moduleFolderPath 'deploy.json')) { $templateFilePath = Join-Path $moduleFolderPath 'deploy.json' $templateContent = Get-Content $templateFilePath -Raw | ConvertFrom-Json -AsHashtable } else { From 294585cd3b559819dc8046c897e0f757cdfff0e3 Mon Sep 17 00:00:00 2001 From: MrMCake Date: Sat, 7 May 2022 22:33:50 +0200 Subject: [PATCH 3/7] Simplified test, reduced verbosity, started draft for outputs function, cleanup tests --- arm/.global/global.module.tests.ps1 | 70 +++++++++---------- arm/.global/shared/helper.psm1 | 42 ++--------- .../Test-TemplateDeployment.ps1 | 2 +- .../sharedScripts/Get-NestedResourceList.ps1 | 41 +++++++++++ .../sharedScripts/Get-ScopeOfTemplateFile.ps1 | 2 +- utilities/tools/Set-ModuleReadMe.ps1 | 47 +------------ 6 files changed, 83 insertions(+), 121 deletions(-) create mode 100644 utilities/pipelines/sharedScripts/Get-NestedResourceList.ps1 diff --git a/arm/.global/global.module.tests.ps1 b/arm/.global/global.module.tests.ps1 index a755ba29b7..922438290b 100644 --- a/arm/.global/global.module.tests.ps1 +++ b/arm/.global/global.module.tests.ps1 @@ -18,15 +18,13 @@ $script:Subscriptiondeployment = 'https://schema.management.azure.com/schemas/20 $script:MGdeployment = 'https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#' $script:Tenantdeployment = 'https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#' $script:moduleFolderPaths = $moduleFolderPaths -$script:moduleFolderPathsFiltered = $moduleFolderPaths | Where-Object { - (Split-Path $_ -Leaf) -notin @( 'AzureNetappFiles', 'TrafficManager', 'PrivateDnsZones', 'ManagementGroups') } $script:enforcedTokenList = $enforcedTokenList # For runtime purposes, we cache the compiled template in a hashtable that uses a formatted relative module path as a key $script:convertedTemplates = @{} # Import any helper function used in this test script -Import-Module (Join-Path $PSScriptRoot 'shared\helper.psm1') +Import-Module (Join-Path $PSScriptRoot 'shared\helper.psm1') -Force Describe 'File/folder tests' -Tag Modules { @@ -205,7 +203,7 @@ Describe 'Readme tests' -Tag Readme { } # Get template data - $templateResources = (Get-NestedResourceList -TemplateContent $templateContent | Where-Object { + $templateResources = (Get-NestedResourceList -TemplateFileContent $templateContent | Where-Object { $_.type -notin @('Microsoft.Resources/deployments') -and $_ }).type | Select-Object -Unique # Compare @@ -242,7 +240,7 @@ Describe 'Readme tests' -Tag Readme { } # Get template data - $templateResources = (Get-NestedResourceList -TemplateContent $templateContent | Where-Object { + $templateResources = (Get-NestedResourceList -TemplateFileContent $templateContent | Where-Object { $_.type -notin @('Microsoft.Resources/deployments') -and $_ }).type | Select-Object -Unique # Compare @@ -432,7 +430,6 @@ Describe 'Deployment template tests' -Tag Template { Context 'Deployment template tests' { $deploymentFolderTestCases = [System.Collections.ArrayList] @() - $deploymentFolderTestCasesException = [System.Collections.ArrayList] @() foreach ($moduleFolderPath in $moduleFolderPaths) { # For runtime purposes, we cache the compiled template in a hashtable that uses a formatted relative module path as a key @@ -477,15 +474,10 @@ Describe 'Deployment template tests' -Tag Template { $deploymentFolderTestCases += @{ moduleFolderName = $moduleFolderPath.Replace('\', '/').Split('/arm/')[1] templateContent = $templateContent + templateFilePath = $templateFilePath parameterFileTestCases = $parameterFileTestCases } } - foreach ($moduleFolderPath in $moduleFolderPathsFiltered) { - $deploymentFolderTestCasesException += @{ - moduleFolderNameException = $moduleFolderPath.Replace('\', '/').Split('/arm/')[1] - templateContent = $templateContent - } - } It '[] the template file should not be empty' -TestCases $deploymentFolderTestCases { param( @@ -679,34 +671,40 @@ Describe 'Deployment template tests' -Tag Template { } } - It "[] All resources that have a Location property should refer to the Location parameter 'parameters('Location')'" -TestCases $deploymentFolderTestCasesException { + + It '[] Location output should be returned for resources that use it' -TestCases $deploymentFolderTestCases { param( - $moduleFolderNameException, - $templateContent + $moduleFolderName, + $templateContent, + $templateFilePath ) - $LocationParamFlag = @() - $Locmandoutput = $templateContent.resources - foreach ($Locmand in $Locmandoutput) { - if ($Locmand.Keys -contains 'Location' -and $Locmand.Location -eq "[parameters('Location')]") { - $LocationParamFlag += $true - } elseIf ($Locmand.Keys -notcontains 'Location') { - $LocationParamFlag += $true - } elseIf ($Locmand.Keys -notcontains 'resourceGroup') { - $LocationParamFlag += $true - } else { - $LocationParamFlag += $false + + $outputs = $templateContent.Outputs + + $deploymentScope = Get-ScopeOfTemplateFile -TemplateFilePath $TemplateFilePath -Verbose + + switch ($deploymentScope) { + 'resourceGroup' { + $outputs.Keys | Should -Contain 'location' + break } - foreach ($Locm in $Locmand.resources) { - if ($Locm.Keys -contains 'Location' -and $Locm.Location -eq "[parameters('Location')]") { - $LocationParamFlag += $true - } elseIf ($Locm.Keys -notcontains 'Location') { - $LocationParamFlag += $true - } else { - $LocationParamFlag += $false - } + 'subscription' { + + break + } + 'managementGroup' { + + break + } + 'tenant' { + + break + } + default { + throw "[$deploymentScope] is a non-supported template scope" } } - $LocationParamFlag | Should -Not -Contain $false + } It '[] Standard outputs should be provided (e.g. resourceName, resourceId, resouceGroupName)' -TestCases $deploymentFolderTestCases { @@ -855,7 +853,7 @@ Describe "API version tests [All apiVersions in the template should be 'recent'] $templateContent = $convertedTemplates[$moduleFolderPathKey] } - $nestedResources = Get-NestedResourceList -TemplateContent $templateContent | Where-Object { + $nestedResources = Get-NestedResourceList -TemplateFileContent $templateContent | Where-Object { $_.type -notin @('Microsoft.Resources/deployments') -and $_ } | Select-Object 'Type', 'ApiVersion' -Unique | Sort-Object Type diff --git a/arm/.global/shared/helper.psm1 b/arm/.global/shared/helper.psm1 index d793e9afa9..a1a368d6af 100644 --- a/arm/.global/shared/helper.psm1 +++ b/arm/.global/shared/helper.psm1 @@ -1,39 +1,5 @@ -<# -.SYNOPSIS -Get a list of all resources (provider + service) in the given template content +# Load used functions +$repoRootPath = (Get-Item $PSScriptRoot).Parent.Parent.Parent.FullName -.DESCRIPTION -Get a list of all resources (provider + service) in the given template content. Crawls through any children & nested deployment templates. - -.PARAMETER TemplateFileContent -Mandatory. The template file content object to crawl data from - -.EXAMPLE -Get-NestedResourceList -TemplateFileContent @{ resource = @{}; ... } - -Returns a list of all resources in the given template object -#> -function Get-NestedResourceList { - - [CmdletBinding()] - param( - [Parameter(Mandatory)] - [hashtable] $TemplateContent - ) - - $res = @() - $currLevelResources = @() - if ($TemplateContent.resources) { - $currLevelResources += $TemplateContent.resources - } - foreach ($resource in $currLevelResources) { - $res += $resource - - if ($resource.type -eq 'Microsoft.Resources/deployments') { - $res += Get-NestedResourceList -TemplateContent $resource.properties.template - } else { - $res += Get-NestedResourceList -TemplateContent $resource - } - } - return $res -} +. (Join-Path $repoRootPath 'utilities' 'pipelines' 'sharedScripts' 'Get-NestedResourceList.ps1') +. (Join-Path $repoRootPath 'utilities' 'pipelines' 'sharedScripts' 'Get-ScopeOfTemplateFile.ps1') diff --git a/utilities/pipelines/resourceDeployment/Test-TemplateDeployment.ps1 b/utilities/pipelines/resourceDeployment/Test-TemplateDeployment.ps1 index 2094654d06..7ac7afeb97 100644 --- a/utilities/pipelines/resourceDeployment/Test-TemplateDeployment.ps1 +++ b/utilities/pipelines/resourceDeployment/Test-TemplateDeployment.ps1 @@ -94,7 +94,7 @@ function Test-TemplateDeployment { $DeploymentInputs += $additionalParameters } - $deploymentScope = Get-ScopeOfTemplateFile -TemplateFilePath $templateFilePath + $deploymentScope = Get-ScopeOfTemplateFile -TemplateFilePath $templateFilePath -Verbose if ($deploymentScope -ne 'resourceGroup') { $deploymentNamePrefix = Split-Path -Path (Split-Path $templateFilePath -Parent) -LeafBase diff --git a/utilities/pipelines/sharedScripts/Get-NestedResourceList.ps1 b/utilities/pipelines/sharedScripts/Get-NestedResourceList.ps1 new file mode 100644 index 0000000000..e02ebc87bc --- /dev/null +++ b/utilities/pipelines/sharedScripts/Get-NestedResourceList.ps1 @@ -0,0 +1,41 @@ +#region Helper functions +<# +.SYNOPSIS +Get a list of all resources (provider + service) in the given template content + +.DESCRIPTION +Get a list of all resources (provider + service) in the given template content. Crawls through any children & nested deployment templates. + +.PARAMETER TemplateFileContent +Mandatory. The template file content object to crawl data from + +.EXAMPLE +Get-NestedResourceList -TemplateFileContent @{ resource = @{}; ... } + +Returns a list of all resources in the given template object +#> +function Get-NestedResourceList { + + [CmdletBinding()] + param( + [Parameter(Mandatory)] + [Alias('Path')] + [hashtable] $TemplateFileContent + ) + + $res = @() + $currLevelResources = @() + if ($TemplateFileContent.resources) { + $currLevelResources += $TemplateFileContent.resources + } + foreach ($resource in $currLevelResources) { + $res += $resource + + if ($resource.type -eq 'Microsoft.Resources/deployments') { + $res += Get-NestedResourceList -TemplateFileContent $resource.properties.template + } else { + $res += Get-NestedResourceList -TemplateFileContent $resource + } + } + return $res +} diff --git a/utilities/pipelines/sharedScripts/Get-ScopeOfTemplateFile.ps1 b/utilities/pipelines/sharedScripts/Get-ScopeOfTemplateFile.ps1 index 9c4abe57ce..f6417bbf29 100644 --- a/utilities/pipelines/sharedScripts/Get-ScopeOfTemplateFile.ps1 +++ b/utilities/pipelines/sharedScripts/Get-ScopeOfTemplateFile.ps1 @@ -47,7 +47,7 @@ function Get-ScopeOfTemplateFile { Default { throw "[$armSchema] is a non-supported ARM template schema" } } } - Write-Verbose "Determined deployment scope [$deploymentScope]" -Verbose + Write-Verbose "Determined deployment scope [$deploymentScope]" return $deploymentScope } diff --git a/utilities/tools/Set-ModuleReadMe.ps1 b/utilities/tools/Set-ModuleReadMe.ps1 index 3c1e46a9b9..ec38977e5a 100644 --- a/utilities/tools/Set-ModuleReadMe.ps1 +++ b/utilities/tools/Set-ModuleReadMe.ps1 @@ -1,47 +1,5 @@ #requires -version 6.0 -#region Helper functions -<# -.SYNOPSIS -Get a list of all resources (provider + service) in the given template content - -.DESCRIPTION -Get a list of all resources (provider + service) in the given template content. Crawls through any children & nested deployment templates. - -.PARAMETER TemplateFileContent -Mandatory. The template file content object to crawl data from - -.EXAMPLE -Get-NestedResourceList -TemplateFileContent @{ resource = @{}; ... } - -Returns a list of all resources in the given template object -#> -function Get-NestedResourceList { - - [CmdletBinding()] - param( - [Parameter(Mandatory)] - [Alias('Path')] - [hashtable] $TemplateFileContent - ) - - $res = @() - $currLevelResources = @() - if ($TemplateFileContent.resources) { - $currLevelResources += $TemplateFileContent.resources - } - foreach ($resource in $currLevelResources) { - $res += $resource - - if ($resource.type -eq 'Microsoft.Resources/deployments') { - $res += Get-NestedResourceList -TemplateFileContent $resource.properties.template - } else { - $res += Get-NestedResourceList -TemplateFileContent $resource - } - } - return $res -} - <# .SYNOPSIS Update the 'Resource Types' section of the given readme file @@ -485,6 +443,7 @@ function Set-ModuleReadMe { # Load external functions . (Join-Path $PSScriptRoot 'helper/Merge-FileWithNewContent.ps1') + . (Join-Path (Split-Path $PSScriptRoot -Parent) 'pipelines' 'sharedScripts' 'Get-NestedResourceList.ps1') # Check template & make full path $TemplateFilePath = Resolve-Path -Path $TemplateFilePath -ErrorAction Stop @@ -523,9 +482,7 @@ function Set-ModuleReadMe { '' '// TODO: Fill in Parameter usage' '', - '## Outputs', - '', - '## Template references' + '## Outputs' ) # New-Item $path $ReadMeFilePath -ItemType 'File' -Force -Value $initialContent $readMeFileContent = $initialContent From 584075c120f8e3126258939121473b8cda0a21ca Mon Sep 17 00:00:00 2001 From: MrMCake Date: Sat, 7 May 2022 23:13:40 +0200 Subject: [PATCH 4/7] Split output tests --- arm/.global/global.module.tests.ps1 | 71 ++++++++++++++--------------- 1 file changed, 33 insertions(+), 38 deletions(-) diff --git a/arm/.global/global.module.tests.ps1 b/arm/.global/global.module.tests.ps1 index 922438290b..eb36f68521 100644 --- a/arm/.global/global.module.tests.ps1 +++ b/arm/.global/global.module.tests.ps1 @@ -671,7 +671,6 @@ Describe 'Deployment template tests' -Tag Template { } } - It '[] Location output should be returned for resources that use it' -TestCases $deploymentFolderTestCases { param( $moduleFolderName, @@ -679,57 +678,53 @@ Describe 'Deployment template tests' -Tag Template { $templateFilePath ) - $outputs = $templateContent.Outputs + $outputs = $templateContent.outputs - $deploymentScope = Get-ScopeOfTemplateFile -TemplateFilePath $TemplateFilePath -Verbose + $primaryResourceType = (Split-Path $TemplateFilePath -Parent).Replace('\', '/').split('/arm/')[1] + $primaryResourceTypeResource = $templateContent.resources | Where-Object { $_.type -eq $primaryResourceType } - switch ($deploymentScope) { - 'resourceGroup' { - $outputs.Keys | Should -Contain 'location' - break - } - 'subscription' { + if ($primaryResourceTypeResource.keys -contains 'location') { + # If the main resource has a location property, an output should be returned too + $outputs.keys | Should -Contain 'location' - break - } - 'managementGroup' { + # It should further reference the location property of the primary resource and not e.g. the location input parameter + $outputs.location.value | Should -Match $primaryResourceType + } + } - break - } - 'tenant' { + It '[] Resource Group output should exist for resources that are deployed into a resource group scope' -TestCases $deploymentFolderTestCases { + param( + $moduleFolderName, + $templateContent, + $templateFilePath + ) - break - } - default { - throw "[$deploymentScope] is a non-supported template scope" - } - } + $outputs = $templateContent.outputs.Keys + $deploymentScope = Get-ScopeOfTemplateFile -TemplateFilePath $templateFilePath + if ($deploymentScope -eq 'resourceGroup') { + $outputs | Should -Contain 'resourceGroupName' + } } - It '[] Standard outputs should be provided (e.g. resourceName, resourceId, resouceGroupName)' -TestCases $deploymentFolderTestCases { + It '[] Resource name output should exist' -TestCases $deploymentFolderTestCases { param( $moduleFolderName, $templateContent ) - $Stdoutput = $templateContent.outputs.Keys - $i = 0 - $Schemaverion = $templateContent.'$schema' - if ((($Schemaverion.Split('/')[5]).Split('.')[0]) -eq (($RGdeployment.Split('/')[5]).Split('.')[0])) { - # Resource Group Level deployment - foreach ($Stdo in $Stdoutput) { - if ($Stdo -like '*Name*' -or $Stdo -like '*ResourceId*' -or $Stdo -like '*ResourceGroup*') { - $true | Should -Be $true - $i = $i + 1 - } - } - $i | Should -Not -BeLessThan 3 - } elseIf ((($schemaverion.Split('/')[5]).Split('.')[0]) -eq (($Subscriptiondeployment.Split('/')[5]).Split('.')[0])) { - # Subscription Level deployment - $Stdoutput | Should -Not -BeNullOrEmpty - } + $outputs = $templateContent.outputs.Keys + $outputs | Should -Contain 'name' + } + + It '[] Resource ID output should exist' -TestCases $deploymentFolderTestCases { + param( + $moduleFolderName, + $templateContent + ) + $outputs = $templateContent.outputs.Keys + $outputs | Should -Contain 'resourceId' } It "[] parameters' description shoud start with a one word category followed by a dot, a space and the actual description text." -TestCases $deploymentFolderTestCases { From 41e92f341235d603d714cebe0928a0a334d4a391 Mon Sep 17 00:00:00 2001 From: MrMCake Date: Sun, 8 May 2022 00:34:34 +0200 Subject: [PATCH 5/7] Adjusted chaching --- arm/.global/global.module.tests.ps1 | 34 ++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/arm/.global/global.module.tests.ps1 b/arm/.global/global.module.tests.ps1 index eb36f68521..8b91a19ca9 100644 --- a/arm/.global/global.module.tests.ps1 +++ b/arm/.global/global.module.tests.ps1 @@ -129,9 +129,13 @@ Describe 'Readme tests' -Tag Readme { } else { throw "No template file found in folder [$moduleFolderPath]" } - $convertedTemplates[$moduleFolderPathKey] = $templateContent + $convertedTemplates[$moduleFolderPathKey] = @{ + templateFilePath = $templateFilePath + templateContent = $templateContent + } } else { - $templateContent = $convertedTemplates[$moduleFolderPathKey] + $templateContent = $convertedTemplates[$moduleFolderPathKey].templateContent + $templateFilePath = $convertedTemplates[$moduleFolderPathKey].templateFilePath } $readmeFolderTestCases += @{ @@ -444,9 +448,13 @@ Describe 'Deployment template tests' -Tag Template { } else { throw "No template file found in folder [$moduleFolderPath]" } - $convertedTemplates[$moduleFolderPathKey] = $templateContent + $convertedTemplates[$moduleFolderPathKey] = @{ + templateFilePath = $templateFilePath + templateContent = $templateContent + } } else { - $templateContent = $convertedTemplates[$moduleFolderPathKey] + $templateContent = $convertedTemplates[$moduleFolderPathKey].templateContent + $templateFilePath = $convertedTemplates[$moduleFolderPathKey].templateFilePath } # Parameter file test cases @@ -672,10 +680,11 @@ Describe 'Deployment template tests' -Tag Template { } It '[] Location output should be returned for resources that use it' -TestCases $deploymentFolderTestCases { + param( - $moduleFolderName, + [string] $moduleFolderName, $templateContent, - $templateFilePath + [string] $templateFilePath ) $outputs = $templateContent.outputs @@ -693,10 +702,11 @@ Describe 'Deployment template tests' -Tag Template { } It '[] Resource Group output should exist for resources that are deployed into a resource group scope' -TestCases $deploymentFolderTestCases { + param( - $moduleFolderName, + [string] $moduleFolderName, $templateContent, - $templateFilePath + [string] $templateFilePath ) $outputs = $templateContent.outputs.Keys @@ -843,9 +853,13 @@ Describe "API version tests [All apiVersions in the template should be 'recent'] } else { throw "No template file found in folder [$moduleFolderPath]" } - $convertedTemplates[$moduleFolderPathKey] = $templateContent + $convertedTemplates[$moduleFolderPathKey] = @{ + templateFilePath = $templateFilePath + templateContent = $templateContent + } } else { - $templateContent = $convertedTemplates[$moduleFolderPathKey] + $templateContent = $convertedTemplates[$moduleFolderPathKey].templateContent + $templateFilePath = $convertedTemplates[$moduleFolderPathKey].templateFilePath } $nestedResources = Get-NestedResourceList -TemplateFileContent $templateContent | Where-Object { From 99fb7a51f561f7ace57e8bbaceec447efebe9dce Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Wed, 11 May 2022 20:48:05 +0200 Subject: [PATCH 6/7] Update arm/Microsoft.ContainerService/managedClusters/readme.md Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- arm/Microsoft.ContainerService/managedClusters/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm/Microsoft.ContainerService/managedClusters/readme.md b/arm/Microsoft.ContainerService/managedClusters/readme.md index 23c2589501..260a76b5a1 100644 --- a/arm/Microsoft.ContainerService/managedClusters/readme.md +++ b/arm/Microsoft.ContainerService/managedClusters/readme.md @@ -16,7 +16,7 @@ This module deploys Azure Kubernetes Cluster (AKS). | `Microsoft.Authorization/roleAssignments` | [2020-10-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-10-01-preview/roleAssignments) | | `Microsoft.ContainerService/managedClusters` | [2022-02-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ContainerService/2022-02-01/managedClusters) | | `Microsoft.ContainerService/managedClusters/agentPools` | [2021-08-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ContainerService/2021-08-01/managedClusters/agentPools) | -| `Microsoft.Insights/diagnosticSettings` | [2021-05-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Insights/diagnosticSettings) | +| `Microsoft.Insights/diagnosticSettings` | [2021-05-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Insights/2021-05-01-preview/diagnosticSettings) | ## Parameters From c307df465d796714d28591153ea8304107643760 Mon Sep 17 00:00:00 2001 From: MrMCake Date: Wed, 11 May 2022 20:54:15 +0200 Subject: [PATCH 7/7] Updated readme --- docs/wiki/The CI environment - Static validation.md | 2 +- docs/wiki/The library - Module design.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/wiki/The CI environment - Static validation.md b/docs/wiki/The CI environment - Static validation.md index 3b0f2e8c48..f5890346ed 100644 --- a/docs/wiki/The CI environment - Static validation.md +++ b/docs/wiki/The CI environment - Static validation.md @@ -21,7 +21,7 @@ The following activities are run executing the `arm/.global/global.module.tests. - **Deployment template tests** check the template's structure and elements for errors as well as consistency matters. e.g. - template file (or the built bicep template) converts from JSON and has all expected properties - variable names are camelCase - - the minimum set of outputs is returned + - the minimum set of outputs is returned (see [module design](./The%20library%20-%20Module%20design#Outputs)) - **Module (readme.md) documentation** contains all required sections. e.g.: - is not empty - contains all the mandatory sections diff --git a/docs/wiki/The library - Module design.md b/docs/wiki/The library - Module design.md index 1892d8aba8..caf9b2a67a 100644 --- a/docs/wiki/The library - Module design.md +++ b/docs/wiki/The library - Module design.md @@ -505,8 +505,9 @@ While exceptions might be needed, the following guidance should be followed as m - At a minimum, reference the following: - `name` - `resourceId` - - `resourceGroupName` for resources deployed at resource group scope - - `systemAssignedPrincipalId` for all resources supporting a managed identity + - `resourceGroupName` for modules that are deployed at resource group scope + - `systemAssignedPrincipalId` for all modules that support a managed identities + - `location` for all modules where the primary resource has a location property - Add a `@description('...')` annotation with meaningful description to each output. ---