Skip Navigation

Front Door Standard/Premium with domain and certificate

Last updated: 3/3/2022

This template creates a Front Door Standard/Premium including a custom domain and customer-managed certificate.

This Azure Resource Manager template was created by a member of the community and not by Microsoft. Each Resource Manager template is licensed to you under a license agreement by its owner, not Microsoft. Microsoft is not responsible for Resource Manager templates provided and licensed by community members and does not screen for security, compatibility, or performance. Community Resource Manager templates are not supported under any Microsoft support program or service, and are made available AS IS without warranty of any kind.

Parameters

Parameter Name Description
endpointName The name of the Front Door endpoint to create. This must be globally unique.
skuName The name of the SKU to use when creating the Front Door profile.
originHostName The host name that should be used when connecting from Front Door to the origin.
customDomainName The custom domain name to associate with your Front Door endpoint.
certificateKeyVaultResourceGroupName The name of the resource group that contains the key vault with custom domain's certificate.
certificateKeyVaultName The name of the Key Vault that contains the custom domain's certificate.
certificateKeyVaultSecretName The name of the Key Vault secret that contains the custom domain's certificate.
certificateKeyVaultSecretVersion The version of the Key Vault secret that contains the custom domain's certificate. Set the value to an empty string to use the latest version.

Use the template

PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.cdn/front-door-standard-premium-custom-domain-customer-certificate/azuredeploy.json
Install and configure Azure PowerShell

Command line

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.cdn/front-door-standard-premium-custom-domain-customer-certificate/azuredeploy.json
Install and Configure the Azure Cross-Platform Command-Line Interface