Tag not monitored by Microsoft.
Hey! This sounds very similar to a Fabric deployment pipelines behavior called autobinding / dependency connection handling: even if the pipeline shows the connection changed during deployment, when the pipeline runs in Production, the Script activity can still effectively resolve a connection reference that points back to DEV (because the binding/reference wasn’t updated the way you expected).
Why this can happen in Fabric deployment pipelines
In Fabric deployment pipelines, when items are connected, the deployment pipeline tries to maintain the connection by autobinding across stages/workspaces. If the system can’t or shouldn’t rewrite the connection to the target stage/workspace the way you want, it may keep the original wiring, which can make it look like it “deployed correctly” but runtime behavior still uses the DEV-linked dependency.
Also, Fabric deployment pipelines don’t let you freely change data source connections in-place—for certain items, changing the data source requires deployment rules or APIs, and changes only take effect after the next deployment.
What you can do to fix it (no manual post-deploy steps)
Based on the documented guidance, the most reliable approach is usually:Option 1: Use Variable Libraries for environment-specific connection values
There’s a known workaround/case where pipelines didn’t automatically update workspace IDs/connections/references across DEV → PROD, and the fix was to:
- Centralize environment-specific values (for example: connection names, workspace IDs, etc.) in a Variable Library
- Deploy the Variable Library along with your pipeline
- Activate the correct value set in the target (PROD) workspace
- Ensure the pipeline/SCRIPT activity uses the variable-driven values so runtime always resolves to PROD
This avoids manual “switch the connection” steps after deployment.
Option 2: Avoid/disable autobinding for that scenario (if applicable)
If you don’t want deployed items to rewire to the corresponding stage automatically, you can structure your pipeline so that the items aren’t connected in a way that triggers unwanted autobinding. The docs describe multiple ways to avoid autobinding (like not connecting items across stages, or using rules/indirection).
A key limitation to watch for
The docs specifically call out that you can’t change the data source connection in Power BI service directly; to change what the target stage uses, you must use deployment rules (or APIs), and deployment rules only apply after the next deployment.
So, if your “Script activity connection” is effectively a data source/linked dependency reference, you’ll likely need either:
- a parameter/variable-driven approach (Variable Libraries), or
- deployment rules designed for the supported item types (and then redeploy)
References (docs from the provided material)
- Fabric deployment pipelines process – Autobinding (including how connections are maintained and how to avoid autobinding): https://learn.microsoft.com/fabric/cicd/deployment-pipelines/understand-the-deployment-process#autobinding
- “I want to change the data source in the pipeline stages” / data source connection limitation + deployment rules/APIs only take effect after next deployment: https://learn.microsoft.com/fabric/cicd/troubleshoot-cicd/troubleshoot-cicd?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider