AZ-104 · Question #706
AZ-104 Question #706: Real Exam Question with Answer & Explanation
The correct answer is A: New-AzSubscriptionDeployment. New-AzSubscriptionDeployment is the correct answer, as the New-AzResourceDeployment is used to deploy in an existing resource group. You can use New-AzSubscriptionDeployment(which is an alias for New-AzDeployment) to deploy resources at subscription level. "The New-AzResourceGrou
Question
You have an Azure subscription. You create the following Azure Resource Manager (ARM) template named Template.json. You need to deploy Template.json. Which PowerShell cmdlet should you run from Azure Cloud Shell?
Options
- ANew-AzSubscriptionDeployment
- BNew-AzManagementGroupDeployment
- CNew-AzResourceGroupDeployment
- DNew-AzTenantDeployment
Explanation
New-AzSubscriptionDeployment is the correct answer, as the New-AzResourceDeployment is used to deploy in an existing resource group. You can use New-AzSubscriptionDeployment(which is an alias for New-AzDeployment) to deploy resources at subscription level. "The New-AzResourceGroupDeployment cmdlet adds a deployment to an existing resource https://learn.microsoft.com/en-us/powershell/module/az.resources/new- azresourcegroupdeployment?view=azps-10.4.1 https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to- subscription?tabs=azure-powershell
Community Discussion
No community discussion yet for this question.