web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / A custom domain to pow...
Power Apps
Unanswered

A custom domain to power pages/portal through code

(1) ShareShare
ReportReport
Posted on by 14

I'm hoping I've just overlooked an API or command in the Power Portal CLI, but I've not been able to find a means through code (C#, PowerShell, etc.) to apply a custom domain and/or SSL certificate to a Power Pages/Portal app.  Is anyone aware if such a thing exists?

I have the same question (0)
  • TxTechnician Profile Picture
    98 on at

    Power pages has the option to set a custom domain.  When you first setup the environment it asks for a domain name, and there was an option to add a custom one (been like two months since I tried it out)  As for the SSL I think it is handled automatically by microsoft, unless you need a custom one for some reason. 

     

    Power Pages is new, and I only have a bit of experience with it.  I mostly wanted to tell you to post this question in the Power Pages forum:  https://powerusers.microsoft.com/t5/General-Discussions/bd-p/mpp_general_discussions

  • TxTechnician Profile Picture
    98 on at

    TxTechnician_0-1666042768694.png

     

    According to MS it's in settings :).  Sometimes they lie.

  • EricCahoon Profile Picture
    14 on at

    Thank you, I'm aware it's possible to add a custom domain, plus configure a custom SSL certificate, through the UI.  I am specifically interested in determining if it's possible to do this programmatically.  I had hoped the Power Platform API or Power Platform CLI would expose a mechanism for this, but I've not been able to identify a set of calls to make this happen.  Hopefully, someone on this forum will come across this post and point to documentation or a blog that walks through how to accomplish this through code.

  • TxTechnician Profile Picture
    98 on at

    I'm looking for the same thing. 

     

    Microsoft documentation is all over the board.  It's like finding a needle in a haystack sometimes.  And often times APIs interact with the same Microsoft product.  Which adds to the confusion.  Case in point, I setup Microsoft Graph API Authentication.  Then tried to use a SharePoint API to interact with a list.  Only to realize I was using the wrong API.  I was supposed to be using the MS Graph for SharePoint.  🙂

     

    Anyways.  Here is a good place to start your search.  For every Microsoft product there is usually a Power Shell module. 

     

    Here is the one for Power Apps administration:  https://www.powershellgallery.com/packages/Microsoft.PowerApps.Administration.PowerShell/2.0.154

    Here's the docs for that:  https://learn.microsoft.com/en-us/power-platform/admin/powerapps-powershell

     

    I don't see one specific to Power Pages yet.

     

    I'm sure you've already found this.  Here's the docs for Power Pages:  https://learn.microsoft.com/en-us/power-apps/maker/portals/admin/admin-overview

     

    Here is the location they are moving the Power Pages Docs to (eventually):  https://learn.microsoft.com/en-us/power-pages/introduction

     

    The Graph API Docs:  https://learn.microsoft.com/en-us/graph/

    I don't know if there is any power platform admin functions you can do with graph.  But its a good thing to learn. 

     

     

     

     

  • Bryan Tuttle Profile Picture
    12 on at
    • Has anyone found the answer to the posters question of programmatically uploading or replacing the SSL Cert to Power Pages or Portal via any method? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard