Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
mra1
Regular Visitor

Failed to resolve connection when deploying workspace with SPN

Answer: Microsoft added more information to the error, specifying that the SPN did not have proper Key Vault access:

Failed to resolve connection '<guid>' referenced in activity run '<guid>'. ErrorCode: 'DMTS_UserlsNotAllowedToAccessAzureKeyVaultConnectionErrorCode'. ErrorMessage: '{"error":
{"code":"DMTS_UserlsNotAllowedToAccessAzureKeyVaultConnectionErrorCode","pbi.error":{"code":"DMTS_UserlsNotAllowedToAccessAzureKeyVaultConnectionErrorCode","parameters":(),"details":[],"exceptionCulprit":1])}'.

 

When deploying a data pipeline to a new workspace (staging) using SPN I get the error "Failed to resolve connection'' referenced in activity run''". The SPN has access to connection in question under "Manage Connections and Gateways". When deploying as my own AD user, I do not get this error.

 

I found other posts that seem to have the same error:

But no workaround works.

 

The SPN also has admin access to the workspace.

1 ACCEPTED SOLUTION

Thank you for your answer, Microsoft changed the error to include that the SPN did not have access to the Azure Key Vault resource that the connection used. The connection inside Fabric was set up correctly. My fix in this case was to change the connection from a Key Vault reference, to write the password in the connection, although that is not my preferred solution, and therefore need to research which permission the SPN needs in Key Vault. 

View solution in original post

5 REPLIES 5
v-prasare
Community Support
Community Support

Hi @mra1,

We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

 

@Shahid12523@suparnababu8  Thanks for your prompt response

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are

Shahid12523
Resident Rockstar
Resident Rockstar

The error happens because SPNs need explicit access to each connection, not just workspace admin rights. Even if the SPN is workspace admin, it may lack credentials or gateway access that a personal AD user has.

 

Fix:

 

  • Grant the SPN explicit access to the connection in staging workspace.
  • Ensure the connection uses SPN authentication with proper credentials.
  • If using a gateway, give the SPN gateway access.
  • Deploy connections first, then the pipeline.
  • This ensures the SPN can resolve the connection at runtime.
Shahed Shaikh

Thank you for your answer, Microsoft changed the error to include that the SPN did not have access to the Azure Key Vault resource that the connection used. The connection inside Fabric was set up correctly. My fix in this case was to change the connection from a Key Vault reference, to write the password in the connection, although that is not my preferred solution, and therefore need to research which permission the SPN needs in Key Vault. 

suparnababu8
Super User
Super User

Hi @mra1 

 

I think it's kind of know issue in MS Fabric. It's recorded as a new issue in Microsoft fabric github please read this thread Error while deploying data pipelines to fabric workspace · Issue #433 · microsoft/fabric-cicd 

 

If no workaround woudn't work, you ahve to wait till Microsoft fix this issue.

 

Thank you!

 

Please let me knwo if it helps you.

 

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Hi @suparnababu8 

 

I think it might be related, although I can succesfully deploy, and can see that the connection has been changed to the correct staging connection, but the data pipeline fails when running, since it cannot resolve the connection. A workaround would be to use my own AD user as the deploying intance, although I'm not sure on how to set that up.

Helpful resources

Announcements
August Fabric Update Carousel

Fabric Monthly Update - August 2025

Check out the August 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.