Explanation:: Answer: A

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Explanation:

You can use a template that allows you to deploy a simple Windows VM by retrieving the password that is
stored in a Key Vault. Therefore, the password is never put in plain text in the template parameter file.

Question: CertyIQ
21
Your company has an Azure Active Directory (Azure AD) tenant that is configured for hybrid coexistence with the on-
premises Active Directory domain.
The on-premise virtual environment consists of virtual machines (VMs) running on Windows Server 2012 R2 Hyper- V
host servers.
You have created some PowerShell scripts to automate the configuration of newly created VMs. You plan to create
several new VMs.
You need a solution that ensures the scripts are run on the new VMs. Which of the following is the best solution?

Configure a SetupComplete.cmd batch file in the %windir%\setup\scripts directory.


Configure a Group Policy Object (GPO) to run the scripts as logon scripts.
Configure a Group Policy Object (GPO) to run the scripts as startup scripts.
Place the scripts in a new virtual hard disk (VHD).

Answer:
A
Explanation:
After you deploy a Virtual Machine you typically need to make some changes before it's ready to use. This is something you can d
Remote PowerShell to automate the configuration of your VM after deployment for example.
But now there's a third alternative available allowing you customize your VM: the CustomScriptextension. This CustomScript exte

Reference:
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script-to-windows- setup https://azure.m

Question: 22 CertyIQ
Your company has an Azure Active Directory (Azure AD) tenant that is configured for hybrid coexistence with the
on-premises Active Directory domain.
You plan to deploy several new virtual machines (VMs) in Azure. The VMs will have the same operating system and
custom software requirements.
You configure a reference VM in the on-premise virtual environment. You then generalize the VM to create an
image.
You need to upload the image to Azure to ensure that it is available for selection when you create the new Azure
VMs.
Which PowerShell cmdlets should you use?

A. Add-AzVM
B. Add-AzVhd
C. Add-AzImage
D. Add-AzImageDataDisk

Answer: B

Explanation:
The Add-AzVhd cmdlet uploads on-premises virtual hard disks, in .vhd file format, to a blob storage account
as fixed virtual hard disks.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/upload-generalized-managed

Question: 23 CertyIQ
DRAG DROP -
Your company has an Azure subscription that includes a number of Azure virtual machines (VMs), which are all part of the same
Your company also has an on-premises Hyper-V server that hosts a VM, named VM1, which must be replicated to Azure.
Which of the following objects that must be created to achieve this goal? Answer by dragging the correct option from the list to th
Select and Place:

You might also like