Bilješka
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati da se prijavite ili promijenite direktorije.
Pristup ovoj stranici zahtijeva provjeru vjerodostojnosti. Možete pokušati promijeniti direktorije.
Summary
Microsoft Azure Front Door (Standard and Premium) is a modern global load balancer and application delivery network that supports custom TLS certificates through Azure Key Vault. This article discusses how to use an Azure App Service Certificate securely together with Microsoft Azure Front Door by using managed identities and Bring Your Own Certificate (BYOC) support. This integration enables you to deliver encrypted traffic that has automatic renewal, enterprise-grade performance, and global scale.
Overview
Azure App Service Certificates provide a simple, integrated way to purchase, provision, and manage SSL/TLS certificates. These certificates are issued by trusted Certificate Authorities (such as DigiCert) and work together with App Services. They can also be extended to secure traffic that's routed through Azure Front Door.
To purchase a certificate, see Buy and configure an App Service Certificate.
Important
After you purchase a certificate, you must manually complete the Store step in the Certificate Configuration blade to import the certificate into Azure Key Vault. This step is required before the certificate can be used together with other Azure services.
Step 1: Enable managed identity on Azure Front Door
A managed identity enables Azure Front Door to securely retrieve the certificate from Azure Key Vault:
- Navigate to your Azure Front Door profile.
- Under Security, select Identity, and then enable a managed identity:
- System-assigned (Recommended): Tied to the Front Door lifecycle
- User-assigned (Optional): For reuse across multiple services
- Select Save.
For more information, see Use managed identities to access Azure Key Vault certificates.
Step 2: Configure Key Vault access for Front Door
Grant permission to Azure Front Door to access the certificate by using one of the following methods:
Method A: Azure RBAC (recommended)
Open Key Vault > Access control (IAM) > + Add > Add role assignment.
Assign the Key Vault Secrets User role.
Select Managed identity, then select the system-assigned identity of Azure Front Door.
Select Review + assign.
az role assignment create \ --assignee-object-id <frontdoor-identity-object-id> \ --role "Key Vault Secrets User" \ --scope "/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.KeyVault/vaults/<vault-name>"
To retrieve the identity object ID:
az front-door show \
--name <frontdoor-name> \
--resource-group <rg> \
--query identity.principalId -o tsv
Note
Ensure that the Key Vault firewall allows trusted services or specific Front Door IP ranges.
Method B: Key Vault access policy
- Navigate to your key vault > Access policies.
- Select + Add Access Policy.
- Grant Get and List permissions for Secrets and Certificates.
- Assign the policy to the managed identity for Azure Front Door.
- Save the access policy.
Note
This method is suitable for legacy scenarios or if RBAC isn't enabled.
Step 3: Add certificate as a secret in Azure Front Door
Before you do this step, ensure that the App Service Certificate is successfully stored in Azure Key Vault through the App Service Certificate blade. For more information, see Buy and configure an App Service Certificate.
To add the certificate:
- Go to your Azure Front Door (Standard/Premium) profile.
- Under Security, select Secrets > + Add.
- Select your key vault, and then select the stored App Service Certificate.
- Select the version. (Use
Latestto enable automatic certificate rotation.) - Select Add.
Note
Azure Front Door supports automatic certificate renewal when you reference the Latest version. Updates in Key Vault are reflected in Front Door within 72 hours. For more information, see Renew customer-managed TLS certificates.
Important
Certificates must be stored in a Key Vault within the same subscription and must include a complete certificate chain that uses supported algorithms. For more information, see Use your own certificate with Azure Front Door.
Step 4: Configure a custom domain with BYOC
- In your Front Door profile, go to Domains > + Add.
- Enter the domain details:
- Custom domain: for example,
www.contoso.com - DNS zone: Choose Azure DNS, if applicable.
- DNS management: Azure-managed (recommended) or external
- Custom domain: for example,
- Verify domain ownership:
- Use TXT record if you use custom DNS provider
- Under HTTPS Configuration:
- Certificate type:
Bring Your Own Certificate (BYOC) - Secret: Select the secret that you added in Step 3 (for example,
certname-latest). - TLS policy: Select a supported policy (for example,
TLS 1.2_2023)
- Certificate type:
- Select Add to finish the setup.
After verification is complete, Front Door serves traffic securely by using the certificate from Azure Key Vault. For more information, see Add a custom domain in Azure Front Door.
Summary
| Task | Tool | Notes |
|---|---|---|
| Enable identity | Azure portal or CLI | System-assigned identity is recommended |
| Grant access | IAM Role or Access Policy | Use Key Vault Secrets User or equivalent |
| Add secret | Azure portal | Reference -latest to enable autorotation |
| Bind domain | Azure portal | Validate domain and configure HTTPS |