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

[Core] PREVIEW: Support managed identity on Azure Arc-enabled Linux server #30267

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented Nov 6, 2024

Related command
az login --identity

Description

This is only a temporary solution.

If Azure Arc is detected, Azure CLI uses MSAL for managed identity authentication. For other platforms, such as VM and App Service, the existing logic is preserved. These platforms' migration will be done in #25959.

Copy link

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

Copy link

Hi @jiasli,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 6, 2024

Support managed identity on Azure Arc-enabled Linux server

Comment on lines +223 to 225
if _on_azure_arc():
return self.login_with_managed_identity_azure_arc_windows(
identity_id=identity_id, allow_no_subscriptions=allow_no_subscriptions)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if _on_azure_arc():
return self.login_with_managed_identity_azure_arc_windows(
identity_id=identity_id, allow_no_subscriptions=allow_no_subscriptions)
if _on_azure_arc():
return self.login_with_managed_identity_azure_arc(
identity_id=identity_id, allow_no_subscriptions=allow_no_subscriptions)

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 Core CLI core infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support az login --identity for Azure Arc
4 participants