Hi Jane Illarionova ,
Welcome to the Microsoft Q&A and thank you for posting your questions here,
This error occurs when the ARM template for your Synapse workspace tries to deploy a Credential referencing a User-Assigned Managed Identity (UAMI) that isn’t attached to the workspace. The root cause is usually hardcoded dev values in the published template, or missing parameterization for environment-specific properties.
Recommended approach:
- Option 1 (Preferred): Parameterize in Synapse
- Use
template-parameters-definition.jsonat the repo root to specify which Linked Service and Credential properties (like Dataverse URL and UAMI resourceId) should be parameters. - Publish the workspace to generate a template with parameter placeholders.
- Attach the required UAMI to each Synapse workspace before deployment.
- Deploy using environment-specific parameter files or pipeline overrides.
- Use
- Option 2: Deploy LS & Credential Separately
- Remove the Dataverse LS and Credential from Synapse Studio so they’re excluded from the published template.
- Deploy the main workspace template with
DeleteArtifactsNotInTemplate: false. - Deploy the LS and Credential using a separate ARM/Bicep template with correct environment values.
Best practices:
- Always attach the UAMI to the workspace before deploying the Credential.
- Use incremental deployment mode and avoid manual edits to generated templates.
- Keep artifact names consistent across environments.
- Document your deployment process for the team.
References:
- https://learn.microsoft.com/en-us/azure/synapse-analytics/cicd/continuous-integration-delivery
- https://learn.microsoft.com/en-gb/answers/questions/5547455/invalid-user-assigned-managed-identycredential
If the problem persists, feel free to mention it in the comment section.