Add Custom Domain to EUM V6 or V7

|
Published

By default, EUM Admin and EUM Portal URLs are structured like: https://appservicename.azurewebsites.net, where appservicename is the name of the EUM App Service hosted in Azure.

Adding a custom domain would change the URL to a more friendly one, something like: https://portal.mydomain.com, where portal.mydomain.com is a custom domain for the EUM Portal.

If Envision IT is hosting your EUM websites, we will work with you to have the custom domains added. However, if you are hosting the EUM websites, then follow the below process to add a custom domain to EUM V6 or V7.

  1. Get the CNAME and TXT Value for the Custom Domain
  2. Make DNS Entries with the CNAME and TXT Values Obtained
  3. Add the Custom Domain to the EUM Admin and/or EUM Portal App Services
  4. Generate Free Azure SSL or Import Your SSL Certificate in PFX Format
  5. Bind SSL to the Custom Domain
  6. Change Configurations in the EUM App Registrations within Azure AD and EUM Config SharePoint Site

Get the CNAME and TXT Value for the Custom Domain

  1. In the App Service left-hand menu, click Custom Domains. This will open the Custom Domains tab.
  2. In the Custom Domains tab, click + Add custom domain. This will open a details tab.
    custom_domain_1.JPG
  3. In the details tab:
    1. For Domain Provider, select "All other domain services" if you are not purchasing the domain from Azure.
    2. For TLS/SSL certificate, select "App Service Managed Certificate" to make use of the free SSL Certificate that Azure provides for you. This is recommended as it eliminates the work of uploading a new certificate upon expiry of the current one. If you want to make use of a wildcard SSL certificate instead, select "Add certificate later".
    3. For TLS/SSL type, select "SNI SSL".
    4. For Domain, put in the custom domain without https at the beginning.
    5. For Hostname record type, select "CNAME".
    6. At this point, Azure will display the CNAME and TXT Values. Keep a note of these.
    7. Select Validate.
      custom domain 1.2.JPG

Make DNS Entries with the CNAME and TXT Values Obtained

  1. Add the CNAME and TXT values obtained in the earlier steps to your DNS.

Add the Custom Domain to the EUM Admin and/or EUM Portal App Services

  1. In the App Service left-hand menu, click Custom Domains. This will open the Custom Domains tab.
  2. In the Custom Domains tab, click + Add custom domain. This will open a details tab.
  3. In the details tab:
    1. For Domain Provider, select "All other domain services" if you are not purchasing the domain from Azure.
    2. For TLS/SSL certificate, select "App Service Managed Certificate" to make use of the free SSL Certificate that Azure provides for you. This is recommended as it eliminates the work of uploading a new certificate upon expiry of the current one. If you want to make use of a wildcard SSL certificate instead, select "Add certificate later".
    3. For TLS/SSL type, select "SNI SSL".
    4. For Domain, put in the custom domain without https at the beginning.
    5. For Hostname record type, select "CNAME".
    6. At this point, Azure will display the CNAME and TXT Values.
    7. Select Validate.
      custom domain 1.2.JPG
  4. Because the DNS entries are already made, the validation will pass and the Add custom domain button will be enabled. Click Add custom domain.

  5. custom_domain_3.JPG
  6. If you selected App Service Managed Certificate, then at this point the certificate will be generated and the binding is done. The process may take some time. To check the progress, you can click the bell icon in the top right of the browser.
    custom domain 1.3.JPG

Generate Free Azure SSL or Import Your SSL Certificate in PFX Format (Optional)

Normally, if an Azure App Service Managed Certificate is selected as an option while adding the Custom Domain, this step is done automatically by Azure. Or if you want to make use of a wildcard SSL certificate instead of an Azure App Service Managed Certificate, select "Add certificate later" when adding the Custom Domain. For both of these scenarios, you can follow the steps below, otherwise they can be ignored.

Azure provides free SSL Certificate for Azure App Services. To make use of that, follow the related FAQ at the bottom of the page.

Alternatively, if you already have an SSL in .pfx format, you can import it to the EUM Portal and/or EUM Admin App Services.

  1. In the App Service, go to the TLS/SSL Settings from the left-hand menu. It could also be displayed as "Certificates" instead of TLS/SSL settings.
    TLS_SSL_Settings.png
  2. Go to the Bring your own certificates (.pfx) tab and click Add Certificate.
    Import_Pfx.JPG
  3. Browse to the certificate and upload it.
    Import_Pfx_2.JPG

Bind SSL to the Custom Domain (Optional)

If you want to make use of a wildcard SSL certificate instead of an Azure App Service Managed one, and you selected "Add certificate later" while adding the Custom Domain, follow this step. Otherwise, the following steps can be ignored.

  1. Go back to the Custom Domains page and click Add binding for the custom domain.
    custom_domain_4.JPG
  2. Select the SSL certificate from the dropdown in the dialog box, and click Add Binding.
    custom_domain_6.JPG
  3. Notice that the custom domain now shows Secured and the App Service URL in the Overview tab changes to the custom domain.
    custom_domain_7.JPG

Change Configurations in the EUM App Registrations within Azure AD and EUM Config SharePoint Site

In order for the Azure AD login to EUM Admin to work properly, the new custom domain and SSL routing needs to be added to the EUM Admin App Registration.

  1. Go to Azure Active Directory in the Azure portal.
  2. Go to App registrations.
  3. Search and select the xxx_EUM_Admin App registration just created, where xxx is the App Service name EUM was installed.
  4. Go to Authentication.
  5. Select Add URI and add the new App Service URL as the URI.
  6. Save the App Registration.

The Admin and Portal URLs are stored in the Suite Config list in the EUM SharePoint site collection. These should be updated to reflect the new URLs. Once updated, the App Services for both Admin and Portal should be restarted in the Azure portal.

Related Microsoft Documents

Map Existing Custom DNS Name

Add and Manage TLS/SSL Certificates