CompositionalIT / farmer

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

Creating a security group without a source returns a generic exception #1041

Closed BennieCopeland closed 1 year ago

BennieCopeland commented 1 year ago

Attempting to create a security rule without providing a source returns an unhelpful Unhandled exception. System.ArgumentException: The input sequence was empty.

let httpAccess =
    securityRule {
        name "accept-web"
        services [
            NetworkService ("https", Port 443us)
            NetworkService ("http", Port 80us)
        ]
    }

let myNsg =
    nsg {
        name "my-nsg"
        add_rules [
            httpAccess
        ]
    }