exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 68 discussion

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

HOTSPOT -
You have an Azure subscription that contains the resources shown in the following table.

In Azure Cloud Shell, you need to create a virtual machine by using an Azure Resource Manager (ARM) template.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://docs.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroupdeployment?view=azps-6.6.0

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
ninjia
Highly Voted 3 years, 2 months ago
Box 1: New-AzResourceGroupDeployment. This cmdlet allows you to use a custom ARM template file to deploy resources to a resource group. For example: New-AzResourceGroup -Name $resourceGroupName -Location "$location" New-AzResourceGroupDeployment ` -ResourceGroupName $resourceGroupName ` -TemplateUri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.compute/vm-simple-windows/azuredeploy.json" ` -adminUsername $adminUsername ` -adminPassword $adminPassword ` -dnsLabelPrefix $dnsLabelPrefix Box 2: -ResourceGroupName RG1. It’s one of parameters of New-AzResourceGroupDeployment to specify to which resource group you want to deploy resources. You could use New-AzVm to create a VM, but it doesn’t use a template. You would need to provide all parameters in the command line. Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template https://docs.microsoft.com/en-us/powershell/module/az.compute/new-azvm?view=azps-7.0.0
upvoted 89 times
MiniLa92
2 months ago
Box 1: New-AzResourceGroupDeployment. Box 2: -ResourceGroupName RG1.
upvoted 2 times
...
...
sid132
Highly Voted 2 years, 12 months ago
On the exam today, 4.March.2022
upvoted 16 times
...
[Removed]
Most Recent 5 months, 2 weeks ago
CORRECT
upvoted 2 times
...
Amir1909
1 year ago
Correct
upvoted 2 times
...
zellck
2 years ago
1. New-AzResourceGroupDeployment 2. -ResourceGroupName RG1 https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroupdeployment
upvoted 10 times
...
husam421
3 years ago
New-AzResourceGroupDeployment -ResourceGroupName myResourceGroup -TemplateFile New-AzResourceGroupDeployment ` -Name ExampleDeployment ` -ResourceGroupName RG1 ` -TemplateFile Answer is correct
upvoted 3 times
...
MaximKotov
3 years, 2 months ago
The answer is correct! Don't take the command name literally. It's using for custom template deployment. We specify the name of an existing group and the path to the template.
upvoted 4 times
...
S3ktar
3 years, 2 months ago
The resource group is already created as per the question. It is asking for the command to deploy a vm, thus the answer is "New-AZvm".....second part "-ResourceGroupName RG1"
upvoted 1 times
adrian_borowski
3 years, 2 months ago
Lab thing guys before posting! You are wrong. New-AzVm does NOT accept argument TemplateUri
upvoted 6 times
...
MrBlueSky
3 years, 2 months ago
No. The fact that this is a VM is already specified in the ARM template. We only need to give it a command to deploy into a resource group, and then specify which resource group.
upvoted 4 times
...
...
Yaydel
3 years, 2 months ago
Answer is correct. https://docs.microsoft.com/ko-kr/powershell/module/az.resources/new-azresourcegroupdeployment?view=azps-0.10.0
upvoted 3 times
...
hanahjane13
3 years, 2 months ago
New-AzVm ` -ResourceGroupName "myResourceGroup" ` https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-powershell
upvoted 1 times
adrian_borowski
3 years, 2 months ago
You are wrong. New-AzVm does NOT accept argument TemplateUri
upvoted 3 times
...
...
olsenOnS
3 years, 2 months ago
I think the answer is correct. $resourceGroupName = Read-Host -Prompt "Enter the Resource Group name" $location = Read-Host -Prompt "Enter the location (i.e. centralus)" $adminUsername = Read-Host -Prompt "Enter the administrator username" $adminPassword = Read-Host -Prompt "Enter the administrator password" -AsSecureString $dnsLabelPrefix = Read-Host -Prompt "Enter an unique DNS name for the public IP" New-AzResourceGroup -Name $resourceGroupName -Location "$location" ______________________________________________ New-AzResourceGroupDeployment ` -ResourceGroupName $resourceGroupName ` -TemplateUri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.compute/vm-simple-windows/azuredeploy.json" ` -adminUsername $adminUsername ` -adminPassword $adminPassword ` -dnsLabelPrefix $dnsLabelPrefix ------------------------------------------------------------------------------- (Get-AzVm -ResourceGroupName $resourceGroupName).name
upvoted 7 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