Deallocate an Azure VM Using the Azure CLI on RHEL | Red Hat Developer
If you're running Red Hat Enterprise Linux server on Microsoft Azure, you may want to shut down and deallocate the VM using commands inside of the VM itself for automation or just for convenience.