PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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

11 Comments on “Which Azure Power Shell cmdlet should you use?

    1. recall says:

      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”)




      0



      0
    1. recall says:

      Wrong. The questions states “You need to migrate the VM to Azure Storage to add it to your repository” which translates as upload a VHD. Answer is E. Add-AzureDisk just adds an existing VHD from a storage account into your list of disks that you can then choose when creating a new VM; it doesn’t migrate/upload the VM VHD from your on-premise site.

      https://blogs.technet.microsoft.com/canitpro/2014/05/07/step-by-step-upload-your-own-vhd-to-add-to-the-gallery-in-azure/




      0



      0
  1. Ernest says:

    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




    0



    0
  2. Akhtar says:

    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




    0



    0

Leave a Reply