Hi Liron Raz,
Thanks for reaching out to Microsoft Q&A.
Yes, it is possible to add an Ubuntu Pro license to your Azure VM running Ubuntu 20.04! You can upgrade your Ubuntu Server to Ubuntu Pro without redeploying the VM or causing downtime. This process involves updating the VM's license type and installing necessary tools within the VM.
- Update the VM's License Type: Use the Azure CLI to change the license type to Ubuntu Pro:
bash az vm update -g <ResourceGroupName> -n <VMName> --license-type UBUNTU_PRO
- Install Ubuntu Advantage Tools and Attach the Subscription: After updating the license type, access your VM via SSH and execute the following commands:
sudo apt update
sudo apt install ubuntu-advantage-tools sudo pro auto-attach
These commands install the necessary tools and attach your VM to the Ubuntu Pro subscription.
1. **Verify the Subscription Status:** To confirm that Ubuntu Pro features are enabled, run:
```dockerfile
pro status --all --
This command displays the status of Ubuntu Pro services on your VM.
Important Considerations:
- Propagation Time: After updating the license type, it may take some time for the change to propagate through the system. If the
pro auto-attach
command fails initially, wait a few minutes and try again. - Limitations: This upgrade method is applicable to Ubuntu images published by Canonical. If your VM was created from a custom image or a third-party publisher, this process may not be supported.
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.