Using my own ssl certificate with azure cdn

OLADOJA NIYI SAMAD 20 Reputation points
2023-02-15T19:32:53.3666667+00:00

I followed the documentation exactly but keep getting stuck with the error below when attempting to use my own SSL certificate with Azure CDN.

"When using this permission, the backing application of the service principal being created must in the local tenant"

Azure Content Delivery Network
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,261 Reputation points Microsoft Employee
    2023-02-20T05:12:51.4266667+00:00

    Hello @OLADOJA NIYI SAMAD ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you are trying to enable HTTPS on your Azure CDN custom domain using your own SSL certificate but are getting the following error "When using this permission, the backing application of the service principal being created must in the local tenant".

    I've seen this error in below 2 cases:

    1. If Azure CDN and Key Vault are in the different subscriptions.
    2. If the user registering Azure CDN doesn't have Global Administrator permissions in Azure AD.

    User's image

    The Global Administrator permissions requirement is missing in the Azure CDN doc (I will try to get it added) but you can see this requirement in the Azure Front Door doc which uses the same ApplicationId.

    Azure CDN doc: https://video2.skills-academy.com/en-us/azure/cdn/cdn-custom-ssl?toc=%2Fazure%2Ffrontdoor%2FTOC.json&tabs=option-2-enable-https-with-your-own-certificate#register-azure-cdn

    Azure Front Door doc: https://video2.skills-academy.com/en-us/azure/frontdoor/standard-premium/how-to-configure-https-custom-domain?tabs=powershell#register-azure-front-door

    I would request you to make sure that your Azure Key Vault account is under the same subscription as your Azure CDN profile & CDN endpoints that you want to enable custom HTTPS on. And when trying to register the Azure CDN as an app in your Azure Active Directory via PowerShell, make sure that you have Global Administrator permissions in Azure AD.

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments