Skip to content

ERROR: You must install dependency by: pip install "msal[broker]>=1.20,<2" #32746

@nicolecnacar

Description

@nicolecnacar

Issue Type

Bug Report

Description

A new error appeared while we are trying to create a resource bridge. It only appeared after Azure CLI is upgraded to 2.83. I am saying "new" because it did not appear before when the Azure CLI's version was 2.81 or 2.82. We did not have problems with those versions aside from internal issues such as firewalls, DNS, etc.

Command or Script

./resource-bridge-onboarding-script.ps1 in PowerShell

Expected Behavior

No error should appear while trying to fill out necessary details like the Azure login, vCenter name and etc.

Actual Behavior

This error appeared after the Azure Login which we haven't encountered before. Please note that MSAL and BROKER exists on C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\ so we are confused as to why it wants us to install it. Can you assist?

0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-
Step 2/5: Creating the Arc resource bridge
0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-

az : ERROR: The command failed with an unexpected error. Here is the traceback:
At D:\UNIX Team\resource-bridge-onboarding-script.ps1:550 char:22

  • ... ianceObj = (az arcappliance show --subscription $applianceSubscriptio ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (ERROR: The comm... the traceback::String) [], RemoteException
    • FullyQualifiedErrorId : NativeCommandError

ERROR: You must install dependency by: pip install "msal[broker]>=1.20,<2"
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/broker.py", line 14, in
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\pymsalruntime/init.py", line 13, in
ImportError: DLL load failed while importing pymsalruntime: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 669, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 737, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 706, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 351, in handler
File "C:\Users\salvadm_pam.azure\cliextensions\arcappliance\azext_arcappliance_client_factory.py", line 9, in cf_arcappliance
return get_mgmt_service_client(cli_ctx, v2025_03_01_preview.ResourceConnectorClient)
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/client_factory.py", line 83, in get_mgmt_service_client
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/client_factory.py", line 234, in _get_mgmt_service_client
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 333, in get_login_credentials
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 609, in _create_credential
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 240, in get_user_credential
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/msal_credentials.py", line 29, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 2070, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 668, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 711, in _decide_broker
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 31, in _init_broker
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/broker.py", line 33, in
ImportError: You must install dependency by: pip install "msal[broker]>=1.20,<2"

To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Environment

  • OS: Windows Server 2016 Standard
  • Tool Version: Azure CLI 2.83.0

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamInstallationMSALcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions