Skip to content

Commit

Permalink
azurerm_linux_virtual_machine - Support UBUNTU_PRO license_type for a…
Browse files Browse the repository at this point in the history
…zurerm_linux_virtual_machine (hashicorp#27534)
  • Loading branch information
harshavmb authored Oct 17, 2024
1 parent 191e4e0 commit b404bdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
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

0 comments on commit b404bdf

Please sign in to comment.