Connect-AzAccount no longer working after 5.2.0 upgrade

Product: PowerShell Universal
Version: 5.2.0

Hey PoSh Universal folks,

In the past I had this exact same problem, back on Can no longer connect to Azure with Connect-AzAccount.

Back then I had this problem on 4.1.7. I was told this was a known bug that would be fixed in 4.2.0, so I rolled back for a bit. Later I upgraded to 4.2.2 and did not have the problem anymore. I’ve stayed on 4.2.2 for a long time now, have just upgraded to 5.2.0, and now I’m back to having the exact same problem.

I can use the PoSh Integrated Console in VSCode to connect and it works just fine, but my PoSh Universal Jobs and Apps that connect to Azure are not able to connect.

Connect-AzAccount -TenantId $tenantId -Credential $creds_Azure -ServicePrincipal -Subscription $defaultSubscription -ErrorAction Stop

Entry point was not found. Could not find tenant id for provided tenant domain ‘x-x-x-x-x’. Please ensure that the provided service principal ‘x-x-x-x-x’ is found in the provided tenant domain.

Is this the same situation where y’all know about it and a fix in on it’s way in the next minor version update?

Thanks,
Rob

5.2.1 will have a fix for this. There is an outdated Azure library cause this problem.

Thanks @adam

I’ve confirmed the issue is resolved in 5.2.1.

Now I can play with the new features, like nested modals :clap:

Thanks,
Rob

1 Like