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

Add license_type to linux_virtual_machine #10776

Merged
merged 11 commits into from
Mar 4, 2021
Merged

Add license_type to linux_virtual_machine #10776

merged 11 commits into from
Mar 4, 2021

Conversation

favoretti
Copy link
Collaborator

And add Linux license types to virtual_machine validation.

Fixes #10744

And add Linux license types to `virtual_machine` validation.
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @favoretti, this is looking good but I have a couple questions/suggestions. Also, can we get a couple tests written out to confirm that this works for both linux_virutal_machine and virtual_machine?

@ghost ghost added size/M and removed size/S labels Mar 1, 2021
@favoretti
Copy link
Collaborator Author

favoretti commented Mar 1, 2021

$ TF_ACC=1 go test -v ./azurerm/internal/services/compute -timeout=1000m -run=TestAccLinuxVirtualMachine_otherLicenseType
2021/03/01 21:05:22 [DEBUG] not using binary driver name, it's no longer needed
2021/03/01 21:05:22 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccLinuxVirtualMachine_otherLicenseType
=== PAUSE TestAccLinuxVirtualMachine_otherLicenseType
=== CONT  TestAccLinuxVirtualMachine_otherLicenseType
--- PASS: TestAccLinuxVirtualMachine_otherLicenseType (371.29s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/compute	372.634s

Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nearly there! I missed that linux_virtual_machine has separate Create/Update functions so we'll want to add license_type to the update method as well.

@favoretti
Copy link
Collaborator Author

Ack, my bad. Will fix in my morning, sorry about this.

@favoretti favoretti requested a review from mbfrahry March 2, 2021 07:36
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @favoretti

Thanks for pushing those changes.

Taking a look through here whilst this mostly looks good we'll need to revert the changes to the legacy azurerm_virtual_machine resource since this is feature-frozen.

Thanks!

@favoretti favoretti requested a review from tombuildsstuff March 2, 2021 08:59
@tombuildsstuff tombuildsstuff added this to the v2.50.0 milestone Mar 4, 2021
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@tombuildsstuff tombuildsstuff dismissed mbfrahry’s stale review March 4, 2021 15:43

dismissing since changes have been pushed

@tombuildsstuff tombuildsstuff merged commit c4c72d1 into hashicorp:master Mar 4, 2021
tombuildsstuff added a commit that referenced this pull request Mar 4, 2021
@ghost
Copy link

ghost commented Mar 5, 2021

This has been released in version 2.50.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.50.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Apr 4, 2021

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add license_type for azurerm_linux_virtual_machine
3 participants