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

Notifications

Announcements

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,422 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard