Feb 08 2022
11:19 AM
- last edited on
Mar 05 2024
01:29 PM
by
TechCommunityAP
Feb 08 2022
11:19 AM
- last edited on
Mar 05 2024
01:29 PM
by
TechCommunityAP
Hi,
I am trying to connect within a Azure DevOps pipeline using Image Windows-Latest to Azure AD. Overall I am automating a Privilege Identity Management by using the AzureADPreview Module. The Modules installs as expected however the problem is after any command I get the following error in the pipeline.
$context = Get-AzContext
$aadToken = Get-AzAccessToken -ResourceTypeName AadGraph
Connect-AzureAD -AadAccessToken $aadToken.Token -AccountId $context.Account.Id -TenantId $context.tenant.id
Any command say Get-AzureADUser all fail with the same error. I have printed out all the param values and they have values.
Feb 10 2022 01:51 AM