How to set up Custom Url for PowerApps Portal/ Dynamics 365 Portal

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com

So I am back with another blog on PowerApps portal and this time I going to discuss on how you can set-up custom URL’s for your PowerApps portal.

So this blog is about custom URL for your portal. And when we talk about changing the URL of a portal, there are basically two things that can happen.

  • Change the base URL of portal
  • Set custom domain for the portal

So let’s explore both the options.

Change base url of the portal

Well this one is quite easy to do. But before we go ahead and do it, let’s understand what does changing the base URL mean.

If we take a portal url for example – https://myportal.powerappsportal.com, we have the following components in the URL.

myportal – subdomain
powerappsportal – domain

Change base URL option is a way to change the subdomain of the portal. For that navigate to Power Portal admin center and from the portal actions, select “Change base URL

Change base URL for portal

Once you click on the URL, you get the below screen.

Set up custom url of portal

As you can see in the above screenshot, there is provision to change the subdomain. This is particularly useful if you have misspelled the subdomain name or you set up a trial portal and now you need to change subdomain name once you have upgraded the same portal to production.

Once you click on Change URL, the portal will restart and the old portal URL would no longer be accessible.

Set-up custom domain name for portal

This one is way more complex than changing the base URL. It’s basically changing the domain – powerappsportals.com to some custom domain, for example – contoso.com.

But why it may be required? The first answer that come to mind is custom branding for the portal.

For example, Contoso electrical have deployed a customer portal. By default the URL is with powerappsportal domain. But they want it in contoso.com domain. For example they want the following portal url – https://support.contoso.com. It is a no-brainer that customers of contoso would be more comfortable browsing support.contoso.com instead of support.powerappsportal.com

So let’s see how we can do it. To accomplish this, we need to navigate to Power Portal admin center and then from portal actions, select – “Add a custom domain name“.

Before I go ahead and explain the next steps, it is important to note that this options is only available to portals of type production. If you are having a trial portal, you will not find this option in the Portal actions menu in PowerApps portal admin center.

  • On the Choose a SSL certificate page, you will have to choose one of the two options.
    • Upload a new certificate: This is a mandatory step in case this is the first time you are uploading a certificate. You need to select the .pfx using the upload button. After selecting the file, enter the password for your SSL certificate in the Password field.
    • Use an existing certificate: Choose from one of the certificates you have chosen earlier.
  • Click on Next.
  • On the Choose a host name page, select one of the following options:
    • Add a new host name: Select this option to create a new custom domain. Enter the domain name you want in the Domain Name field.
    • Use an existing host name: You can choose a host name from an existing certificate you already uploaded. A portal can have only one custom domain name. Each host name correspond to CNAME of the certificate uploaded.
  • Select Next to begin creating the SSL Binding. You should receive a success message if everything is alright.
  • Select Finish to close the wizard.

There are few important considerations for a SSL certificate you upload in the portal. Below is the guide in Microsoft’s own terms.

The SSL certificate must meet all the following requirements:

  • Signed by a trusted certificate authority.
  • Exported as a password-protected PFX file.
  • Contains private key at least 2048 bits long.
  • Contains all intermediate certificates in the certificate chain.
  • Must be SHA2 enabled; SHA1 support is being removed from popular browsers.
  • PFX file must be encrypted with TripleDES encryption. Power Apps portals doesn’t support AES-256 encryption.

That completes the configuration of both the scenarios. You are now all set to start browsing your portal with custom domain name.

You will also like the below posts

Hope this helps!
Debajit Dutta
(Business Solutions MVP)


Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading