Open ANVLISTENER opened 1 year ago
The above image shows the access given to the account.
$identity = Get-AzUserAssignedIdentity -ResourceGroupName "test" -Name "RunAsAccount"
$account=Set-AzAutomationAccount -ResourceGroupName "TEST" -Name "testing"
From here, we got the $identity.ClientId in the below.
Connect-AzAccount -Identity -AccountId $identity.ClientId
But this fully fails, i don't know y this happens.
Description
Hello Team ,
I tried the following code and getting the error.
Connect-AzAccount -Identity -AccountId $identity.ClientId WARNING: Unable to acquire token for tenant 'organizations' with error 'ManagedIdentityCredential authentication unavailable. Multiple attempts failed to obtain a token from the managed identity endpoint.'
I tried from the Ref #: https://learn.microsoft.com/en-us/azure/automation/migrate-run-as-accounts-managed-identity?tabs=ua-managed-identity
I want to login to the Automation account and access the system's and resources. I gave the access in the IAM role in the Automation. Despite doing so, it desperately fails.
request you to help me find a way to work on both localsystem and the runbook as should be.
additionally, let me know if you get me a way to get the list systems ( VMs) available / linked to the automation account.
Humble Thanks.
Thank you.
Reagrds ,
Libin
Script or Debug output
Environment data
Module versions
Error output
No response