hashicorp / hashicorp/packer-plugin-azure
Add "image_version" explicitly set to "latest" for all source images
- Dominant language
- Go
- Stars
- 63
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.
#### Community Note
Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, 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.
#### Description
The VM image settings include "imae_publisher", "image_sku", and "image_offer". This should be explicitly set to also use "image_version" of "latest". The option is inconsistently listed, and relying on the implicit "latest" option is confusing.
#### Use Case(s)
The Azure tools use the "latest" image by default, but it's implicit, not explicit. Setting it consistently and explicitly helps personnel ifnd the right place to more specifically designate that value.
#### Potential configuration
See: azure/arm/builder_acc_test.go and examples/rhel.json. The
```
--- a/builder/azure/arm/builder_acc_test.go
+++ b/builder/azure/arm/builder_acc_test.go
@@ -380,6 +380,7 @@ func testBuilderUserDataLinux(userdata string) string {
"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "16.04-LTS",
+ "image_version": "latest",
"user_data_file": "%s",
"location": "South Central US",
```
#### Potential References
Contributor guide
Research direction
Start by reviewing builder/azure/arm/builder_acc_test.go and examples/rhel.json, then locate the other source-image configurations that list image_publisher, image_offer, and image_sku. Add an explicit image_version of "latest" consistently and update the relevant test or example coverage to confirm the setting is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, go
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100