I need to run New-AzureADServiceAppRoleAssignment
from a Powershell script in a release pipeline.
The prerequisite to this is Connect-AzureAD
, which by default, prompts for authentication. I've looked over StackOverflow for every permutation of this question that I can find, and none of the solutions mentioned work.
The Azure Powershell task exists logged in, that just happens. What do I have to do to use that logged in context to also connect in the AzureAD module?