CompositionalIT / farmer

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

Add missing web app SKUs, including P0V3 #1106

Closed jwthomson closed 4 weeks ago

jwthomson commented 1 month ago

This PR addresses #1104

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:

I couldn't find any docs or tests to extend with this extra SKU. Since the change is just a convenient mapping of PremiumV3 "P0V3", PremiumV3 "P1MV3" etc., so I feel like it is reasonable to skip these.

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

let app = webApp {
    name "my-web-app"
    sku WebApp.Sku.P0V3
}

let deployment = arm {
    add_resource app
}

Deploy.execute "my-rg" [] deployment