create_workflow
Creates an Azure Logic Apps workflow. For Consumption SKU, provisions a new Logic App resource; for Standard SKU, adds a workflow to an existing app using a definition JSON.
Instructions
Create a new workflow. For Consumption SKU, creates a new Logic App resource. For Standard SKU, creates a new workflow within an existing Logic App. Requires a valid workflow definition JSON that follows the Logic Apps schema. IMPORTANT: When adding connector actions (e.g., SQL, Service Bus, MSN Weather), use get_connector_swagger first to discover the correct action paths and schemas. For Consumption SKU with connector actions, use the 'connections' parameter to wire up API connections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriptionId | Yes | Azure subscription ID | |
| resourceGroupName | Yes | Resource group name | |
| logicAppName | Yes | Logic App resource name (for Consumption, this becomes the new Logic App name) | |
| definition | Yes | The workflow definition JSON following the Logic Apps schema | |
| location | No | Azure region (required for Consumption SKU, e.g., 'westus2', 'eastus') | |
| workflowName | No | Workflow name (required for Standard SKU) | |
| kind | No | Workflow kind for Standard SKU (default: 'Stateful') | |
| connections | No | API connection references for Consumption SKU. Object mapping connection names used in the definition to their connection details. Example: {"office365": {"connectionName": "office365-test", "id": "/subscriptions/.../providers/Microsoft.Web/locations/.../managedApis/office365"}} |