Connect-azuread cmdlet does not work in automation account runbook

2022-06-28T11:04:46.167+00:00

Connect-azuread cmdlet does not work in automation account runbook. I am trying to create approxy using powershell.
Automation account managed identity is given "App admin"rights on AD.

When try to run the script in run book "You must call the Connect-AzureAD cmdlet before calling any other cmdlets."

Not sure how to authenticate to Azure AD when using runbook and managed identity. Please help.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,259 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.