Azure SDK for Python (November 2024)
The Azure SDK team is pleased to announce our November 2024 client library releases.
58 packages released this month.
Stable Packages (24)
-
Communication Messages
-
Core - Client - Core
-
Core - Management - Core
-
Image Analysis
-
Key Vault - Administration
-
Key Vault - Certificates
-
Key Vault - Keys
-
Key Vault - Secrets
-
Resource Management - App Configuration
-
Resource Management - App Platform
-
Resource Management - Compute Fleet
-
Resource Management - Container Service
-
Resource Management - Container Service Fleet
-
Resource Management - DNS
-
Resource Management - Data Box
-
Resource Management - Digital Twins
-
Resource Management - Edge Order
-
Resource Management - Extended Location
-
Resource Management - Fabric
-
Resource Management - Hybrid Compute
-
Resource Management - NetApp Files
-
Resource Management - Network
-
Resource Management - Red Hat OpenShift
-
Resource Management - Resources
Patch Updates (3)
-
Azure Monitor OpenTelemetry
-
Machine Learning
-
Resource Management - Service Bus
Beta Packages (26)
-
AI Evaluation
-
AI Model Inference
-
Communication Call Automation
-
Face
-
Identity Broker
-
Maps Route
-
Models Repository
-
OpenTelemetry Exporter
-
Resource Management - Elastic SAN
-
Resource Management - Automation
-
Resource Management - Container Apps
-
Resource Management - Container Instances
-
Resource Management - Containerorchestratorruntime
-
Resource Management - DNS Resolver
-
Resource Management - DevTest Labs
-
Resource Management - Elastic
-
Resource Management - Iotoperations
-
Resource Management - Log Analytics
-
Resource Management - Managed Services
-
Resource Management - Management Groups
-
Resource Management - Marketplace Ordering
-
Resource Management - Postgresqlflexibleservers
-
Resource Management - Redis Enterprise
-
Resource Management - Resource Health
-
Resource Management - SQL
-
Resource Management - Service Fabric Managed Clusters
Release highlights
AI Evaluation 1.0.0b4 Changelog
Breaking Changes
- Removed
numpy
dependency. All NaN values returned by the SDK have been changed to fromnumpy.nan
tomath.nan
. credential
is now required to be passed in for all content safety evaluators andProtectedMaterialsEvaluator
.DefaultAzureCredential
will no longer be chosen if a credential is not passed.- Changed package extra name from “pf-azure” to “remote”.
Bugs Fixed
- Adversarial Conversation simulations would fail with
Forbidden
. Added logic to re-fetch token in the exponential retry logic to retrive RAI Service response.
AI Evaluation 1.0.0b5 Changelog
Breaking Changes
- Renamed environment variable
PF_EVALS_BATCH_USE_ASYNC
toAI_EVALS_BATCH_USE_ASYNC
. RetrievalEvaluator
now requires acontext
input in addition toquery
in single-turn evaluation.RelevanceEvaluator
no longer takescontext
as an input. It now only takesquery
andresponse
in single-turn evaluation.FluencyEvaluator
no longer takesquery
as an input. It now only takesresponse
in single-turn evaluation.- AdversarialScenario enum does not include
ADVERSARIAL_INDIRECT_JAILBREAK
, invoking IndirectJailbreak or XPIA should be done withIndirectAttackSimulator
- Outputs of
Simulator
andAdversarialSimulator
previously hadto_eval_qa_json_lines
and now hasto_eval_qr_json_lines
. Whereto_eval_qa_json_lines
had:{"question": <user_message>, "answer": <assistant_message>}
to_eval_qr_json_lines
now has:{"query": <user_message>, "response": assistant_message}
Bugs Fixed
- Non adversarial simulator works with
gpt-4o
models using thejson_schema
response format - Fixed an issue where the
evaluate
API would fail with “[WinError 32] The process cannot access the file because it is being used by another process” when venv folder and target function file are in the same directory. - Fix evaluate API failure when
trace.destination
is set tonone
- Non adversarial simulator now accepts context from the callback
Features Added
- Added
GroundednessProEvaluator
, which is a service-based evaluator for determining response groundedness. - Groundedness detection in Non Adversarial Simulator via query/context pairs
import importlib.resources as pkg_resources package = "azure.ai.evaluation.simulator._data_sources" resource_name = "grounding.json" custom_simulator = Simulator(model_config=model_config) conversation_turns = [] with pkg_resources.path(package, resource_name) as grounding_file: with open(grounding_file, "r") as file: data = json.load(file) for item in data: conversation_turns.append([item]) outputs = asyncio.run(custom_simulator( target=callback, conversation_turns=conversation_turns, max_conversation_turns=1, ))
- Adding evaluator for multimodal use cases
AI Model Inference 1.0.0b5 Changelog
Features Added
- Support for OpenTelemetry tracing. Please find more information in the package README.md.
- When constructing clients using input
credential
of typeAzureKeyCredential
, two HTTP request headers are sent simultaneously for authentication:Authentication: Beater <key>
andapi-key: <key>
(previously only the first one was sent). This is to support different inference services, removing the need for the application to explicitly specify an additional HTTP request header.
Azure Monitor OpenTelemetry 1.6.3 Changelog
Features Added
- Enable Azure AI Inference instrumentation (#38071)
Azure Monitor OpenTelemetry 1.6.4 Changelog
Bugs Fixed
- Fixed bug caused by migration from pkg_resources to importlib-metadata (#38371)
Communication Call Automation 1.3.0b2 Changelog
Features Added
- Added CreateCallFailed event to signify when create call API fails to establish a call
Communication Messages 1.1.0 Changelog
Features Added
- Using
NotificationMessagesClient
- Send Video messages
- Send Audio messages
- Send Document messages
Core - Client - Core 1.32.0 Changelog
Features Added
- Added a default implementation to handle token challenges in
BearerTokenCredentialPolicy
andAsyncBearerTokenCredentialPolicy
.
Bugs Fixed
- Fixed an issue where the
tracing_attributes
keyword argument wasn’t being handled at the request/method level. #38164
Core - Management - Core 1.5.0 Changelog
Face 1.0.0b2 Changelog
Breaking Changes
- Changed the parameter of
create_liveness_with_verify_session
from modelCreateLivenessSessionContent
toCreateLivenessWithVerifySessionContent
. - Changed the enum value of
FaceDetectionModel
,FaceRecognitionModel
,LivenessModel
andVersions
.
Features Added
- Added support for the Large Face List and Large Person Group:
- Added operation groups
LargeFaceListOperations
andLargePersonGroupOperations
toFaceAdministrationClient
. - Added operations
find_similar_from_large_face_list
,identify_from_large_person_group
andverify_from_large_person_group
toFaceClient
. - Added models for supporting Large Face List and Large Person Group.
- Added support for latest Detect Liveness Session API:
- Added operations
get_session_image
anddetect_from_session_image
toFaceSessionClient
. - Added properties
enable_session_image
andliveness_single_modal_model
to modelCreateLivenessSessionContent
. - Added model
CreateLivenessWithVerifySessionContent
.
Face 0.6.1 Changelog
Other Changes
- This package has been deprecated and will no longer be maintained after 11-01-2024. This package will only receive security fixes until 11-01-2024. To receive updates on new features and non-security bug fixes, upgrade to the replacement package, azure-ai-vision-face.
Identity Broker 1.3.0b1 Changelog
Features Added
- Added broker on macOS support.
Image Analysis 1.0.0 Changelog
Other Changes
First stable release. No changes compared to previous beta release (1.0.0b3).
Key Vault - Administration 4.5.0 Changelog
Features Added
- Added support for Continuous Access Evaluation (CAE).
enable_cae=True
is passed to allget_token
requests.
Bugs Fixed
- Typing errors from using Key Vault clients as context managers have been fixed (#34744)
Key Vault - Certificates 4.9.0 Changelog
Features Added
- Added support for Continuous Access Evaluation (CAE).
enable_cae=True
is passed to allget_token
requests.
Bugs Fixed
- Typing errors from using Key Vault clients as context managers have been fixed (#34744)
Key Vault - Keys 4.10.0 Changelog
Features Added
- Added support for Continuous Access Evaluation (CAE).
enable_cae=True
is passed to allget_token
requests.
Bugs Fixed
- Typing errors from using Key Vault clients as context managers have been fixed (#34744)
Key Vault - Secrets 4.9.0 Changelog
Features Added
- Added support for Continuous Access Evaluation (CAE).
enable_cae=True
is passed to allget_token
requests.
Bugs Fixed
- Typing errors from using Key Vault clients as context managers have been fixed (#34744)
Machine Learning 1.21.1 Changelog
Bugs Fixed
- #37857 - Fix online deployment registry issue
Maps Route 1.0.0b2 Changelog
Breaking Changes
- Updated
get_route_matrix
to accept aRouteMatrixQuery
object instead of a dictionary.
Models Repository 1.0.0b2 Changelog
Other Changes
- This package has been deprecated and will no longer be maintained after 2024-02-24.
OpenTelemetry Exporter 1.0.0b32 Changelog
Breaking Changes
- Serialize complex objects provided as log or event bodies to JSON and fall back to string representation if they are not serializable. (#37694)
Resource Management - Elastic SAN 1.2.0b1 Changelog
Resource Management - App Configuration 3.1.0 Changelog
Resource Management - App Configuration 4.0.0 Changelog
Resource Management - App Platform 10.0.0 Changelog
Resource Management - Automation 1.1.0b4 Changelog
Resource Management - Compute Fleet 1.0.0 Changelog
Resource Management - Container Apps 3.2.0b1 Changelog
Resource Management - Container Instances 10.2.0b1 Changelog
Resource Management - Container Service 33.0.0 Changelog
Resource Management - Container Service Fleet 2.1.0 Changelog
Resource Management - Container Service Fleet 3.0.0 Changelog
Resource Management - Containerorchestratorruntime 1.0.0b1 Changelog
Resource Management - DNS 8.2.0 Changelog
Resource Management - DNS Resolver 1.1.0b2 Changelog
Resource Management - Data Box 3.0.0 Changelog
Resource Management - DevTest Labs 10.0.0b2 Changelog
Resource Management - Digital Twins 7.0.0 Changelog
Resource Management - Edge Order 2.0.0 Changelog
Resource Management - Elastic 1.1.0b4 Changelog
Resource Management - Extended Location 2.0.0 Changelog
Resource Management - Fabric 1.0.0 Changelog
Resource Management - Hybrid Compute 9.0.0 Changelog
Resource Management - Iotoperations 1.0.0b1 Changelog
Resource Management - Log Analytics 13.0.0b7 Changelog
Resource Management - Managed Services 7.0.0b2 Changelog
Resource Management - Management Groups 1.1.0b2 Changelog
Resource Management - Marketplace Ordering 1.2.0b2 Changelog
Resource Management - NetApp Files 13.3.0 Changelog
Resource Management - Network 28.0.0 Changelog
Resource Management - Postgresqlflexibleservers 1.1.0b1 Changelog
Resource Management - Red Hat OpenShift 2.0.0 Changelog
Resource Management - Redis Enterprise 3.1.0b2 Changelog
Resource Management - Resource Health 1.0.0b6 Changelog
Resource Management - Resources 23.2.0 Changelog
Resource Management - SQL 4.0.0b20 Changelog
Resource Management - Service Bus 8.2.1 Changelog
Resource Management - Service Fabric Managed Clusters 2.1.0b1 Changelog
Latest Releases
View all the latest versions of Python packages here.
Installation Instructions
To install the latest beta version of the packages, copy and paste the following commands into a terminal:
$> pip install azure-ai-evaluation==1.0.0b4
$> pip install azure-ai-evaluation==1.0.0b5
$> pip install azure-ai-inference==1.0.0b5
$> pip install azure-ai-ml==1.21.1
$> pip install azure-ai-vision-face==1.0.0b2
$> pip install azure-ai-vision-imageanalysis==1.0.0
$> pip install azure-cognitiveservices-vision-face==0.6.1
$> pip install azure-communication-callautomation==1.3.0b2
$> pip install azure-communication-messages==1.1.0
$> pip install azure-core==1.32.0
$> pip install azure-identity-broker==1.3.0b1
$> pip install azure-iot-modelsrepository==1.0.0b2
$> pip install azure-keyvault-administration==4.5.0
$> pip install azure-keyvault-certificates==4.9.0
$> pip install azure-keyvault-keys==4.10.0
$> pip install azure-keyvault-secrets==4.9.0
$> pip install azure-maps-route==1.0.0b2
$> pip install azure-mgmt-appconfiguration==3.1.0
$> pip install azure-mgmt-appconfiguration==4.0.0
$> pip install azure-mgmt-appcontainers==3.2.0b1
$> pip install azure-mgmt-appplatform==10.0.0
$> pip install azure-mgmt-automation==1.1.0b4
$> pip install azure-mgmt-computefleet==1.0.0
$> pip install azure-mgmt-containerinstance==10.2.0b1
$> pip install azure-mgmt-containerorchestratorruntime==1.0.0b1
$> pip install azure-mgmt-containerservice==33.0.0
$> pip install azure-mgmt-containerservicefleet==2.1.0
$> pip install azure-mgmt-containerservicefleet==3.0.0
$> pip install azure-mgmt-core==1.5.0
$> pip install azure-mgmt-databox==3.0.0
$> pip install azure-mgmt-devtestlabs==10.0.0b2
$> pip install azure-mgmt-digitaltwins==7.0.0
$> pip install azure-mgmt-dns==8.2.0
$> pip install azure-mgmt-dnsresolver==1.1.0b2
$> pip install azure-mgmt-edgeorder==2.0.0
$> pip install azure-mgmt-elastic==1.1.0b4
$> pip install azure-mgmt-elasticsan==1.2.0b1
$> pip install azure-mgmt-extendedlocation==2.0.0
$> pip install azure-mgmt-fabric==1.0.0
$> pip install azure-mgmt-hybridcompute==9.0.0
$> pip install azure-mgmt-iotoperations==1.0.0b1
$> pip install azure-mgmt-loganalytics==13.0.0b7
$> pip install azure-mgmt-managedservices==7.0.0b2
$> pip install azure-mgmt-managementgroups==1.1.0b2
$> pip install azure-mgmt-marketplaceordering==1.2.0b2
$> pip install azure-mgmt-netapp==13.3.0
$> pip install azure-mgmt-network==28.0.0
$> pip install azure-mgmt-postgresqlflexibleservers==1.1.0b1
$> pip install azure-mgmt-redhatopenshift==2.0.0
$> pip install azure-mgmt-redisenterprise==3.1.0b2
$> pip install azure-mgmt-resource==23.2.0
$> pip install azure-mgmt-resourcehealth==1.0.0b6
$> pip install azure-mgmt-servicebus==8.2.1
$> pip install azure-mgmt-servicefabricmanagedclusters==2.1.0b1
$> pip install azure-mgmt-sql==4.0.0b20
$> pip install azure-monitor-opentelemetry==1.6.3
$> pip install azure-monitor-opentelemetry==1.6.4
$> pip install azure-monitor-opentelemetry-exporter==1.0.0b32
Feedback
If you have a bug or feature request for one of the libraries, please post an issue to GitHub.