PrepAway - Latest Free Exam Questions & Answers

Which Azure Power Shell cmdlet should you use?

You manage several Azure virtual machines (VMs). You create a custom image to be used by employees on
the development team.
You need to ensure that the custom image is available when you deploy new servers.
Which Azure Power Shell cmdlet should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Update-AzureVMImage

B.
Add-AzureVhd

C.
Add-AzureVMImage

D.
Update-AzureDisk

E.
Add-AzureDataDisk

Explanation:
The Add-AzureVMImage cmdlet adds an operating system image to the image repository. The image should be
a generalized operating system image, using either Sysprep for Windows or, for Linux, using the appropriate
tool for the distribution.Example
This example adds an operating system image to the repository.
Windows PowerShell
C:\\PS>Add-AzureVMImage -ImageName imageName -MediaLocation http://
yourstorageaccount.blob.core.azure.com/container/sampleImage.vhd -Label
http://msdn.microsoft.com/en-us/library/azure/dn495163.aspx


Leave a Reply