-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_windows_virtual_machine
- support for gallery_applications
#18406
Conversation
…upport for `gallery_applications`
9239fd0
to
34ad9a6
Compare
Test result (Failed tests are being fixed as part of #17671) |
* `package_reference_id` - (Required) Specifies the Gallery Application Version resource ID. | ||
|
||
-> **NOTE:** The `package_reference_id` should be in the form of `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1/applications/application1/versions/version1`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be called
* `package_reference_id` - (Required) Specifies the Gallery Application Version resource ID. | |
-> **NOTE:** The `package_reference_id` should be in the form of `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1/applications/application1/versions/version1`. | |
* `version_id` - (Required) Specifies the Gallery Application Version resource ID. |
or
* `package_reference_id` - (Required) Specifies the Gallery Application Version resource ID. | |
-> **NOTE:** The `package_reference_id` should be in the form of `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1/applications/application1/versions/version1`. | |
* `package_reference_id` - (Required) Specifies the Gallery Application Version resource ID. | |
-> **NOTE:** The `gallery_application_version_id` should be in the form of `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1/applications/application1/versions/version1`. |
so the note sins't required?
|
||
-> **NOTE:** The `package_reference_id` should be in the form of `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1/applications/application1/versions/version1`. | ||
|
||
* `configuration_reference_blob_uri` - (Optional) Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is reference make sense here?
* `configuration_reference_blob_uri` - (Optional) Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided. | |
* `configuration_blob_uri` - (Optional) Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided. |
@@ -206,6 +206,8 @@ func resourceLinuxVirtualMachine() *pluginsdk.Resource { | |||
ValidateFunc: azValidate.ISO8601DurationBetween("PT15M", "PT2H"), | |||
}, | |||
|
|||
"gallery_applications": VirtualMachineGalleryApplicationsSchema(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be
"gallery_applications": VirtualMachineGalleryApplicationsSchema(), | |
"gallery_application": VirtualMachineGalleryApplicationsSchema(), |
Hi @katbyte thanks for reviewing the pr! The new property names you suggested totally make sense. Just the feature has just been added to VMSS with these property names (could be found in pr description), shall we use the same one from VMSS here, or use the new name instead, add deprecate those in VMSS? |
i think these names are sufficiently better the old ones should be deprecated ? |
@katbyte got it! I've updated the property names, please take a look. |
After this change is done, I'll start another pr to update these property names in VMSS resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🌵
This functionality has been released in v3.25.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
seems like functionality was released for both linux and windows properly but release notes states only windows vitrual machine twice : |
thanks @farwind for pointing that out - i've corrected the changelog |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This is similar to what we have added in VMSS. And
gallery_applications
in VM is updatableterraform-provider-azurerm/website/docs/r/linux_virtual_machine_scale_set.html.markdown
Lines 363 to 373 in fa35df5