Provision and Activate a Flow
A 5-step recipe with Microsoft Power Automate. We can help you get access.
Recipe · 5 steps
Provision and Activate a Flow
Create a cloud flow, activate it, and verify it is running.
- List accessible environments to confirm the caller can provision into the target environment before creating anything.
- List the connections in the environment so the connection references the new flow declares can be checked against what actually exists. Provisioning a flow against a missing connection is the most common cause of a flow that is created but
- Create the flow in a Stopped state so the definition can be provisioned without the trigger firing before activation is intended.
- Activate the newly created flow so its trigger begins listening.
- Read the flow back and confirm it reports the Started state, proving the provision-and-activate sequence completed rather than assuming it did.
What you'll need to have ready
- environmentName: The name of the environment to create the flow in.
- displayName: The display name for the new flow (e.g. "Daily Report Automation").
- definition: The workflow definition of the flow, containing its triggers and actions.
- connectionReferences: The map of connection references the new flow needs, keyed by connection reference logical name.
For your developer
Arazzo workflow microsoft-power-automate:provision-flow, 5 operations: listEnvironments → listConnections → createFlow → turnOnFlow → getFlow. Specs on APIs.io.