azure-mgmt-eventhub
Microsoft Azure Event Hub Management Client Library for Python
Description
Microsoft Azure SDK for Python
This is the Microsoft Azure Event Hub Management Client Library. This package has been tested with Python 3.8+. For a more complete view of Azure libraries, see the azure sdk python release.
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Python 3.8+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-eventhub
pip install azure-identity
Authentication
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.
In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.
With above configuration, client can be authenticated by following code:
from azure.identity import DefaultAzureCredential
from azure.mgmt.eventhub import EventHubManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = EventHubManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at:
- Search Event Hub Management on docs.microsoft.com
- Azure Python Mgmt SDK Samples Repo
Troubleshooting
Next steps
Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
11.2.0 (2025-01-20)
Features Added
- Added operation NamespacesOperations.begin_failover
- Model EHNamespace has a new parameter geo_data_replication
- Model Eventhub has a new parameter identifier
- Model Eventhub has a new parameter message_timestamp_description
- Model RetentionDescription has a new parameter min_compaction_lag_in_mins
11.1.0 (2024-09-02)
Features Added
- Model Cluster has a new parameter provisioning_state
- Model Destination has a new parameter identity
- Model Eventhub has a new parameter user_metadata
- Model NetworkSecurityPerimeterConfiguration has a new parameter applicable_features
- Model NetworkSecurityPerimeterConfiguration has a new parameter is_backing_resource
- Model NetworkSecurityPerimeterConfiguration has a new parameter location
- Model NetworkSecurityPerimeterConfiguration has a new parameter parent_association_name
- Model NetworkSecurityPerimeterConfiguration has a new parameter source_resource_id
11.0.0 (2023-04-14)
Features Added
- Model Eventhub has a new parameter retention_description
Breaking Changes
- Model NetworkSecurityPerimeterConfiguration no longer has parameter location
- Model NetworkSecurityPerimeterConfiguration no longer has parameter tags
11.0.0b1 (2023-02-14)
Features Added
- Model Eventhub has a new parameter retention_description
Breaking Changes
- Model NetworkSecurityPerimeterConfiguration no longer has parameter location
- Model NetworkSecurityPerimeterConfiguration no longer has parameter tags
10.1.0 (2022-06-22)
Features
- Added operation group ApplicationGroupOperations
- Added operation group NetworkSecurityPerimeterConfigurationOperations
- Added operation group NetworkSecurityPerimeterConfigurationsOperations
- Model Cluster has a new parameter supports_scaling
- Model EHNamespace has a new parameter minimum_tls_version
- Model EHNamespace has a new parameter public_network_access
10.0.0 (2021-11-01)
Features
- Model ErrorResponse has a new parameter error
- Model NetworkRuleSet has a new parameter location
- Model Eventhub has a new parameter location
- Model ConsumerGroup has a new parameter location
- Model ArmDisasterRecovery has a new parameter location
- Model Operation has a new parameter is_data_action
- Model Operation has a new parameter origin
- Model Operation has a new parameter properties
- Model PrivateEndpointConnection has a new parameter location
- Model Destination has a new parameter data_lake_account_name
- Model Destination has a new parameter data_lake_subscription_id
- Model Destination has a new parameter data_lake_folder_path
- Model EHNamespace has a new parameter alternate_name
- Model OperationDisplay has a new parameter description
- Model AuthorizationRule has a new parameter location
- Added operation NamespacesOperations.list_network_rule_set
- Added operation group SchemaRegistryOperations
Breaking changes
- Model ErrorResponse no longer has parameter message
- Model ErrorResponse no longer has parameter code
9.1.0 (2021-09-17)
Features
- Model Cluster has a new parameter system_data
- Model EHNamespace has a new parameter disable_local_auth
- Model EHNamespace has a new parameter status
- Model NetworkRuleSet has a new parameter public_network_access
- Added operation ClustersOperations.list_by_subscription
9.0.0 (2021-05-25)
Features
- Model NetworkRuleSet has a new parameter system_data
- Model ConsumerGroup has a new parameter system_data
- Model PrivateEndpointConnection has a new parameter system_data
- Model EHNamespace has a new parameter system_data
- Model EHNamespace has a new parameter private_endpoint_connections
- Model ArmDisasterRecovery has a new parameter system_data
- Model Identity has a new parameter user_assigned_identities
- Model Eventhub has a new parameter system_data
- Model KeyVaultProperties has a new parameter identity
- Model AuthorizationRule has a new parameter system_data
- Model Encryption has a new parameter require_infrastructure_encryption
Breaking changes
- Removed operation NamespacesOperations.list_ip_filter_rules
- Removed operation NamespacesOperations.delete_virtual_network_rule
- Removed operation NamespacesOperations.delete_ip_filter_rule
- Removed operation NamespacesOperations.list_virtual_network_rules
- Removed operation NamespacesOperations.create_or_update_virtual_network_rule
- Removed operation NamespacesOperations.get_virtual_network_rule
- Removed operation NamespacesOperations.create_or_update_ip_filter_rule
- Removed operation NamespacesOperations.get_ip_filter_rule
8.0.0 (2020-09-16)
Features
- Model NetworkRuleSet has a new parameter trusted_service_access_enabled
- Added operation group PrivateEndpointConnectionsOperations
- Added operation group PrivateLinkResourcesOperations
8.0.0b1 (2020-06-17)
This is beta preview version.
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.credentialsormsrestazure.azure_active_directoryinstances are no longer supported, use theazure-identityclasses instead: https://pypi.org/project/azure-identity/credentialsparameter has been renamedcredential
-
The
configattribute 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
versionmodule anymore, use__version__instead -
Operations that used to return a
msrest.polling.LROPollernow returns aazure.core.polling.LROPollerand are prefixed withbegin_. -
Exceptions tree have been simplified and most exceptions are now
azure.core.exceptions.HttpResponseError(CloudErrorhas been removed). -
Most of the operation kwarg have changed. Some of the most noticeable:
rawhas 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
aionamespace 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.
4.0.0 (2020-06-12)
Features
- Model Cluster has a new parameter updated_at
- Model Cluster has a new parameter created_at
- Added operation ClustersOperations.update
- Added operation ClustersOperations.create_or_update
- Added operation ClustersOperations.list_available_cluster_region
** Breaking changes**
- Model Cluster no longer has parameter created
- Model Cluster no longer has parameter updated
- Removed operation ClustersOperations.put
- Removed operation ClustersOperations.list_available_clusters
- Removed operation ClustersOperations.patch
3.1.0 (2020-05-13)
Features
- Model EHNamespace has a new parameter encryption
- Model EHNamespace has a new parameter identity
- Model EHNamesp