Skip to content

Add support for specifying optional network_security_group_name in Packer Azure ARM configuration #513

@gurumachupalli

Description

@gurumachupalli

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions