Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

Migrate Managed Identity's implementation from `msrestazure` to MSAL #25860

Open jiasli opened 1 year ago

jiasli commented 1 year ago

Related command az login --identity

Is your feature request related to a problem? Please describe. In order to support Hybrid Runbook Worker VM's Managed Identity (https://github.com/Azure/azure-cli/issues/22243), Azure CLI has to use the new Managed Identity endpoint API version2019-08-01. Since msrestazure has been deprecated, we have concluded that MSAL will support Managed Identity authentication.

Describe the solution you'd like Once MSAL finishes its implementation for Managed Identity (https://github.com/AzureAD/microsoft-authentication-library-for-python/pull/480), Azure CLI needs to migrates its Managed Identity's implementation from msrestazure to MSAL.

Describe alternatives you've considered Use Azure Identity's Managed Identity's implementation, but the dependency on Azure Identity has been removed as explained in https://github.com/Azure/azure-cli/pull/19853#issuecomment-1011763038.

Additional context Some old issues should be discussed or fixed during the migration:

yonzhan commented 1 year ago

Managed Identity's implementation migration