[x] Tested my code end-to-end against a live Azure subscription.
[x] Updated the documentation in the docs folder for the affected changes.
[x] Written unit tests against the modified code that I have made.
[x] Updated the release notes with a new entry for this PR.
[x] Checked the coding standards outlined in the contributions guide and ensured my code adheres to them.
Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:
open Farmer
open Farmer.Builders
open Farmer.Deploy
let initialDomainName = "myb2c"
let myb2c =
b2cTenant {
initial_domain_name initialDomainName
display_name "My B2C"
sku B2cTenant.Sku.PremiumP1
country_code "FR"
data_residency B2cDataResidency.Europe
}
let b2cDoesNotExist (initialDomainName: string) =
let output =
Az.AzHelpers.executeAz $"resource list --name '{initialDomainName}.onmicrosoft.com'"
|> snd
not (output.Contains initialDomainName)
let deployment =
arm {
location Location.FranceCentral
add_resources
[
// This allows to avoid having an error when the B2C tenant already exists
if b2cDoesNotExist initialDomainName then
myb2c
]
}
This PR closes #
The changes in this PR are as follows:
I have read the contributing guidelines and have completed the following:
Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure: