Hi everyone,
I'm working on automating the deployment of Power Platform solutions (mainly Power Automate and Power Apps) from DEV to PREPROD, and eventually to PROD, using Azure DevOps pipelines.
I'm facing an issue that occurs only when I add Connection References to the solution.json schema. If I skip them, environment variables migrate correctly. But once I include Connection References, the deployment fails.
Here’s a sample of the references I’m using
{
"EnvironmentVariables": [
{
"SchemaName": "demo_FeedbackPhotos",
"Value": "Photos"
},
{
"SchemaName": "demo_ToolConfig",
"Value": "Config"
},
{
"SchemaName": "demo_Users",
"Value": "UserList"
}
],
"ConnectionReferences": [
{
"LogicalName": "demo_OutlookGeneric",
"ConnectionId": "conn-001",
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_office365"
},
{
"LogicalName": "demo_ExcelConnector",
"ConnectionId": "conn-002",
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_excelonlinebusiness"
},
{
"LogicalName": "demo_OutlookUser",
"ConnectionId": "conn-003",
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_office365"
},
{
"LogicalName": "demo_SharePointConnector",
"ConnectionId": "conn-004",
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
}
]
}
I have a few questions:
- Is it possible to change the connection account between environments? For example, using my personal account in DEV, but a generic account (e.g., coaching@company.com) in PREPROD/PROD?
- How can I ensure that flows are automatically enabled in PROD after migration, but remain disabled in DEV and PREPROD?
- Has anyone encountered errors when adding Connection References to the schema and knows how to fix them?