Deployment rules and binding
Rules change target configuration
Deployment rules can substitute supported data sources or parameter values for target stages. Define rules in the target stage and inspect supported connector/item types and ownership requirements. A parameter rule can change an environment-specific source value, but does not authorize access or create credentials. A changed parameter definition or unsupported source may invalidate a rule.
Binding and gateway checks
A report must point to the intended target semantic model. Autobinding can link supported paired dependencies; parameter-driven connections can require separate configuration rather than automatic rebinding. Validate the actual item ID, not just its display name. A gateway connection, its authentication, source permissions and identity delegation must be verified separately. Never put secrets in stage parameters or source control.
Worked example 1 — correct a wrong-stage connection
Inspect test in environments.json. Its expected server is test.example.invalid and expected gateway is test-gateway. A candidate referencing dev.example.invalid fails the strict local comparison, even when every other field matches. Correct the target rule in an authorized sandbox, verify the connection, then run a refresh and read the source identifier in evidence. The fixture uses fictional IDs, not valid API payloads.
Worked example 2 — validate the rename dependency
The broken candidate changes Revenue to Net Revenue but leaves Profit and sales-card referencing Revenue. The dependency checker reports both missing references. The repaired candidate updates both and retains the expression SUM(Sales[Amount]). On the fixed dataset, predicted revenue is 220 and profit 80; North is 140/50 and South 80/30. An unmapped regional viewer has no rows. Native DAX and RLS tests must still establish these outcomes.
Treat rules and settings as configuration contracts
Track expected target configuration and compare after every deployment. Do not overwrite an existing gateway or grant broad permissions to resolve a failing connection. Check the actual connection owner and source authorization, report binding, refresh history and role assignment. A safe failure is preferable to an apparently successful report sourcing the wrong environment.
Practice and references
Inject one bad report binding and one wrong gateway, then explain the remediation and verification steps. See deployment rules, deployment process and troubleshooting.