Mastering Windows Server 2016 Hyper-V

(Romina) #1

#View all VHDs
Get-AzureRMStorageAccount -Name `
-ResourceGroupName |
Get-AzureStorageContainer | where {$.Name -eq 'vhds'} |

Get-AzureStorageBlob | where {$
.Name.EndsWith('.vhd')}


To stop and start VMs, use the Start and Stop-AzureRmVM cmdlets along with the VM
name and resource group name.


There is no action that can be performed in the Azure portal that cannot be performed
with PowerShell. As new capabilities are added to Azure, those capabilities are first
surfaced via the REST API, then in PowerShell, and finally in the Azure portal.

Free download pdf