Announcements
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?
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
According to MS it's in settings :). Sometimes they lie.
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.
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.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 529 Most Valuable Professional
Haque 230
Kalathiya 217 Super User 2026 Season 1