exam questions

Exam AZ-103 All Questions

View all questions & answers for the AZ-103 exam

Exam AZ-103 topic 16 question 75 discussion

Actual exam question from Microsoft's AZ-103
Question #: 75
Topic #: 16
[All AZ-103 Questions]

You have an Azure virtual machine named VM1 that runs Windows Server 2019.
You save VM1 as a template named Template1 to the Azure Resource Manager library.
You plan to deploy a virtual machine named VM2 from Template1.
What can you configure during the deployment of VM2?

  • A. virtual machine size
  • B. operating system
  • C. administrator username
  • D. resource group
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
When deploying a virtual machine from a template, you must specify:
✑ the Resource Group name and location for the VM
✑ the administrator username and password
✑ an unique DNS name for the public IP
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template

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
Kallandor
Highly Voted 4 years, 10 months ago
According to the link provided in the solution: "Create a resource group. An Azure resource group is a logical container into which Azure resources are deployed and managed. A resource group must be created "before" a virtual machine." According to the question: "What can you configure "DURING" the deployment of VM2?" Isn't the "Administrator Usename"? It is asking what we can configure "DURING" the deployment, and not before it. That's why I think answer C is correct as provided.
upvoted 21 times
praveen97
4 years, 10 months ago
It is little confusing. But with the explanation from Kallandor, it seems C is the correct answer. But i am not 100% sure.
upvoted 2 times
praveen97
4 years, 10 months ago
Correction.... I have tested it by creating a ARM template and when I click on Deploy for that template, first thing which it has asked me is to provide the Resource Group Name. This has given an option to select the existing Resource Group name or also an option to create the new resource group name. I believe Resource Group is also part of the Deployment process, so D is the correct answer.
upvoted 5 times
Durden871
2 years, 2 months ago
Udemy agrees with this answer as well: Explanation Correct Answer(s): When deploying a virtual machine from a saved template, you must specify the Resource Group name.
upvoted 1 times
...
...
...
...
Lyon
Highly Voted 4 years, 11 months ago
D. If you try to deploy your own template in the portal, there are 3 available options - "Subscription", "Resource Group", "Location". Resource group is the only one of the three options available in this list of answers.
upvoted 9 times
Lyon
4 years, 11 months ago
However if you edit the template directly, you can change the administrator username.= inside of the template file. Not really sure, seems like a poorly worded question.
upvoted 1 times
Durden871
2 years, 2 months ago
I think I finally understand what this question is asking. You can configure the creds, VM, and OS in the template file. You edit the RESOURCE GROUP in the DEPLOYMENT process. $templateFile = "{provide-the-path-to-the-template-file}" New-AzResourceGroupDeployment ` -Name blanktemplate ` -ResourceGroupName myResourceGroup ` -TemplateFile $templateFile The above command is outside of the template for the DEPLOYMENT of said template.
upvoted 1 times
...
...
...
Durden871
Most Recent 2 years, 2 months ago
From Udemy: Explanation Correct Answer(s): When deploying a virtual machine from a saved template, you must specify the Resource Group name.
upvoted 1 times
Durden871
2 years, 2 months ago
Example of DEPLOYMENT: $templateFile = "{provide-the-path-to-the-template-file}" New-AzResourceGroupDeployment ` -Name blanktemplate ` -ResourceGroupName myResourceGroup ` -TemplateFile $templateFile
upvoted 1 times
...
...
rupayan87
2 years, 5 months ago
Not a ARm expert but logically makes sense. What is the point if the template can only be used for VM deployment in one RG? Now admin pwd could be another option that comes to mind but generally admin details are fetched from KeyVault. You can change them in the keyvault if you need a different admin cred.
upvoted 1 times
Durden871
2 years, 2 months ago
The question is asking what you're doing during the DEPLOYMENT of the template. The creds are inside the template you're deploying. This is how you would DEPLOY a template: $templateFile = "{provide-the-path-to-the-template-file}" New-AzResourceGroupDeployment ` -Name blanktemplate ` -ResourceGroupName myResourceGroup ` -TemplateFile $templateFile
upvoted 1 times
...
...
waetawangu
2 years, 5 months ago
Maybe I am wrong but But i am thinking the Answer is D: Te logical Answer is between C and D. Now , the question is saying the template is belonging to an existing and running Windows Server 2019 . So they made an export of an existing VM , or exported the Template when completing the setup.So the template comes with the Admin Username already , so you can configure it . So Answer is D: Please see below Export i did of an existing VM osProfile": { "computerName": "[parameters('virtualMachines_Az_104_name')]", "adminUsername": "az104Admin", "windowsConfiguration": { "provisionVMAgent": true, "enableAutomaticUpdates": true, "patchSettings": { "patchMode": "AutomaticByOS", "assessmentMode": "ImageDefault", "enableHotpatching": false }
upvoted 1 times
...
Kanabis
4 years, 4 months ago
Correct answer is C. Because from here you can see that only the administrator username is presented in the list of answers: New-AzResourceGroupDeployment ` -ResourceGroupName $resourceGroupName ` -TemplateUri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-windows/azuredeploy.json" ` -adminUsername $adminUsername ` -adminPassword $adminPassword ` -dnsLabelPrefix $dnsLabelPrefix D is incorrect because it says 'resource group' and not 'resource group name'.
upvoted 1 times
NotMeAnyWay
2 years, 10 months ago
But you do have the option to "Create New" below the field for the resource group name, which in theory would be the same as "configure". So you are given the option to configure a resource group.
upvoted 1 times
...
...
OsimIndia
4 years, 4 months ago
Below cmds are for deploying VM from template. # Set deployment variables $myNum = "001" # Modify this per deployment $RGName = "myRG$myNum" $myLocation = "yourregion" # local for the ASDK # Create resource group for template deployment New-AzResourceGroup -Name $RGName -Location $myLocation # Deploy simple IaaS template New-AzResourceGroupDeployment ` -Name myDeployment$myNum ` -ResourceGroupName $RGName ` -TemplateUri <path>\AzureStack-QuickStart-Templates\101-vm-windows-create\azuredeploy.json ` -AdminUsername <username> ` -AdminPassword ("<password>" | ConvertTo-SecureString -AsPlainText -Force) Clearly,,, you can provide resource group, admins username, password........ SO both C and D are valid.
upvoted 2 times
...
sjccde
4 years, 6 months ago
During the deployment you configure BOTH, adminuser + RG: New-AzResourceGroupDeployment ` -ResourceGroupName $resourceGroupName ` -TemplateUri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-windows/azuredeploy.json" ` -adminUsername $adminUsername ` -adminPassword $adminPassword ` -dnsLabelPrefix $dnsLabelPrefix The RG must be setup BEFORE but you configure the VM to be deployed to it. It is very vague to say for sure that admin data is the (only) correct anwser...
upvoted 1 times
...
Thi
4 years, 6 months ago
D. resource group
upvoted 1 times
...
Gbala
4 years, 8 months ago
Tested... answer is (D) RG...It will ask for subscription, RG (we can select existing or create a new one) and location.
upvoted 2 times
...
Shades
4 years, 10 months ago
While I try to deploy a VM from a template , it gives 3 things: a) Subscription name (by default filled , but can be changed) b) Resource Group (empty) c) Location (Filled but editable) ..another thing : Name of VM is also editable...nowhere it asks for admin creds
upvoted 4 times
...
jonnybugaloo
4 years, 11 months ago
D - Resource Group: Create a virtual machine from template Creating an Azure virtual machine usually includes two steps: Create a resource group. An Azure resource group is a logical container into which Azure resources are deployed and managed. A resource group must be created before a virtual machine. Create a virtual machine.
upvoted 1 times
...
gerardR
4 years, 11 months ago
The correct is D, resource group.
upvoted 3 times
...
baobabko
4 years, 11 months ago
Exporting a VM template creates only 3 parameters - VM name, osDiskId, networkInterfaceId.
upvoted 1 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