CompositionalIT / farmer

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

Adding support for dedicated host groups and hosts #980

Closed thinkdavid closed 1 year ago

thinkdavid 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:

let deployment =
                    arm {
                        location Location.EastUS

                        add_resources
                            [
                                hostGroup {
                                    name "myhostgroup"
                                    support_automatic_placement true
                                    add_availability_zone "1"
                                    platform_fault_domain_count 2
                                }
                                host {
                                    name "myhost"
                                    parent_host_group (ResourceName "myHostGroup")
                                    sku "Fsv2-Type2"
                                }
                            ]
                    }