CompositionalIT / farmer

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

VM support for IP forwarding and accelerated networking. #1008

Closed ninjarobot closed 1 year ago

ninjarobot commented 1 year ago

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 {
    location Location.EastUS
    add_resources
        [
            vm {
                name "network-appliance"
                username "azureuser"
                operating_system UbuntuServer_2004LTS
                vm_size Standard_D2s_v5
                spot_instance Deallocate

                // Enabling accelerated networking requires a D-series or similar with multiple vCPUs
                accelerated_networking Enabled
                ip_forwarding Enabled
            }
        ]
}