packer-plugin-azure icon indicating copy to clipboard operation
packer-plugin-azure copied to clipboard

azure-arm: Add `public ip sku` parameter

Open CorrenSoft opened this issue 1 year ago • 1 comments

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 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

Under certain configurations, the packer creates a Public IP to be used by the virtual machine but is always a basic SKU, and does not exist a parameter to define a different SKU. The request is to have that possibility.

Use Case(s)

As part of the process, some tools are installed and some information is retrieved from an IP-restricted site. To be able to configure an appropriate allow-list is necessary to control the outbound IP, and for that purpose, I have a NAT Gateway associated with the subnet used by Packer. The whole process fails because Azure does allow the creation of any other public IP with the Basic Sku in the same subnet as NAT Gateway.

Potential configuration

HCL

source "azure-arm" "example" {
  ...
  public_ip_sku = "Standard"
  ...
}

Potential References

CorrenSoft avatar Apr 12 '23 22:04 CorrenSoft