Azure Logic Apps HTTP Unauthorized

Mohamed Alaa LAABIDI 0 Reputation points
2024-08-14T14:01:08.84+00:00

i tried to run a pipline in azure synapse analytics after a blob is added or modified but i get 'Unauthorized' error
i used identity managed as authentification type and i turned on the the system assigned in identity in logic app and i gave synapse contributor role to my logic app in synapse workspace
any help please ? error

error2

error3

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,131 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,916 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 20,476 Reputation points
    2024-08-20T14:09:13.0133333+00:00

    Hi Mohamed Alaa LAABIDI,

    Thanks for reaching out to Microsoft Q&A.

    Check If all these configurations seem correct and if you're still facing the issue, you might try enabling diagnostic logging for both the LogicApp and Synapse to gather more detailed information about the cause of the unauthorized error.

    1. Managed Identity Configuration:
      • Ensure that the system-assigned managed identity for the Logic App is indeed turned on.
      • Verify that the managed identity has been granted the "Synapse Contributor" role on the Synapse workspace.
    2. Permissions :
      • Sometimes, it takes a few minutes for permissions to propagate after assigning a role. Ensure that enough time has passed since you assigned the "Synapse Contributor" role.
    3. API Permissions:
      • Double-check that the Synapse workspace's ACL settings allow the Logicapp to interact with it. This includes ensuring the managed identity has sufficient access.
    4. Check the Endpoint:
      • Ensure that the URI is correct, especially the subscription, resource group, and workspace names. Any typo can lead to an unauthorized error.
    5. Test the MI:
      • Try accessing the Synapse workspace using a tool like Postman with the managed identity token to verify that the token has the required permissions.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.