CompositionalIT / farmer

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

Farmer support for route server #1037

Closed Huaxinli123 closed 1 year ago

Huaxinli123 commented 1 year ago

This PR closes #

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:

#r "nuget:Farmer"

open Farmer
open Farmer.Builders

arm {
    location Location.EastUS
    add_resources
        [
            vnet {
                name "test-vnet"
                add_address_spaces [ "10.0.0.0/16" ]
            }
            routeServer {
                name "my-route-server"
                sku RouteServer.Sku.Standard
                subnetPrefix "10.0.12.0/24"
                linkToVnet (virtualNetworks.resourceId "test-vnet")

                add_BGPConnections [
                    routeServerBGPConnection {
                        connectionName "my-bgp-conn"
                        peerIp "10.0.1.85"
                        peerAsn 65000
                    }
                ]
            }
        ]
}
ninjarobot commented 1 year ago

Thanks @Huaxinli123, this is included in 1.7.23 and available on nuget.