Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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>