215k views
0 votes
How do you move an Azure VM using PowerShell & CLI?

a. Move-AzVM and az vm move
b. Export-AzVM and az vm export
c. Move-VMInstance and az vm transfer
d. Copy-AzVM and az vm copy

User Jorell
by
8.3k points

1 Answer

3 votes

Final answer:

To move an Azure VM using PowerShell, you can use the Move-AzVM cmdlet. For Azure CLI, you can use the az vm move command.

Step-by-step explanation:

To move an Azure VM using PowerShell, you can use the Move-AzVM cmdlet. This cmdlet is used to move a virtual machine from one Azure resource group to another within the same subscription. You will need to provide the resource group name and the destination resource group name as parameters.

On the other hand, if you want to move an Azure VM using the Azure CLI (Command Line Interface), you can use the az vm move command. This command also allows you to move a virtual machine from one resource group to another within the same subscription. You will need to provide the resource group name and the destination resource group name as parameters.

Therefore, the correct options for moving an Azure VM using PowerShell and Azure CLI are:

  1. Option a. Move-AzVM and az vm move

User Nelfeal
by
8.3k points