When trying to set up a Microsoft 365 sandbox domain myself I found some of the documentation out of date, so this is a quick guide to setting up a sandbox domain for Microsoft 365 development.
Why would you want to do this?â
I personally needed this for recording a screencast of the process to install Corso. While recording myself going through permission settings in M365, I didnât want to unintentionally reveal PII for my team members or other sensitive data.
Another reason to do this is if youâre looking to level up both your skills and want to experiment with being the admin in your own space rather than impacting other users on a production domain. Itâs also a good step to experiment with owning your own identity.
Finally, this might also be useful if you are developing an M365 app. This way, programmatic updates to your domain canât accidentally destroy anything important.
1) Join the Microsoft 365 developer programâ
To get access to the free hosting required for your sandbox domain, youâll need to join the M365 Developer Program. This process is quite straightforward and fairly foolproof.
Note that when you go to set this up the first time, you may find that your Microsoft Account isnât fully set up. For example on my account I didnât have a full name set on my profile. Youâll be prompted to add this info if needed
Youâll also be asked for the following info:
- Contact Email
- Country/Region
- Company
As far as I know, no answers to these questions will disqualify you, but let me know if any answers kick you out of the process!
Notably, one piece of extant documentation implies you need a Visual Studio subscription to join the Developer Program, but, currently, it looks like anyone with a Microsoft account, even just a personal account, can get access.
2) Create an instant sandboxâ
After joining the developer program and signing in to the developer dashboard, youâll be prompted to set up a sandbox
While you can configure a custom sandbox domain to control the exact components installed, for the use cases mentioned above an instant sandbox will work just fine.
The pre-made sandbox also comes pre-populated with data like user accounts. Of note, you can decide during setup if you want to set all the passwords for these accounts to be the same as the admin.
Your sandbox comes pre-populated with user accounts
3) Limitations of the sandboxâ
Notably, by default, there wonât be the following data in your sandbox:
- Emails
- Teams chat history
- Calendar events
Your sandbox also includes a free Microsoft 365 E5 developer sandbox subscription with 25 user licenses, and thatâs awesome, but it doesnât work like a production instance.
Remember that you want to set up your sandbox when youâre ready to use it. The data is persistent but itâs wiped after 90 days.
Also, you canât just do whatever you want with this instance, itâs for development and testing purposes only. Commercial transactions, including purchasing paid services, aren't supported.
4) Next stepsâ
To learn more about populating your domain with dummy data, see developer sandbox demo data to create users, email, calendar events, and other dummy data for testing.
And if you want one more thing to try out with a sandbox domain, check out Corso, a free and open-source backup tool. The sandbox is a great place to try it out!