cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MGBYannick
New Member

Create Enviroment trough API

Hello Guys

Does anybody know if there is a possible way to create new Environments through API such as Graph?

We are trying to automate our PowerPlattform Board, so that users could order there own environments.

 

thanks & kind regards

Yannick

5 REPLIES 5
Pstork1
Dual Super User III
Dual Super User III

I'm not aware of an API to create environments, but there is a PowerShell cmdlet that can be used to programmatically create environments.  I've used this kind of PowerShell in the past by creating a list in SharePoint to store requests, adding an approval process, and then have the PowerShell scheduled to run nightly to create any approved requests.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
MGBYannick
New Member

Hi Pstork1
What cmdlet have used for that? What Module did you install?

 

Pstork1
Dual Super User III
Dual Super User III

Sorry, I meant to add a link to the documentation for that command.

New-AdminPowerAppEnvironment (Microsoft.PowerApps.Administration.PowerShell) | Microsoft Docs

A link to the module needed is at the top of the documentation.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Expiscornovus
Super User
Super User

Hi @MGBYannick,

 

Sorry to bud into the conversation.

 

In addition to @Pstork1 his suggestion there is a Power Platform for Admins connector. That connector has a create environment action:

https://docs.microsoft.com/en-us/connectors/powerplatformforadmins/#create-environment

 

createenvironment.png

I thought there was a Create Environment action in the Power Platform Admins.  But I couldn't find it when I went looking for it.  So good catch.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,089)