pypi / azure-core
azure-core
What changed in azure-core 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
6 breaking2 security9 new APIs and options1 performance3 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initazure-core 127 changes
Breaking changes 6
Python 3.9 is no longer supported; applications must use Python 3.10 or later.
Query parameters in URL attributes are now sanitized by default; additional parameters require explicit allowance.
The environment variable for the previously undocumented azure_cloud setting changed from AZURE_CLOUD to AZURE_SDK_CLOUD_CONF.
Continuation tokens generated by previous azure-core versions are incompatible with this version.
The ContentDecodePolicy.deserialize_from_text method changed.
AbstractSpan.set_current_span is no longer supported; use change_context instead.
Security 2
Persists the insecure-domain change flag across retries after a cross-domain redirect.
Azure Core is vulnerable to deserialization of untrusted data
New APIs and options 9
Accepts VERBOSE, case-insensitively, as an alias for DEBUG.
Policies and SDK clients can allow specified URL query parameters to remain unredacted in span attributes or logs.
Per-operation http_logging_level overrides are now supported in HttpLoggingPolicy.
Adds a serialization helper that gets an attribute's backcompat name using backcompat attribute access.
Added a registry for custom serializers and deserializers for specific types or conditions.
Introduces the change_context contract for AbstractSpan.
Accepts the network_span_namer keyword argument to change the network span name.
Introduces a new HTTP logging policy.
AbstractSpan implementations can use this mixin to get HTTP span updates automatically.
Performance 1
Added caching to tracing implementation detection to prevent potential performance issues from repeated import attempts.
Behavior and default changes 3
Invalid values log a warning and use INFO instead of raising errors.
Invalid values log a warning and use the default value instead of raising errors.
Adds jitter to token refresh timing to prevent simultaneous refresh attempts across multiple processes and mitigate the thundering herd problem.
Fixes and other changes 6
Preserves a trailing slash in the base URL when the URL template contains only a query string.
Preserves the leading slash when the URL template starts with /?.
Avoids adding trailing slashes when the URL template contains only query parameters.
Fixed repeated import attempts of cchardet and chardet when charset_normalizer is used.
Fixes form-data handling with the aiohttp transport.
Fixes handling of an async generator as the input stream.