You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Azure PowerShell authentication failed due to an unknown error. #< CLIXML\r\n<Objs Version=\"1.1.0.1\" xmlns=\"http://schemas.microsoft.com/powershell/2004/04\"><S S=\"Error\">_x001B_[91mGet-AzAccessToken: _x000D__x000A_</S><S S=\"Error\">_x001B_[96mLine |_x000D__x000A_</S><S S=\"Error\">_x001B_[96m 12 | _x001B_[0m $token = _x001B_[96mGet-AzAccessToken -ResourceUrl 'https://vault.azure.net'_x001B_[0m_x000D__x000A_</S><S S=\"Error\">_x001B_[96m | _x001B_[91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S=\"Error\">_x001B_[91m_x001B_[96m | _x001B_[91mCannot retrieve access token for resource 'https://vault.azure.net';. Please ensure that you have provided the appropriate access tokens when using access token login._x001B_[0m_x000D__x000A_</S></Objs>"
Expected behavior
If PSH fails I expect it to bubble up with the normal aggregated DAC exception.
I think we should make sure we have a test that covers "Has AzPSH installed, but not logged in"
Actual behavior (include Exception or Stack Trace)
Right now it fails and throws an exception.
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
Log out of all dev tools - including PowerShell
New up a DAC
Run it.
Get the exception
Environment:
Name and version of the Library package used: [e.g. Azure.Storage.Blobs 12.2.0]
❯ $PSVersionTable.PSVersion
Major Minor Patch PreReleaseLabel BuildLabel
----- ----- ----- --------------- ----------
7 1 4
Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): [e.g. Azure AppService or Windows 10 .NET Framework 4.8]
Windows 10
IDE and version : [e.g. Visual Studio 16.3]
VS Code
azsdke2e
azsdke2e1
The text was updated successfully, but these errors were encountered:
ghost
added
the
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
label
Aug 24, 2021
Describe the bug
Using DAC.
Fails with:
Expected behavior
If PSH fails I expect it to bubble up with the normal aggregated DAC exception.
I think we should make sure we have a test that covers "Has AzPSH installed, but not logged in"
Actual behavior (include Exception or Stack Trace)
Right now it fails and throws an exception.
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
Environment:
I also tried with the GA version.
dotnet --info
output for .NET Core projects): [e.g. Azure AppService or Windows 10 .NET Framework 4.8]Windows 10
VS Code
azsdke2e
azsdke2e1
The text was updated successfully, but these errors were encountered: