Inquiry About Adding Ubuntu Pro License to Azure VM

Liron Raz 25 Reputation points
2024-11-10T12:29:09.6266667+00:00

Hello,

I have an Azure VM running Ubuntu 20.04 that I am only permitted to modify through standard software changes and installations. Due to client requirements, it must have an Ubuntu Pro license. Is it possible for me to add this license myself?

Thanks,

Liron

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,040 questions
{count} votes

Accepted answer
  1. Vinodh247 34,741 Reputation points MVP Volunteer Moderator
    2024-11-10T14:15:09.6733333+00:00

    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.

    1. 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
      
    2. 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.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.