Which Azure Power Shell cmdlet should you use?

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?

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:
Ref: http://msdn.microsoft.com/en-us/library/dn495173.aspx



Leave a Reply 11

Your email address will not be published. Required fields are marked *


Robin

recall

recall

Wrong. The question states “You need to migrate the VM to Azure Storage to add it to your repository.” Add-AzureDisk will not do that. Add-AzureVhd will. Answer E

If you read that article it says to use Add-AzureVhd to upload the VHD and then to add it to your list of disks you can use Add-AzureDisk (“Finally, lets add this to our disk repository by using Add-AzureDisk”)

Joy

Joy

i completely agree

John

John

Not agree, you can use Add-AzureDISK when the vhd is already in Azure.
You need to use Add-AzureVhd to migrate the vhd, from on-premise to azure.

Ernest

Ernest

Answer: E
Explanation: * How do I move an existing virtual machine to the cloud?
The steps are pretty basic:
✑ Create a place to store your hard disk in Windows Azure
✑ Prepare your virtual hard disk
✑ Upload your virtual hard disk
✑ Create your machine in Windows Azure

* Add-AzureVhd
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.

The Add-AzureVhd cmdlet allows you to upload on-premises virtual hard disks (in .vhd file format) to a blob storage account as fixed virtual hard disks. You can configure the number of uploader threads that will be used or overwrite an existing blob in the specified
destination URI. Also supported is the ability to upload a patched version of an on-premises .vhd file: When a base virtual hard disk has already been uploaded, you can upload differencing disks that use the base image as the parent. Shared access signature (SAS URI) is supported as well.

Reference: Add-AzureVhd

URL: http://msdn.microsoft.com/en-us/library/dn495173.aspx

Akhtar

Akhtar

You have an Azure subscription named Subscription1
You create several Azure virtual machines in Subscription1. All of the virtual machines belong to the same virtual network.
You have an on premise Hyper V server nmamed Server1, Server 1 hosts a virtual machine named VM1
You plan to replicate VM1 to Azure
You need create additional objects in Subscription 1 to support the planned deployment
Which objects should you create

Gerardo

Gerardo

I thinks the correct one is C, is not E because you want to migrate THE vm, you dont want to create more vms based on an image (Add-AzureVHD)