You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a subscription Microsoft.Resources/deployments under a ResourceGroup scoped template it generates the following error:
Template validation failed: The template resource 'subDeployment' at line '15' and column '9' is invalid. 'ResourceGroup' property must be specified if 'SubscriptionId' property is specified. Please see https://aka.ms/arm-template/#resources for usage details.arm-template (validation)
Thumbs up, this bug is also affecting me and I was about to open an issue for it. Nested subscription-scope deployments like this are perfectly valid, and commonly used, for things like role assignments.
When you have a subscription Microsoft.Resources/deployments under a ResourceGroup scoped template it generates the following error:
Template validation failed: The template resource 'subDeployment' at line '15' and column '9' is invalid. 'ResourceGroup' property must be specified if 'SubscriptionId' property is specified. Please see https://aka.ms/arm-template/#resources for usage details.arm-template (validation)
The text was updated successfully, but these errors were encountered: