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 / Automate converting en...
Power Apps
Unanswered

Automate converting environment from Sandbox to Production

(0) ShareShare
ReportReport
Posted on by 3

Summary: Is there any PowerShell cmdlet or some other connector that handle converting an environment type, e.g. from sandbox to production? I know how to do it manually, but I would like to include this step in an automated pipeline instead.

 

Details:

I want to automate copying a test environment to a production environment. The copying step can be handled by the Copy-PowerAppEnvironment cmdlet in the Microsoft.PowerApps.Administration.PowerShell module. However, copying over an environment requires that environment to have a type of "Sandbox", and then it must be converted back to "Production" after that copy is complete.

 

I cannot find any PowerShell cmdlets or flow connectors that change the type of the environment, so I am wondering if there is another way to build this task into automation, e.g. an Azure DevOps pipeline.

I have the same question (0)
  • HamidBee Profile Picture
    932 Super User 2024 Season 1 on at

     

  • ChrisPiasecki Profile Picture
    6,428 Most Valuable Professional on at

    @HamidBee, there is no Update-PowerAppEnvironment command in the module. Also, it's pretty obvious that you are just copy pasting questions and responses from ChatGPT in the forums. Many of the answers are incorrect, so I suggest for you to not do it if you can't even self-verify the accuracy of the information.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard