3.0.0 (2024-06-24)
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
General breaking changes
-
Credential system has been completly revamped:
azure.common.credentials
ormsrestazure.azure_active_directory
instances are no longer supported, use theazure-identity
classes instead: https://pypi.org/project/azure-identity/credentials
parameter has been renamedcredential
-
The
config
attribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True)
. For a complete set of
supported options, see the parameters accept in init documentation of azure-core -
You can't import a
version
module anymore, use__version__
instead -
Operations that used to return a
msrest.polling.LROPoller
now returns aazure.core.polling.LROPoller
and are prefixed withbegin_
. -
Exceptions tree have been simplified and most exceptions are now
azure.core.exceptions.HttpResponseError
(CloudError
has been removed). -
Most of the operation kwarg have changed. Some of the most noticeable:
raw
has been removed. Equivalent feature can be found usingcls
, a callback that will give access to internal HTTP response for advanced user- For a complete set of
supported options, see the parameters accept in Request documentation of azure-core
General new features
- Type annotations support using
typing
. SDKs are mypy ready. - This client has now stable and official support for async. Check the
aio
namespace of your package to find the async client. - This client now support natively tracing library like OpenCensus or OpenTelemetry. See this tracing quickstart for an overview.
Features Added
- Added operation group PowerBIEmbeddedManagementClientOperationsMixin
Breaking Changes
- Operation WorkspaceCollectionsOperations.check_name_availability has a new required parameter body
- Operation WorkspaceCollectionsOperations.check_name_availability has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.check_name_availability no longer has parameter name
- Operation WorkspaceCollectionsOperations.check_name_availability no longer has parameter type
- Operation WorkspaceCollectionsOperations.create has a new required parameter body
- Operation WorkspaceCollectionsOperations.create has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.create no longer has parameter location
- Operation WorkspaceCollectionsOperations.create no longer has parameter tags
- Operation WorkspaceCollectionsOperations.get_access_keys has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.get_by_name has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.list_by_resource_group has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.list_by_subscription has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.migrate has a new required parameter body
- Operation WorkspaceCollectionsOperations.migrate has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.migrate no longer has parameter resources
- Operation WorkspaceCollectionsOperations.migrate no longer has parameter target_resource_group
- Operation WorkspaceCollectionsOperations.regenerate_key has a new required parameter body
- Operation WorkspaceCollectionsOperations.regenerate_key has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.regenerate_key no longer has parameter key_name
- Operation WorkspaceCollectionsOperations.update has a new required parameter body
- Operation WorkspaceCollectionsOperations.update has a new required parameter kwargs
- Operation WorkspaceCollectionsOperations.update no longer has parameter tags
- Operation WorkspacesOperations.list has a new required parameter kwargs
- Renamed operation WorkspaceCollectionsOperations.delete to WorkspaceCollectionsOperations.begin_delete