Bog'liq 9781509302963 Microsoft Azure Essentials Fundamentals of Azure 2nd ed pdf
Stopping an Azure VM To stop a VM but keep it provisioned, you would need to use the Stop-AzureRmVM PowerShell
cmdlet such as in the following example:
Stop-AzureRmVM -Name "AzEssentialDev3" -ResourceGroup "AzureEssentials" -StayProvisioned
For classic VMs, a similar cmdlet, Stop-AzureVM, would be used.
When using the Azure CLI, there are two commands used to control the stopped state of a VM:
azure vm stop and azure vm deallocate.
Shutting down the VM from the operating system of the VM will also stop the VM but will not
deallocate the VM.
Note The Azure Hybrid Use Benefit program may offer additional savings by allowing you bring
your on-premises Windows Server licenses to Azure. For more information, please see
https://azure.microsoft.com/pricing/hybrid-use-benefit/
.