az cli credentials not honored
- Dominant language
- TypeScript
- Stars
- 205
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Starting today, my credentials are not working because batch explorer is ignoring my az cli credentials and I'm stuck in the login screen (logged in with no access, because my default tenant doesn't have an azure subscription and no option to change directories).
**To Reproduce**
Steps to reproduce the behavior:
1. set AzureServicesAuthConnectionString=RunAs=Developer;DeveloperTool=AzureCli
2. az login --tenant ""
3. Launch Batch Explorer
4. Log in again
5. Be told I can't do anything except try another account.
**Expected behavior**
Ideal: Access to the batch accounts my account has access to in the tenant I'm logged into.
Resonable: I can select the directory when I'm in more than one.
**Logs(Click profile > View Logs > app.log, client.log)**
> info: [BatchExplorer Main] Program arguments {"_actionHandler":null,"_aliases":[],"_allowExcessArguments":true,"_allowUnknownOption":true,"_args":[],"_combineFlagAndOptionalValue":true,"_defaultCommandName":null,"_description":"","_enablePositionalOptions":false,"_events":{},"_eventsCount":5,"_executableFile":null,"_executableHandler":false,"_exitCallback":null,"_hasHelpOption":true,"_helpCommandDescription":"display help for command","_helpCommandName":"help","_helpCommandnameAndArgs":"help [command]","_helpConfiguration":{},"_helpDescription":"display help for command","_helpFlags":"-h, --help","_helpLongFlag":"--help","_helpShortFlag":"-h","_hidden":false,"_lifeCycleHooks":{},"_name":"BatchExplorer","_optionValueSources":{},"_optionValues":{},"_outputConfiguration":{},"_passThroughOptions":false,"_scriptPath":"C:\\Program Files\\BatchExplorer\\BatchExplorer.exe","_showHelpAfterError":false,"_showSuggestionAfterError":false,"_storeOptionsAsProperties":false,"_version":"2.18.0-stable.868","_versionOptionName":"version","args":[],"commands":[],"options":[{"description":"output the version number","flags":"-V, --version","hidden":false,"long":"--version","mandatory":false,"negate":false,"optional":false,"required":false,"short":"-V","variadic":false},{"description":"Disables autoupdate for one instance of opening up the application","flags":"--disable-auto-update","hidden":false,"long":"--disable-auto-update","mandatory":false,"negate":false,"optional":false,"required":false,"variadic":false},{"description":"If the application was just updated","flags":"--updated","hidden":false,"long":"--updated","mandatory":false,"negate":false,"optional":false,"required":false,"variadic":false},{"description":"Change the user data directory. Used for tests","flags":"--user-data-dir ","hidden":false,"long":"--user-data-dir","mandatory":false,"negate":false,"optional":false,"required":true,"variadic":false},{"description":"Ignore https certificate errors","flags":"--ignore-certificate-errors","hidden":false,"long":"--ignore-certificate-errors","mandatory":false,"negate":false,"optional":false,"required":false,"variadic":false}],"parent":null,"processedArgs":[],"program":{"_actionHandler":null,"_aliases":[],"_allowExcessArguments":true,"_allowUnknownOption":true,"_args":[],"_combineFlagAndOptionalValue":true,"_defaultCommandName":null,"_description":"","_enablePositionalOptions":false,"_events":{},"_eventsCount":5,"_executableFile":null,"_executableHandler":false,"_exitCallback":null,"_hasHelpOption":true,"_helpCommandDescription":"display help for command","_helpCommandName":"help","_helpCommandnameAndArgs":"help [command]","_helpConfiguration":{},"_helpDescription":"display help for command","_helpFlags":"-h, --help","_helpLongFlag":"--help","_helpShortFlag":"-h","_hidden":false,"_lifeCycleHooks":{},"_name":"BatchExplorer","_optionValueSources":{},"_optionValues":{},"_outputConfiguration":{},"_passThroughOptions":false,"_scriptPath":"C:\\Program Files\\BatchExplorer\\BatchExplorer.exe","_showHelpAfterError":false,"_showSuggestionAfterError":false,"_storeOptionsAsProperties":false,"_version":"2.18.0-stable.868","_versionOptionName":"version","args":[],"commands":[],"options":[{"description":"output the version number","flags":"-V, --version","hidden":false,"long":"--version","mandatory":false,"negate":false,"optional":false,"required":false,"short":"-V","variadic":false},{"description":"Disables autoupdate for one instance of opening up the application","flags":"--disable-auto-update","hidden":false,"long":"--disable-auto-update","mandatory":false,"negate":false,"optional":false,"required":false,"variadic":false},{"description":"If the application was just updated","flags":"--updated","hidden":false,"long":"--updated","mandatory":false,"negate":false,"optional":false,"required":false,"variadic":false},{"description":"Change the user data directory. Used for tests","flags":"--user-data-dir ","hidden":false,"long":"--user-data-dir","mandatory":false,"negate":false,"optional":false,"required":true,"variadic":false},{"description":"Ignore https certificate errors","flags":"--ignore-certificate-errors","hidden":false,"long":"--ignore-certificate-errors","mandatory":false,"negate":false,"optional":false,"required":false,"variadic":false}],"parent":null,"processedArgs":[],"program":"[Circular]","rawArgs":["","C:\\Program Files\\BatchExplorer\\BatchExplorer.exe"]},"rawArgs":["","C:\\Program Files\\BatchExplorer\\BatchExplorer.exe"]}
> info: [BatchExplorer Main] Registered ms-batch-explorer:// as a protocol for Batch Explorer
> info: [BatchExplorer Main] Registered ms-batchlabs:// as a protocol for Batch Explorer
> debug: [BatchExplorer Main] [organizations] Trying to silently acquire token
> info: [BatchExplorer Main] Python path is: 'C:\Program Files\BatchExplorer\resources\python-rpc\main', Args: 45032
> info: [BatchExplorer Python] ========================= STARTING PYTHON RPC SERVER PROCESS =========================
> info: [BatchExplorer Main] Python Rpc server started!
> debug: [BatchExplorer Main] [organizations] Trying silent auth code flow (Error: [internal] No account for silent token acquisition)
> info: [BatchExplorer Python] server listening on 127.0.0.1:45032
>
> debug: [BatchExplorer Main] [organizations] Silent auth failed (Error: login_required: AADSTS50058: A silent sign-in request was sent but no user is signed in.
> Trace ID: 76545d9b-345f-4508-8a24-ebba984f6100
> Correlation ID: 17d7c46d-a910-4dae-90a0-15e21244772c
> Timestamp: 2023-07-20 20:51:24Z)
> debug: [BatchExplorer Main] [organizations] Trying interactive auth code flow (Error: login_required: AADSTS50058: A silent sign-in request was sent but no user is signed in.
> Trace ID: 76545d9b-345f-4508-8a24-ebba984f6100
> Correlation ID: 17d7c46d-a910-4dae-90a0-15e21244772c
> Timestamp: 2023-07-20 20:51:24Z)
> info: [BatchExplorer Main] Checking for update
> info: [BatchExplorer Main] Checking for update (already in progress)
> info: [BatchExplorer Main] Update for version 2.18.0-stable.868 is not available (latest version: 2.18.0-stable.868, downgrade is allowed).
> info: [BatchExplorer Python] connection open
**Version (please complete the following information):**
- OS: Windows 11
- Version 2.18.0
Contributor guide
Assessment
This issue has not been assessed yet.