Skip to content

Latest commit

 

History

History
58 lines (33 loc) · 1.66 KB

azure-stack-edge-gateway-manage-vm.md

File metadata and controls

58 lines (33 loc) · 1.66 KB
author ms.service ms.topic ms.date ms.author
alkohli
databox
include
08/03/2020
alkohli

List VMs running on the device

To return a list of all the VMs running on your Azure Stack Edge device, run the following command.

Get-AzureRmVM -ResourceGroupName <String> -Name <String>

Turn on the VM

Run the following cmdlet to turn on a virtual machine running on your device:

Start-AzureRmVM [-Name] <String> [-ResourceGroupName] <String>

For more information on this cmdlet, go to Start-AzureRmVM.

Suspend or shut down the VM

Run the following cmdlet to stop or shut down a virtual machine running on your device:

Stop-AzureRmVM [-Name] <String> [-StayProvisioned] [-ResourceGroupName] <String>

For more information on this cmdlet, go to Stop-AzureRmVM cmdlet.

Add a data disk

If the workload requirements on your VM increase, then you may need to add a data disk.

Add-AzureRmVMDataDisk -VM $VirtualMachine -Name "disk1" -VhdUri "https://contoso.blob.core.windows.net/vhds/diskstandard03.vhd" -LUN 0 -Caching ReadOnly -DiskSizeinGB 1 -CreateOption Empty 
 
Update-AzureRmVM -ResourceGroupName "<Resource Group Name string>" -VM $VirtualMachine

Delete the VM

Run the following cmdlet to remove a virtual machine from your device:

Remove-AzureRmVM [-Name] <String> [-ResourceGroupName] <String>

For more information on this cmdlet, go to Remove-AzureRmVm cmdlet.