Issue connecting to Azure SQL DB via Azure Automation (Runbook)

Detty T Zachariah 1 Reputation point
2021-01-30T13:38:40.077+00:00

I am trying to connect via Azure Automation (Runbook) to an Azure SQL Server using Azure Active Directory Admin account using authentication type as Active Directory Password. The runbook runs fine when using SQL Authentication

Error message when using Azure AD authentication is pasted below.
Exception calling "Open" with "0" argument(s): "Unable to load adalsql.dll (Authentication=ActiveDirectoryPassword).
And
New-Object : Exception calling ".ctor" with "1" argument(s): "Invalid value for key 'authentication'."

I got few articles (3 years old) which says Azure AD authentication is not supported by Automation because Azure Automation uses .NET4.5 whereas Azure AD need .NET4.6. Is this true ? Can we use Azure AD authentication within Runbooks now?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
{count} votes

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.