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
Dual Super User

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?

 

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
Dual Super User
Dual 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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,634)