QuestionQ230

VerifiedDeploy and manage Azure compute resources

You have an Azure subscription.

You create the following Azure Resource Manager (ARM) template named Template.json.

Question Image

You need to deploy Template.json.

Which PowerShell cmdlet should you run from Azure Cloud Shell?

Explanation

A template that deploys Microsoft.Resources/resourceGroups must be deployed at subscription scope because resource groups are created within a subscription, not inside an existing resource group. Microsoft Learn's subscription-deployment guidance explicitly uses subscription-scope deployment for creating resource groups, and the corresponding PowerShell cmdlet for that scope is New-AzSubscriptionDeployment.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!