This template generates a subscription scoped ARM JSON template multipleSubscriptionDeployment.json that contains two Microsoft.Resources/deployments
resources.
The ARM JSON template multipleSubscriptionDeployment.json deploys successfully into AzureCloud
. In Azure Stack Hub, it returns a InvalidTemplate
error.
Clone this repo, then use the Azure CLI make a subscription scoped deployment with az deployment sub create
.
The first subscription ID will be defaulted from the contextual Azure CLI subscription. You'll be prompted for the second subscription ID:
az deployment sub create \
--location eastus \
--template-file multipleSubscriptionDeployment.json