Environments are a feature of Power Apps that allow you to store, manage, and share your business data, apps, and flows. Environments can help you separate your apps based on their roles, security requirements, or target audiences. For example, you can create different environments for testing and production, or for different teams or regions in your organization.
There are five types of environments in Power Apps: default, developer, production, sandbox, and trial. The default environment is automatically created for each tenant and is shared by all users. The developer environment is for individual use and has limited capacity and functionality. The production environment is for deploying and running your apps for end users. The sandbox environment is for testing and development purposes and can be reset at any time. The trial environment is for exploring the features of Power Apps for a limited time.
To create an environment, you need a license that allows environment creation and enough database storage capacity in your tenant. You also need to have the Environment Admin or Environment Maker role in the Power Platform admin center. You can create an environment with or without a database, depending on your needs and license type. You can also move resources between environments or delete environments that you no longer need.
Reasons to use environments
Reasons to create environments beyond the default one include:
Separate app development by department - In a large organization, each department can work in a different environment. That way, department employees see only apps and company data that are appropriate to their needs.
Support application lifecycle management (ALM) - Separate environments let you separate apps that are in development stages from ones that have already been shared. Alternatively, you might want to use a trial environment so that you can receive feedback from employees before publishing the final app. For some organizations, showing apps before they're completely developed and published can present security concerns.
Manage data access - Each environment can have its own source of business data, called a database for Microsoft Dataverse. Other data connections are specific to an environment and can't be shared across environments.
Per Microsoft Documentation
Create an environment
Only an admin can create environments. If you aren't an admin, this information can still be helpful when you talk to your admin about setting up environments.
- On the make.powerapps.com home page, select the gear icon near the upper-right corner and then select Admin center.
You can also go directly to https://admin.powerplatform.microsoft.com
In Microsoft Power Platform admin center, select + New.
In the New environment dialog box, enter a name for the environment and then select a region and an environment type.
To the left of Create a database for this environment, select the toggle to Yes.
Select Next.
Select the currency and language for the data that is stored in the database. You can't change the currency or language after the database is created.
Select Save.
It might take several minutes to create the database on Dataverse. After the database is created, the new environment appears in the list of environments on the Environments page.
You now have a new environment to work in. If you go back to make.powerapps.com, you'll see it in the environments list.
Manage access to an environment.
By default, you can access an environment in one of two ways:
System admin - A system admin has full permissions to create and manage environments.
Environment maker - An environment maker can view all apps in that environment, create apps, and work with Dataverse (other permissions apply).
Environment admins can create other security roles as needed. They can also add and assign users to these roles.
Start by going to https://admin.powerplatform.microsoft.com
On the left pane, Environments should be selected by default, if it isn't, select Environments.
Select the test environment that you created, and then select Settings at the top.
Select the Users + permissions dropdown and select Users.
Select Add user at the top and add the user by entering the email address of the user in your organization and then selecting Add. Wait a few minutes for the user to be added.
To manage the roles and information of a user, select the user’s Name. A new tab opens with the Dynamics 365 view of that user.
Select Manage Roles on the top bar.
In the Manage User Roles box, select the role(s) for the user. In this example, assign the user to the Environment Maker role.
Select OK.
The changes are then saved, so you can close the Dynamics 365 tab in your browser when done.
Congratulations. I can say that set up environments so that you can separate a working environment from the one that you want to share with your team will help you to learn, test, and create a minimum viable product. In conclusion, environments can be shared with specific users, allowing you to manage who can access certain data.
Top comments (0)