Issue connecting to Azure SQL DB via Azure Automation (Runbook)
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?