Using AME unable to create Linked Service for Azure SQL in Data Factory

Hemant 41 Reputation points Microsoft External Staff
2026-06-24T01:44:55.94+00:00

Using AME unable to create Linked Service for Azure SQL in Data Factory. Any help would be greatly appreciated.

 

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


4 answers

Sort by: Most helpful
  1. Pilladi Padma Sai Manisha 10,945 Reputation points Microsoft External Staff Moderator
    2026-06-25T04:20:54.3666667+00:00

    Hi @Hemant
    Thank you for confirming and for sharing the additional screenshots.

    I can see that you have already:

    • Verified the System-assigned Managed Identity is enabled.
    • Recreated the database user using CREATE USER ... FROM EXTERNAL PROVIDER.
    • Granted the required database permissions.
    • Confirmed that the Managed Identity Object ID matches the database user.

    Since the linked service is still failing with "Login failed for user '<token-identified principal>'", could you please verify the following:

    1. Confirm that a Microsoft Entra ID administrator is configured on the Azure SQL logical server.
    2. Verify that the database user has been created in WACAPAutomationDB (the target database) and not only in the master database.
    3. As a test, temporarily add the managed identity to the db_owner role and retry creating the linked service. If the connection succeeds, it would indicate that the issue is permission-related.

    Please let us know the results of these checks, and we'll continue to assist further.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Hemantkumar Prajapati (v-hepraj) 0 Reputation points
    2026-06-25T00:41:21.4666667+00:00

    I am using Managed Identity authentication and as per below ADF was added. However, still ADF Linked Service is failing.
    User's image

    Was this answer helpful?

    1 person found this answer helpful.

  3. Pilladi Padma Sai Manisha 10,945 Reputation points Microsoft External Staff Moderator
    2026-06-24T02:19:53.9933333+00:00

    Hi @Hemant

    Thank you for reaching out. To investigate this further, could you please provide the following details:

    • The exact error message or screenshot received while creating the Linked Service.
    • Whether AME refers to Access Management for Enterprise or another service/tool being used for authentication.
    • The authentication method being used (Managed Identity, Service Principal, SQL Authentication, etc.).
    • Whether you are creating the Linked Service from Azure Data Factory Studio or through ARM/Bicep/Terraform deployment.
    • Whether the target Azure SQL Database is publicly accessible or configured with a private endpoint/firewall restrictions.
    • A screenshot of the Linked Service configuration page (excluding any sensitive information).

    Additionally, please verify that:

    • The Data Factory managed identity or AME identity has the required permissions on the Azure SQL database.
    • Firewall settings on Azure SQL allow connections from Azure services (if applicable).
    • Any private endpoint, DNS, or network configuration is correctly configured.

    Once you share the error details and configuration information, we can help narrow down the root cause.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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