Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_linux_virtual_machine - license_type support for UBUNTU_PRO #27520

Closed
1 task done
jasonrepos opened this issue Sep 26, 2024 · 5 comments · Fixed by #27534
Closed
1 task done

azurerm_linux_virtual_machine - license_type support for UBUNTU_PRO #27520

jasonrepos opened this issue Sep 26, 2024 · 5 comments · Fixed by #27534

Comments

@jasonrepos
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

It would be good to have support for the UBUNTU_PRO license within azurerm_linux_virtual_machine license_type

│ Error: expected license_type to be one of ["RHEL_BYOS" "SLES_BYOS"], got UBUNTU_PRO

│ with azurerm_linux_virtual_machine.,
│ on terraform.tf line 3987, in resource "azurerm_linux_virtual_machine" "":
│ 3987: license_type = "UBUNTU_PRO"

New or Affected Resource(s)/Data Source(s)

azurerm_linux_virtual_machine

Potential Terraform Configuration

resource "azurerm_linux_virtual_machine" "xxx" {
  name                       = "xxx"
  location                   = azurerm_resource_group.yyy.location
  resource_group_name        = azurerm_resource_group.yyy.name
  license_type = "UBUNTU_PRO"

References

No response

@harshavmb
Copy link
Contributor

Hi @jasonrepos ,

Could you please share links to documentation where it says UBUNTU_PRO is supported? Here I see only SLES & RHEL appear to be supported.

@jasonrepos
Copy link
Author

Hi @harshavmb

Here is the Azure doc on Ubuntu Pro - https://learn.microsoft.com/en-us/azure/virtual-machines/workloads/canonical/ubuntu-pro-in-place-upgrade

In my case I have manually upgraded our Ubuntu VMs using the following command

az vm update -g myResourceGroup -n myVmName --license-type UBUNTU_PRO

Following this, I am now having to set a lifecycle ignore so terraform does not revert the change.

lifecycle {
ignore_changes = [
license_type
]

@Chambras
Copy link
Contributor

@jasonrepos Just curious what offer and sku are you using?

@jasonrepos
Copy link
Author

source_image_reference {
publisher = "Canonical"
offer = "0001-com-ubuntu-server-focal"
sku = "20_04-lts-gen2"
version = "latest"
}

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants