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 - Support UBUNTU_PRO license_type for azurerm_linux_virtual_machine #27534

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func resourceLinuxVirtualMachine() *pluginsdk.Resource {
"SLES_BYOS",
"SLES_SAP",
"SLES_HPC",
"UBUNTU_PRO",
}, false),
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func TestAccLinuxVirtualMachine_otherLicenseType(t *testing.T) {
Config: r.otherLicenseType(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
check.That(data.ResourceName).Key("license_type").HasValue("SLES_BYOS"),
check.That(data.ResourceName).Key("license_type").HasValue("UBUNTU_PRO"),
),
},
data.ImportStep(),
Expand Down Expand Up @@ -1990,7 +1990,7 @@ resource "azurerm_linux_virtual_machine" "test" {
location = azurerm_resource_group.test.location
size = "Standard_F2"
admin_username = "adminuser"
license_type = "SLES_BYOS"
license_type = "UBUNTU_PRO"
network_interface_ids = [
azurerm_network_interface.test.id,
]
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/linux_virtual_machine.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The following arguments are supported:

* `location` - (Required) The Azure location where the Linux Virtual Machine should exist. Changing this forces a new resource to be created.

* `license_type` - (Optional) Specifies the License Type for this Virtual Machine. Possible values are `RHEL_BYOS`, `RHEL_BASE`, `RHEL_EUS`, `RHEL_SAPAPPS`, `RHEL_SAPHA`, `RHEL_BASESAPAPPS`, `RHEL_BASESAPHA`, `SLES_BYOS`, `SLES_SAP`, `SLES_HPC`.
* `license_type` - (Optional) Specifies the License Type for this Virtual Machine. Possible values are `RHEL_BYOS`, `RHEL_BASE`, `RHEL_EUS`, `RHEL_SAPAPPS`, `RHEL_SAPHA`, `RHEL_BASESAPAPPS`, `RHEL_BASESAPHA`, `SLES_BYOS`, `SLES_SAP`, `SLES_HPC`, `UBUNTU_PRO`.

* `name` - (Required) The name of the Linux Virtual Machine. Changing this forces a new resource to be created.

Expand Down
Loading