Hello @Scott Cooke (Agile Analytics)
Thanks for the question and using MS Q&A platform.
Make sure you are using the correct
managed identity name
.
To use system-assigned managed identity authentication, specify the generic properties that are described in the preceding section, and follow these steps mentioned in the document: System-assigned managed identity authentication
As per the repo - I tried to use system-assingned managed identity authentication to connect Azure SQL Database.
Step1: Create Azure SQL Database linked service with Authentication type: System Assigned Managed Identity
Note: Tried to connect without granting permission, where result is connection failed.
Step2: To grant permission to the managed identity name copy the managed identity name chepraadfdemo as shown in step1.
Step3: Go to Azure SQL Database => Query Editor => login as Active Directoty authentication as shown below:
Step4: Grant permission to the managed identity by using the below SQL query:
CREATE USER [your Data Factory name] FROM EXTERNAL PROVIDER;
ALTER ROLE db_datareader ADD MEMBER [your Data Factory name];
Step5: Now test connection of the Azure SQL database linked service.
By following the above steps, we had successfully connected Azure SQL Database using System-assigned managed identity authentication.
Hope this helps. Do let us know if you any further queries.
Please don’t forget to Accept Answer
wherever the information provided helps you, this can be beneficial to other community members.