
Skill
connections-json-generation-rules
generate connections.json files for Logic Apps
Description
Rules for generating connections.json files for Logic Apps Standard. Covers serviceProviderConnections format, mandatory reference lookup, FileSystem mountPath rule, and connector parameter constraints.
SKILL.md
Skill: Connections JSON Generation Rules
Purpose: Authoritative rules for generating
connections.jsonfiles. Follow exactly.
1. Mandatory Reference Lookup
BEFORE writing ANY connections.json:
- Call
migration_searchReferenceWorkflowswithcategory="connection"to find the exactconnections.jsonformat for each connector. - Call
migration_readReferenceWorkflowto read the full JSON. - If no results, retry with different wordings.
- Copy the format verbatim — do NOT invent connection structures.
2. Connection Structure
All connections use the serviceProviderConnections format:
{
"serviceProviderConnections": {
"<connectionName>": {
"parameterValues": {
"<param1>": "<value1>",
...
},
"serviceProvider": {
"id": "/serviceProviders/<providerId>"
},
"displayName": "<Display Name>"
}
}
}
3. FileSystem Connection Rules
If the flow uses File System connector:
- The
connections.jsonMUST includemountPathinparameterValues(the ONLY required parameter for runtime). - Do NOT add
connectionStringorrootFolderto the FileSystem connection — they are NOT valid parameters. - Use
@appsetting("FileSystem_mountPath")for the value. - Add
FileSystem_mountPathtolocal.settings.json. - For Azure/cloud execution,
FileSystem_mountPathmust NOT be/home,/home/site, or/home/site/wwwroot; use a dedicated non-overlapping path.
4. Connector Resource Provisioning
For EVERY connector used by the flow:
Local-capable (NO Azure provisioning needed)
- File System — uses local folder path as
mountPath - AzureWebJobsStorage — uses Azurite (
UseDevelopmentStorage=true) - HTTP / Timer triggers — work locally
- SQL Server, Cosmos DB, SFTP, PostgreSQL, MySQL — use Docker containers for local testing
Cloud-only (Azure provisioning required)
- Service Bus — provision namespace + queue/topic
- Event Hubs — provision namespace + hub
- Integration Account — provision with trading partners/agreements if X12/EDIFACT/AS2 is used
After provisioning cloud resources, retrieve the connection string and UPDATE local.settings.json with the real value.
5. Integration Account Rules
If ANY workflow uses X12/EDIFACT/AS2 encode/decode actions:
- Provision and deploy the Integration Account with trading partners and agreements in Azure before any Integration Account artifact upload task.
- Add to
local.settings.json:WORKFLOWS_SUBSCRIPTION_IDWORKFLOWS_TENANT_IDWORKFLOWS_RESOURCE_GROUP_NAMEWORKFLOWS_LOCATION_NAMEWORKFLOWS_MANAGEMENT_BASE_URI
- Retrieve the deployed Integration Account resource ID and add
WORKFLOWS_INTEGRATION_ACCOUNT_IDwith that value. - Retrieve the deployed Integration Account callback URL and add
WORKFLOW_INTEGRATION_ACCOUNT_CALLBACK_URLwith that value. - The provisioning task itself must update
local.settings.jsonwith those real deployed values. - In the NEXT Integration Account artifact task, upload the required schemas/maps/certificates/partners/agreements into the Integration Account.
- CRITICAL — Agreement Schema References: After uploading schemas AND creating agreements, the agreement's
schemaReferencesarray in BOTHreceiveAgreement.protocolSettingsandsendAgreement.protocolSettingsMUST be populated with references to the uploaded message schemas. An agreement with emptyschemaReferences: []will cause EdifactDecode/X12Decode actions to fail at runtime with "UnexpectedSegment" errors. For each message type the flow processes, add an entry like{"messageId": "<messageType>", "schemaVersion": "<version>", "schemaName": "<schemaNameInIA>"}. Use a PATCH or re-PUT of the agreement after schema upload to add these references. - If this flow chooses the Integration Account model, schemas/maps/certificates/partner artifacts for that flow must be uploaded and managed through the Integration Account path consistently.
- Do NOT split the same flow between Integration Account artifacts and local
Artifacts/Schemas//Artifacts/Maps/folders. - Use local
Artifacts/Schemas/andArtifacts/Maps/folders only when the flow does NOT choose the Integration Account model.
More skills from the logicapps-migration-agent repository
View all 12 skillsanalyse-source-design
analyze TIBCO flow architecture
Jul 12ArchitectureAzureCode AnalysisDiagramscloud-deployment-and-testing
deploy and test Azure Logic Apps
Jul 12AzureBicepDeploymentReporting +1conversion-task-plan-rules
generate ordered conversion task plans
Jul 12AzureMigrationOperationsPlanningdependency-and-decompilation-analysis
analyze MuleSoft dependencies and decompiled Java code
Jul 12AzureCode AnalysisJavaMaven +1detect-logical-groups
group MuleSoft integration artifacts
Jul 12ArchitectureAzureMigrationdotnet-local-functions-logic-apps
create .NET local functions for Logic Apps
Jul 12.NETAPI DevelopmentAutomationAzure
More from Azure (Microsoft)
View publisherazure-arg-external-evaluation-policy-author
author and test Azure Resource Graph policies
azure-policy
Jul 12AzureComplianceGovernancePolicyazure-blueprints-migration
migrate Azure Blueprints to Template Specs
azure-blueprints
Jul 12AzureDeploymentInfrastructure as CodeMigrationapiview-feedback-resolution
resolve APIView feedback on Azure SDKs
azure-sdk-tools
Jul 12API DevelopmentAzureCode ReviewDocumentationazsdk-common-live-and-recorded-tests
deploy resources and run Azure SDK tests
azure-sdk-tools
Jul 12AzureDeploymentSDKTestingazsdk-common-prepare-release-plan
manage Azure SDK release plan work items
azure-sdk-tools
Jul 12AzureGitHubProject ManagementSDKazsdk-common-sdk-release
release Azure SDK packages
azure-sdk-tools
Jul 12AzureCI/CDDeploymentSDK