Suppose I have a SQL Server VM and Azure which is domain join and I have an Azure automation account.
How can I connect to this SQL Server VM from Azure automation account using Windows AD authen ?
I know there is a concept of creating a credential .
https://learn.microsoft.com/en-us/azure/automation/shared-resources/credentials?tabs=azure-powershell
$user = "MyDomain\MyUser"
$pw = ConvertTo-SecureString "PassWord!" -AsPlainText -Force
$cred = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $user, $pw
New-AzureAutomationCredential -AutomationAccountName "MyAutomationAccount" -Name "MyCredential" -Value $cred
just that the above ? Any more setting for Azure automation account to authen with domain ?