-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
CoreCLI core infrastructureCLI core infrastructureSecurity-IssueService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.
Milestone
Description
In response to an urgent security request, Track 1 Azure Python SDK support has been dropped in Azure CLI 2.70.0 (#29631).
Extensions that still rely on Track 1 SDKs will encounter failure when creating a credential with Profile.get_login_credentials():
TypeError: Profile.get_login_credentials() got an unexpected keyword argument 'resource'
Solution (for extension owners)
Please take below steps to adapt to this change:
- Migrate all underlying Azure Python SDKs to Track 2.
- Instead of passing
resourcetoProfile.get_login_credentials(), passscopesto the client factory ascredential_scopes. [Core] Drop Track 1 SDK authentication #29631 contains some examples of this migration.
Workaround (for users)
Please use Azure CLI 2.69.0 or below, or the LTS version 2.66 before the extension is migrated to Track 2 Azure Python SDKs.
If you have any questions, please comment under this issue.
Metadata
Metadata
Assignees
Labels
CoreCLI core infrastructureCLI core infrastructureSecurity-IssueService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.