The following arguments are supported:
A tls block supports the following:
NOTE:
It may take up to 15 minutes for the Front Door Service to validate the state and Domain ownership of the Custom Domain.
resource "azurerm_resource_group" "example" {
name = "example-cdn-frontdoor"
location = "West Europe"
}
resource "azurerm_dns_zone" "example" {
name = "sub-domain.domain.com"
resource_group_name = azurerm_resource_group.test.name
}
resource "azurerm_cdn_frontdoor_profile" "example" {
name = "example-profile"
resource_group_name = azurerm_resource_group.example.name
sku_name = "Standard_AzureFrontDoor"
}
resource "azurerm_cdn_frontdoor_custom_domain" "example" {
name = "example-customDomain"
cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.example.id
dns_zone_id = azurerm_dns_zone.example.id
host_name = "contoso.fabrikam.com"
tls {
certificate_type = "ManagedCertificate"
minimum_tls_version = "TLS12"
}
}
az network front-door create --backend-address
--name
--resource-group
[--accepted-protocols]
[--backend-host-header]
[--disabled {false, true}]
[--enforce-certificate-name-check {Disabled, Enabled}]
[--forwarding-protocol {HttpOnly, HttpsOnly, MatchRequest}]
[--friendly-name]
[--frontend-host-name]
[--interval]
[--no-wait]
[--path]
[--patterns]
[--probeMethod {GET, HEAD}]
[--protocol {Http, Https}]
[--send-recv-timeout]
[--tags]
az network front-door create --name MyFrontDoor --resource-group MyResourceGroup --frontend-endpoints MyFrontendEndpoint --backend-pools MyBackendPool --routing-rules MyRoutingRule
Categorized by Availability, Security & Compliance and Cost