You have an ARM template that creates a resource group and deploys an Azure Storage account to it. Which PowerShell cmdlet should you run to deploy the template?
Choose an answer
Tap an option to check your answer.
Correct answer: New-AzDeployment.
Why this is the answer
The New-AzDeployment cmdlet is the correct choice for deploying ARM templates at the subscription scope or higher, which is necessary when creating a new resource group and deploying resources within it. While New-AzResourceGroupDeployment is used for deploying templates within an existing resource group, it cannot create the resource group itself. New-AzResource is for creating individual Azure resources, not for deploying entire ARM templates. New-AzTenantDeployment is used for deploying templates at the tenant scope, which is typically for managing Azure policies or role assignments across multiple subscriptions, not for standard resource group and resource deployments.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed