The Azure Landing Zones (Enterprise-Scale) architecture provides prescriptive guidance coupled with Azure best practices, and it follows design principles across the critical design areas for organizations to define their Azure architecture
Fixes an issue where the deployment of the UAMI Resource Group fails with the following error:
{"code":"InvalidTemplateDeployment","message":"The template deployment failed with error: 'Authorization failed for template resource 'rg-ama-prod-001' of type 'Microsoft.Resources/resourceGroups'. The client '-----' with object id '-----' does not have permission to perform action 'Microsoft.Resources/subscriptions/rg-ama-prod-001/write' at scope '/subscriptions//resourceGroups/rg-ama-prod-001'.'."}
When networking is not deployed the connectivitySubscriptionId remains empty and it is included as empty in the subscriptionIdsvariable.
This PR fixes/adds/changes/removes
Adds an if statement checking whether the paramater connectivitySubscriptionId is empty. Based on the outcome, it now either creates an array of managementSubscriptionId and identitySubscriptionId, or the previous 2 and connectivitySubscriptionId.
Breaking Changes
None
Testing Evidence
Deployment
Deploying with no networking now skips creating RG and UAMI for the connectivity subscription.
Overview/Summary
Fixes an issue where the deployment of the UAMI Resource Group fails with the following error:
{"code":"InvalidTemplateDeployment","message":"The template deployment failed with error: 'Authorization failed for template resource 'rg-ama-prod-001' of type 'Microsoft.Resources/resourceGroups'. The client '-----' with object id '-----' does not have permission to perform action 'Microsoft.Resources/subscriptions/rg-ama-prod-001/write' at scope '/subscriptions//resourceGroups/rg-ama-prod-001'.'."}
When networking is not deployed the
connectivitySubscriptionId
remains empty and it is included as empty in thesubscriptionIds
variable.This PR fixes/adds/changes/removes
connectivitySubscriptionId
is empty. Based on the outcome, it now either creates an array of managementSubscriptionId and identitySubscriptionId, or the previous 2 and connectivitySubscriptionId.Breaking Changes
None
Testing Evidence
Deployment
Deploying with no networking now skips creating RG and UAMI for the connectivity subscription.
Testing URLs
Azure Public
As part of this Pull Request I have
main
branch/docs/wiki/whats-new.md
)