CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
526 stars 156 forks source link

Network Security Groups: Add rule to existing security group #1049

Closed ninjarobot closed 1 year ago

ninjarobot commented 1 year ago

This PR closes #992

The changes in this PR are as follows:

I have read the contributing guidelines and have completed the following:

If I haven't completed any of the tasks above, I include the reasons why here:

Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:

arm {
    add_resources [
        securityRule {
            name "web-servers"
            description "Public web server access"
            services [ "http", 80; "https", 443 ]
            add_source_tag TCP "Internet"
            add_destination_network "10.100.30.0/24"
            link_to_network_security_group existingNsg
            priority 350
        }
    ]
}