author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
alkohli |
databox |
include |
08/03/2020 |
alkohli |
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>
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.
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.
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
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.