Choosing an environment
Microsoft Flow is now Power Automate. For more information, see this blog.
This content will be updated to reflect the branding change in the coming days.
This article introduces you to Power Automate environments in which you can create, and securely isolate your flows, gateways, connections, and other resources.
You'll learn about:
- The features that environments provide.
- Switching between environments.
- How to create a flow in the right environment.
When you create a flow, you choose an environment to host the flow and the resources the flow uses. You can use separate environments for different scenarios.
Here are a few scenarios for using environments
|You want to create a flow that uses a connection to the Microsoft Common Data Service.||Place your flow and the Common Data Service into the same environment. This ensures all the data is isolated within that environment (isolation boundary).|
|You're creating a flow for your Human Resources department. You want to ensure that only users in your Human Resources department have access to the flow.||Create an environment and add only the HR users to it. Place the flow and any other resources the flow uses into this environment.|
|There are users in Europe who use a flow to show SharePoint data.||Create an environment in Europe, and then create your flow and the SharePoint connection in it. This Europe environment gives the European users the best performance, since all resources are local to Europe (data locality).|
To create environments, you must be a Power Automate administrator. Administrators control who has access to environments. For details on how you can create and manage environments, see the administer environments topic.
Power Automate makes it easy to switch between environments. When you switch environments, you see only items that are created in that specific environment; you won't see or have access to items in any other environment.
Here's an example.
You’ve created a flow named NewEmployee in the Human Resources environment. In Power Automate, you open the Sales environment. The NewEmployee flow isn’t listed. To see the NewEmployee flow, open the Human Resources environment. Remember, the same rules apply to any other items you created in the environment, including connections, gateways, flows, and more.
Follow these steps to switch environments:
Sign into Power Automate.
In the top right corner, you see an image that represents your profile.
Select the image. A drop-down list displays all the environments available to you. The environment in which you're currently signed in is checked:
To switch to another environment, select that environment in the list:
Power Automate switches to the new environment.
Create flows in the right environment
Before you create a flow, select the environment into which you'll add the flow and its resources.
If you create a flow in the wrong environment, you'll have to delete it, and then create it in the correct environment.
Consider the following factors when choosing an environment to host your flows:
- You can only create gateways in the default environment. So, if you want to use a gateway to connect your flow to on-premises data, you'll need to use the default environment.
- Microsoft Common Data Service databases are tied to a specific environment. So, if you want to create a flow that uses the Common Data Service, you must create the flow in the environment that hosts the database.
- You'll see all environments in which you can edit resources. However, you'll need to ask an administrator to add you as a maker to all environments in which you want to create flows.
You'll always be able to create flows in the default environment.