Skip to content

Track 1 Azure Python SDK support has been dropped in Azure CLI 2.70.0 #30951

@jiasli

Description

@jiasli

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:

  1. Migrate all underlying Azure Python SDKs to Track 2.
  2. Instead of passing resource to Profile.get_login_credentials(), pass scopes to the client factory as credential_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 infrastructureSecurity-IssueService AttentionThis issue is responsible by Azure service team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions