You manage a virtual Windows Server 2012 web server that is hosted by an on-premises Windows Hyper-V
server. You plan to use the virtual machine (VM) in Azure.
You need to migrate the VM to Azure Storage to add it to your repository.
Which Azure Power Shell cmdlet should you use?
A.
Import-AzureVM
B.
New-AzureVM
C.
Add-AzureDisk
D.
Add-AzureWebRole
E.
Add-AzureVhd
Explanation:
The Add-AzureVhd command uploads a virtual hard disk (in .vhd file format) from an on-premises virtual
machine to a blob in a cloud storage account in Azure.https://msdn.microsoft.com/en-us/library/azure/dn495173.aspx
Correct answer is C.
Add-AzureDisk -DiskName “MyWinDisk” -MediaLocation “http://contosostorage.blob.core.azure.com/vhds/winserver-system.vhd” -Label “StartupDisk” -OS “Windows”
Given answer is correct, question specifies to move it to azure storage.
https://docs.microsoft.com/en-us/powershell/module/azure/add-azurevhd?view=azuresmps-4.0.0
E is correct.