Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythom #29315

Open
shaddad2189 opened this issue Jul 4, 2024 · 2 comments
Open

pythom #29315

shaddad2189 opened this issue Jul 4, 2024 · 2 comments
Assignees
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@shaddad2189
Copy link

Describe the bug

Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.9/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 664, in execute
raise ex
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 731, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 701, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 334, in call
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/profile/custom.py", line 158, in login
subscriptions = profile.login(
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/_profile.py", line 177, in login
identity.login_with_service_principal(username, password, scopes=scopes)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/auth/identity.py", line 189, in login_with_service_principal
cred = ServicePrincipalCredential(sp_auth, **self._msal_app_kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/auth/msal_authentication.py", line 132, in init
super().init(service_principal_auth.client_id, client_credential=client_credential, **kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/msal/application.py", line 516, in init
self.authority = Authority(
File "/usr/lib64/az/lib/python3.9/site-packages/msal/authority.py", line 95, in init
raise ValueError(error_message)

Related command

az login

Errors

az login --service-principal --username *** --password *** --tenant ***

Issue script & Debug output

Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.9/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 664, in execute
raise ex
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 731, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 701, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 334, in call
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/profile/custom.py", line 158, in login
subscriptions = profile.login(
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/_profile.py", line 177, in login
identity.login_with_service_principal(username, password, scopes=scopes)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/auth/identity.py", line 189, in login_with_service_principal
cred = ServicePrincipalCredential(sp_auth, **self._msal_app_kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/auth/msal_authentication.py", line 132, in init
super().init(service_principal_auth.client_id, client_credential=client_credential, **kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/msal/application.py", line 516, in init
self.authority = Authority(
File "/usr/lib64/az/lib/python3.9/site-packages/msal/authority.py", line 95, in init
raise ValueError(error_message)

Expected behavior

I Was trying to connect direct to an authorized graph api app that I configured and it was throwing errors and weird syntax issues

Environment Summary

azure cli + graph api ext

Additional context

No response

@shaddad2189 shaddad2189 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 4, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 4, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Account az login/account labels Jul 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 4, 2024
@yonzhan yonzhan added this to the Backlog milestone Jul 4, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 4, 2024
@jiasli
Copy link
Member

jiasli commented Jul 5, 2024

Could you share the full error message in addition to the call stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants