Skip to content

Files

Latest commit

45e3da2 · May 13, 2022

History

History
79 lines (51 loc) · 3.89 KB

custom-domains-certificates.md

File metadata and controls

79 lines (51 loc) · 3.89 KB
title description services author ms.service ms.topic ms.date ms.author
Custom domain names and certificates in Azure Container Apps
Learn to manage custom domain names and certificates in Azure Container Apps
container-apps
craigshoemaker
container-apps
how-to
05/15/2022
cshoe

Custom domain names and certificates in Azure Container Apps

Azure Container Apps allows you to bind one or more custom domains to a container app.

  • Every domain name must be associated with a domain certificate.
  • Certificates are applied to the container app environment and are bound to individual container apps. You must have role-based access to the environment to add certificates.
  • SNI domain certificates are required.

Add a custom domain and certificate

Note

If you are using a new certificate, you must have an existing SNI domain certificate file available to upload to Azure.

  1. Navigate to your container app in the Azure portal

  2. Under the Settings section, select Custom domains.

  3. Select the Add custom domain button.

  4. In the Add custom domain window, enter the following values for the Enter domain tab:

    Setting Value Notes
    Domain Enter your domain name. Make sure the value is just the domain without the protocol. For instance, example.com, or www.example.com.
    Hostname record type Verify the default value. The value selected automatically is Azure's best guess based on the form of the domain name you entered. For an apex domain, the value should be an A record, for a subdomain the value should be CNAME.
  5. Next, you need to add the DNS records shown on this window to your domain via your domain provider's website. Open a new browser window to add the DNS records and return here once you're finished.

  6. Once the required DNS records are created on your domain provider's account, select the Validate button.

  7. Once validation succeeds, select the Next button.

  8. On the Bind certificate + add tab, enter the following values:

    Setting Value Notes
    Certificate Select an existing certificate from the list, or select the Create new link. If you create a new certificate, a window appears that allows you to select a certificate file from your local machine. Once you select a certificate file, you're prompted to add the certificate password.

    Once you select a certificate, the binding operation may take up to a minute to complete.

Once the add operation is complete, you see your domain name in the list of custom domains.

Managing certificates

You can manage certificates via the Container Apps environment or through an individual container app.

Environment

The Certificates window of the Container Apps environment presents a table of all the certificates associated with the environment.

You can manage your certificates through the following actions:

Action Description
Add Select the Add certificate link to add a new certificate.
Delete Select the trash can icon to remove a certificate.
Renew The Health status field of the table indicates that a certificate is expiring soon within 60 days of the expiration date. To renew a certificate, select the Renew certificate link to upload a new certificate.

Container app

The Custom domains window of the container app presents a list of custom domains associated with the container app.

You can manage your certificates for an individual domain name by selecting the ellipsis (...) button, which opens the certificate binding window. From the following window, you can select a certificate to bind to the selected domain name.

Next steps

[!div class="nextstepaction"] Authentication in Azure Container Apps