AZ-103 Exam QuestionsBrowse all questions from this exam

AZ-103 Exam - Question 83


You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image.

You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Show Answer
Correct Answer: AC

To ensure the virtual machines in the scale set have web server components installed when provisioned, you need to modify the extensionProfile section of the Azure Resource Manager template. This section allows you to specify extensions to be applied to the virtual machines, such as the Custom Script Extension. Uploading a configuration script is also essential because it provides the specific instructions for the installation of the web server components. This script can be referenced in the extensionProfile to execute the necessary commands during provisioning.

Discussion

29 comments
Sign in to comment
alfespa17
Apr 27, 2020

I think is A and C. Check this link https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-deploy-app

senseibrutal
May 19, 2020

AD AE AC Come on guys dont spam around

ariahi
Jul 13, 2020

All, I have done this. You can create a script, upload to Azure and have your VM execute the script after the VM is built. If you were doing thru CLI, you would do something like this : az vm extension set \ --resource-group $RESOURCEGROUP \ --vm-name simpleLinuxVM \ --name customScript \ --publisher Microsoft.Azure.Extensions \ --version 2.0 \ --settings '{"fileUris":["https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-httpd.sh"]}' \ --protected-settings '{"commandToExecute": "./configure-httpd.sh"}' This means you need to tell the VM to run a script and you need to tell the VM-template where the script is. My answer is : A and C

dean1984kirsten
Apr 10, 2020

A and D Correct if reading https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-dsc

Hanuman
Jun 27, 2020

Yes, correct

Thi
Oct 30, 2020

A. Modify the extensionProfile section of the Azure Resource Manager template. C. Upload a configuration script.

raj10207
Jul 6, 2020

Came in Exam , Exam given on 06.07.2020

clouddba
Jun 26, 2021

Answers: A. Modify the extensionProfile section of the Azure Resource Manager template. C. Upload a configuration script.

FrancisFerreira
Mar 29, 2020

Where is the "automate deployment" requirement addressed?

AnuV
Apr 5, 2020

The primary use case for the Azure Desired State Configuration (DSC) extension is to bootstrap a VM to the Azure Automation State Configuration (DSC) service.

scruzer
May 31, 2020

I think its A and C as well. You don't need to create a new VM scale set.

CristianN
May 9, 2020

A and C was my choice too. An URL for a script in extensionProfile section is provided.

Goena
Jun 19, 2020

The question is "You PLAN to automate the deployment ..." You still have to do it. No need for a new scale set. Correct answer: A & C

Shades
Jul 24, 2020

I think there are 2 ways to achieve this: 1) Is to do it through Custom Script Extension (A). It can specify the script location & the command to run 2) Store the Configuration File & specify the location in Azure Template (C). This is specifically used when you have some sensitive data like certificate ( If you like HTTPS in website) So You don't need to do both...but for 2nd one..u still need to use the custom script extension...I think the questions are not worded properly https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows

OsimIndia
Dec 28, 2020

totally agree wit you

Meedeh
Sep 13, 2020

100% sure the answer is AC.

akamal
May 9, 2020

I think it's A & C: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-deploy-app

leochn
Jun 5, 2020

Correct A & D. The ARM template needs extension for web server. And to create the scale set you need to deploy the template from either portal or PowerShell. https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/quick-create-template-windows

jonnybugaloo
Jun 7, 2020

I've tried to create a custom template, but the options for cloud-init, the only one which you can use on Custom Data Field when creating or configuring an Availability Set, is just for Linux. For Windows you need to use another automation tool, such as ARM, Jenkins, etc. So, since the questions asks for a customized Windows with Web Service, the right answer is the given one, A and D. https://docs.microsoft.com/pt-br/azure/azure-resource-manager/templates/overview https://docs.microsoft.com/pt-br/azure/virtual-machines/windows/infrastructure-automation#azure-resource-manager-template https://docs.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-automate-vm-deployment

Indiaa
Jul 13, 2020

Please confirm A and C or A and D ?

Rajat0702
Aug 1, 2020

A and D

Shades
Jul 24, 2020

I think there are 2 ways to achieve this: 1) Is to do it through Custom Script Extension (A). It can specify the script location & the command to run 2) Store the Configuration File & specify the location in Azure Template (C). This is specifically used when you have some sensitive data like certificate ( If you like HTTPS in website) So You don't need to do both...but for 2nd one..u still need to use the custom script extension...I think the questions are not worded propely

arseyam
Sep 2, 2020

The answer is A & C in the question it states that "You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image" D defeats the purpose of the automation requirement, so C is 100% correct. Install an app with the Custom Script Extension The Custom Script Extension downloads and executes scripts on Azure VMs. This extension is useful for post deployment configuration, software installation, or any other configuration / management task. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run-time. https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-deploy-app#already-provisioned Also check this https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template#what-is-the-azure-custom-script-extension

llyrosslau
Jun 3, 2021

A. Modify the extensionProfile section of the Azure Resource Manager template. B. Create an automation account. C. Upload a configuration script. both need?

Myfeltf65
May 2, 2020

A and E are the correct answer. VM Scale set and IIS are taken care of in the ARM deployment. To "ensure" that IIS is install create Azure Policy

nfett
May 30, 2020

correct answers for me are A & C

it115
Jun 27, 2020

https://docs.microsoft.com/en-us/azure/virtual-machines/custom-data#windows Windows Custom data is placed in %SYSTEMDRIVE%\AzureData\CustomData.bin as a binary file, but it is not processed. If you wish to process this file, you will need to build a custom image, and write code to process the CustomData.bin. When creating a scale set you will have the option to pass a script, configuration file to the scale set. https://imgur.com/a/gE6sCA1

it115
Jun 27, 2020

C is definitely one among the answers

[Removed]
Jun 30, 2020

A for 100% - https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-deploy-vm-extensions D - https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-dsc

Azure4Jahid
Sep 21, 2020

Why do I need to create a new scale set whereas we already have a scale set. Can you please explain?

Shades
Jul 4, 2020

A & C (Modify the extensionProfile section of the Azure Resource Manager template, Upload configurational script look correct https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-deploy-app

imnotabot
Aug 9, 2020

This is a correct answer. You have to create a scaleset since one is not mentioned to have been created already. You also have to adjust the ARM extensionProfile to add the DSC. Found answer here https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-template?toc=/azure/virtual-machines/windows/toc.json

hstorm
Aug 24, 2020

https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template I have to agree with original answer, but I'm not happy about the frase "automate deployment" as we are creating the scaleset manually in the portal. With given answers, I would go for A and D

PerfumoPeru
May 31, 2021

A is for user. The other one, mmm. You can't create a vmss with a configuration script, in purpose of that you need a ARM template. There are no option for that, so the only near possibility is D. So answer is A & D

ShivaUdari
Dec 26, 2021

So we don't need to upload the script ?