Medium severitydata source
Power BI Refresh Error:
DF-MSSQL-InvalidAuthConfiguration
What does this error mean?
The authentication method configured in the ADF SQL Server or Azure SQL linked service doesn't match what the server accepts, or the required credentials for that auth type are incomplete. ADF supports SQL authentication, managed identity, and service principal — each has specific requirements that must be met exactly.
Common causes
- 1SQL authentication is configured but the username or password is missing or wrong
- 2Managed identity authentication is selected but the ADF managed identity has not been added as a user in the SQL database
- 3Service principal authentication is used but the service principal lacks db_datareader or db_datawriter role on the target database
- 4The ADF integration runtime (IR) being used doesn't support the selected auth method (e.g., managed identity requires Azure IR, not self-hosted IR without MSI)
How to fix it
- 1In ADF Studio, open the SQL linked service and check the 'Authentication type' dropdown — confirm it matches what the server accepts.
- 2If using SQL authentication, update the username and password and click 'Test connection'.
- 3If using managed identity, run: `CREATE USER [your-adf-name] FROM EXTERNAL PROVIDER; ALTER ROLE db_datareader ADD MEMBER [your-adf-name];` in the target database.
- 4If using service principal, confirm the service principal has been granted a SQL role in the database and that the tenant ID and client ID are correct in the linked service.
- 5After updating credentials, click 'Test connection' on the linked service and re-publish before re-running the pipeline.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-troubleshoot-guide