Closed vicp-iq closed 6 years ago
I have good news and bad news! The good news is that this turned out to be the same as https://github.com/Azure/azure-powershell/issues/4299 and was fixed by upgrading the AzureRM version.
The bad news is that I only just found out, after investing... way too many hours dealing with so many variants of this problem.
Cmdlet(s)
Add-AzureAccount
PowerShell Version
5.1.14409.1012
Module Version
4.0.2
OS Version
10.0.14409.1012
Description
After upgrading from V2.1.0 -> 4.0.2, running
Add-AzureAccount -Credential $cred
fails to initialize my session, but claims to have succeededDebug Output
Script/Steps for Reproduction
I see that the debug output suggests that I use the log-in dialog, but that is not an option because the context that I need to run this in is a DSC process and in that scenario I'm manually building the PSCredential object by passing around a SecureString(which was encrypted during storage and transfer).