generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
Description
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
Add support for specifying optional network_security_group_name
in the Packer Azure ARM configuration. This enhancement will allow users to specify these components if they have a pre-existing Network Security Group in their Azure environment.
Use Case(s)
- Allow an already created Azure Network Security Group (
network_security_group_name
) in the user’s Azure Cloud to be used by the temporary Network Interface Packer will create.
Potential configuration
Add the following fields to the Config
struct in config.go
:
type Config struct {
// Existing fields...
// Name of the network security group to use.
NetworkSecurityGroupName string `mapstructure:"network_security_group_name" required:"false"`
}
Potential References
- Update template-factory.go and relevant functions to incorporate the new field
network_security_group_name
. This may involve modifying how the ARM template is generated and ensuring that these values are correctly referenced and used during the deployment process. - Update resource_resolver.go and relevant functions to validate that the provided
network_security_group_name
exists in the provided Azure Cloud.
the3venthoriz0n