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 / Is there a way to auto...
Power Apps
Answered

Is there a way to automatically reset a sandbox environment?

(0) ShareShare
ReportReport
Posted on by 256

Hello community,

 

Is there a way to schedule an automatic reset of sandbox environments?

We would like to have these environments reset on a monthly basis.

 

Thanks

I have the same question (0)
  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @adedapo,

     

    One way to automate Power Platform related tasks is through Power Automate. For example, you could use the Power Platform for Admins connector to manipulate environments. However, there is no built-in command to reset environments. Instead you could delete the old sandbox environments on a schedule and then create new ones.

    Would that help?

  • adedapo Profile Picture
    256 on at

    Thanks, @joe_hannes_col 
    You have any ideas on our to manage users and pemissions whenever a sandbox is created?

  • Verified answer
    joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @adedapo,

     

    Before answering your last question: there is a PowerShell command to reset sandbox environments.

    However, if you want to keep your users and permissions, I would suggest another approach, because any business units, teams etc. you set up will be removed when you reset the environment.

    Instead, I would suggest to:

    • Create a new environment (e.g. adedapoDev) and configure security as required
    • Next, you would have 2 options:
      1. Use adedapoDev as a template environment that you use to create new environments
      2. Use adedapoDev as your dev environment that you reset every week

    In the case of option 1, you would:

    • Create a manual backup of adedapoDev every time you want to create a new dev environment
    • Use this backup to restore adedapoDev to a new environment, e.g. adedapoDev2
    • If you want, you can then delete adedapoDev2 after one week and repeat the process to create adedapoDev3

    In the case of option 2, you would:

    • Create a manual backup of your environment at the beginning (or end) of each week. This backup will be retained for up to 7 days.
    • Develop and test in adedapoDev
    • Briefly before your backup is deleted, restore the backup into the same environment (adedapoDev), thereby resetting it to the state when the backup was created.

    I think these two approaches would be better than actually resetting the environment. If you want to automate and schedule this process, you could use either PowerShell or DevOps.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard