Deallocating VM CPUs: When you want to change the size of a virtual machine (VM) in Azure (either scaling it up or down), you might need to deallocate the VM first. Deallocating means releasing the lease on the underlying hardware, completely powering off the VM, and stopping any billing for compute costs. Here are the steps:
Deallocate VM in the Azure Portal:
Open the Azure portal.
Search for โVirtual machinesโ and select your VM.
In the left menu, choose โSize.โ
Pick a new compatible size from the list.
Select โResize.โ Note that if the VM is currently running, changing its size will cause it to restart.
Deallocating the VM also releases any dynamic IP addresses assigned to it, but the OS and data disks are not affected.
Deallocate VM using Azure CLI: You can use the following command:
az vm deallocate --resource-group <resource-group-name> --name <vm-name>
Welcome to Databricks Community: Lets learn, network and celebrate together
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.