/ Azure Virtual Networks 70-532 & 70-533 • Interview Question Microsoft Azure / by admin / Leave a comment
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?
Options:
A. Update-AzureVMImage
B. Add-AzureVhd
C. Add-AzureVMImage
D. Update-AzureDisk
E. Add-AzureDataDisk
Answer: C 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