exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 77 discussion

Actual exam question from Microsoft's AZ-104
Question #: 77
Topic #: 4
[All AZ-104 Questions]

You develop the following Azure Resource Manager (ARM) template to create a resource group and deploy an Azure Storage account to the resource group.

Which cmdlet should you run to deploy the template?

  • A. New-AzResource
  • B. New-AzResourceGroupDeployment
  • C. New-AzTenantDeployment
  • D. New-AzDeployment
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Tinkers69
Highly Voted 2 years, 5 months ago
Selected Answer: D
D is correct here. We are creating RG and storage acc. in this RG. By using New-AzResourceGroupDeployment command -> "Adds an Azure deployment to a resource group."
upvoted 49 times
QL112233
1 year, 1 month ago
The question is what command used for deploy the template listed there, which deploys a storage account, which means deploy resource to group instead of create a resource group. So B should be right
upvoted 2 times
...
Tarni
2 years, 5 months ago
Agree Answer should be D 1. The New-AzDeployment cmdlet adds a deployment at the current subscription scope. This includes the resources that the deployment requires. https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azdeployment?view=azps-8.3.0
upvoted 7 times
...
skydivex
2 years ago
agreed..... To add resources to a resource group, use the New-AzResourceGroupDeployment which creates a deployment at a resource group. The New-AzDeployment cmdlet creates a deployment at the current subscription scope, which deploys subscription level resources.
upvoted 2 times
...
...
Asymptote
Highly Voted 2 years, 4 months ago
Selected Answer: D
D New-AzResource - creates an Azure resource, such as a website, Azure SQL Database server, or Azure SQL Database, in a resource group. Reference: https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azresource New-AzResourceGroupDeployment - adds a deployment to an existing resource group. Reference: https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroupdeployment New-AzDeployment - The New-AzDeployment cmdlet adds a deployment at the current subscription scope. This includes the resources that the deployment requires. Reference: https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azdeployment Ner-AzTenanDeployment just exceeded the scope.
upvoted 24 times
...
58b2872
Most Recent 1 month, 1 week ago
Selected Answer: D
Deploying a RG -->New-AzDeployment Deploying a resource in a RG --> New-AzResourceGroupDeployment
upvoted 1 times
...
vrm1358
2 months, 4 weeks ago
Selected Answer: B
To add resources to a resource group, use the New-AzResourceGroupDeployment which creates a deployment at a resource group. The New-AzDeployment cmdlet creates a deployment at the current subscription scope, which deploys subscription level resources. https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azdeployment?view=azps-13.0.0
upvoted 1 times
vrm1358
1 month ago
sorry, the comments is right but the option is wrong. D is correct. because we are creating RG & Storage account, so we need to create it under subscription. we can not create RG under RG
upvoted 1 times
...
Josh219
2 months, 3 weeks ago
Wrong its D
upvoted 1 times
...
...
Josh219
3 months, 2 weeks ago
Selected Answer: D
This cmdlet is used to deploy a template at the subscription level, which can also be used for resource groups.
upvoted 1 times
...
Josh219
3 months, 2 weeks ago
D. New-AzDeployment This cmdlet is used to deploy a template at the subscription level, which can also be used for resource groups.
upvoted 1 times
...
Dankho
4 months, 3 weeks ago
Selected Answer: B
B because the other option D - New-AzDeployment: This cmdlet is used to deploy resources at the subscription level rather than within a specific resource group.
upvoted 1 times
...
[Removed]
5 months, 2 weeks ago
Selected Answer: D
it´s D
upvoted 1 times
...
117b84e
5 months, 3 weeks ago
chatGPT B. New-AzResourceGroupDeployment This cmdlet is used to deploy resources to a resource group using an ARM template. Here’s a quick breakdown of the options: New-AzResource: Creates a resource, but not necessarily using an ARM template. New-AzResourceGroupDeployment: Deploys an ARM template specifically to a resource group. New-AzTenantDeployment: Used to deploy resources at the tenant level. New-AzDeployment: Deploys resources at the subscription level, but not specifically to a resource group. So in this case, since the template involves deploying a storage account to a resource group, New-AzResourceGroupDeployment is the cmdlet you'd use.
upvoted 2 times
Josh219
3 months, 2 weeks ago
D. New-AzDeployment This cmdlet is used to deploy a template at the subscription level, which can also be used for resource groups.
upvoted 1 times
...
Sanaz90
4 months, 2 weeks ago
"New-AzDeployment: Deploys resources at the subscription level, but not specifically to a resource group." I guess that means creating resources on sub level and rg is kind of a resource and here in question says creating new rg and storage account so D is correct i guess
upvoted 1 times
...
...
Christina666
7 months, 2 weeks ago
Selected Answer: D
I thought was B, but read the references herehttps://learn.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroupdeployment?view=azps-12.1.0, it's clearly D as we are deploying RG as well
upvoted 3 times
...
bcv
7 months, 3 weeks ago
D. New-AzDeployment is correct. Option B (New-AZResourceGroup) would have been an option only if RG already existed. Here we are first creating RG so the command has to be applicable at the Subscription level which is Option D
upvoted 3 times
...
60ties
7 months, 3 weeks ago
Selected Answer: B
The deployment is TO a Resource Group.
upvoted 2 times
...
tashakori
11 months, 2 weeks ago
D is correct
upvoted 1 times
...
SDiwan
1 year ago
Selected Answer: D
Coreect answer is D. The arm template is creating a resource group. So the scope of deployment must be subscription level
upvoted 2 times
...
6Sam7
1 year, 1 month ago
The New-AzResourceGroupDeployment cmdlet adds a deployment to an existing resource group. This includes the resources that the deployment requires. An Azure resource is a user-managed Azure entity, such as a database server, database, website, virtual machine, or Storage account. Seems B is correct
upvoted 1 times
...
[Removed]
1 year, 2 months ago
Answer is B We are creating RG Use New-AzDeployment for deploying resources at the subscription level. Use New-AzResourceGroupDeployment for deploying resources within a specific resource group.
upvoted 1 times
...
mahesha9449295905
1 year, 2 months ago
The New-AzResourceGroupDeployment cmdlet adds a deployment to an existing resource group
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago