Microsoft Azure Servicebus Management Client Library for Python
Project description
Microsoft Azure SDK for Python
This is the Microsoft Azure Service Bus Management Client Library. This package has been tested with Python 3.10+. 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.10+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-servicebus
pip install azure-identity
Authentication
By default, Microsoft Entra token authentication depends on correct configuration of the 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.servicebus import ServiceBusManagementClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = ServiceBusManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at:
- Search Service Bus 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
10.0.0b2 (2026-07-07)
Features Added
- Client
ServiceBusManagementClientadded parametercloud_settingin method__init__ - Client
ServiceBusManagementClientadded methodsend_request - Client
ServiceBusManagementClientadded operation groupnetwork_security_perimeter_configurations - Client
ServiceBusManagementClientadded operation groupnetwork_security_perimeter_configuration - Enum
MigrationConfigurationNameadded memberDEFAULT - Model
ProxyResourceadded propertysystem_data - Model
Resourceadded propertysystem_data - Model
ResourceNamespacePatchadded propertysystem_data - Model
SBNamespaceUpdateParametersadded propertysystem_data - Enum
TlsVersionadded memberONE3 - Model
TrackedResourceadded propertysystem_data - Added model
ConfidentialCompute - Added model
FailOver - Added model
FailOverProperties - Added model
FailoverPropertiesProperties - Added enum
GeoDRRoleType - Added model
GeoDataReplicationProperties - Added enum
IpAddressType - Added enum
Mode - Added model
NamespaceFailoverProperties - Added model
NamespaceReplicaLocation - Added model
NetworkSecurityPerimeter - Added model
NetworkSecurityPerimeterConfiguration - Added model
NetworkSecurityPerimeterConfigurationProperties - Added model
NetworkSecurityPerimeterConfigurationPropertiesProfile - Added model
NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation - Added enum
NetworkSecurityPerimeterConfigurationProvisioningState - Added model
NspAccessRule - Added enum
NspAccessRuleDirection - Added model
NspAccessRuleProperties - Added model
NspAccessRulePropertiesSubscriptionsItem - Added model
PlatformCapabilities - Added model
ProvisioningIssue - Added model
ProvisioningIssueProperties - Added enum
ResourceAssociationAccessMode - Operation group
NamespacesOperationsadded methodbegin_failover - Added operation group
NetworkSecurityPerimeterConfigurationOperations - Added operation group
NetworkSecurityPerimeterConfigurationsOperations
Breaking Changes
- This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
- Model
ArmDisasterRecoverymoved instance variableprovisioning_state,pending_replication_operations_count,partner_namespace,alternate_nameandroleunder propertypropertieswhose type isArmDisasterRecoveryProperties - Model
MigrationConfigPropertiesmoved instance variableprovisioning_state,pending_replication_operations_count,target_namespace,post_migration_nameandmigration_stateunder propertypropertieswhose type isMigrationConfigPropertiesProperties - Model
NetworkRuleSetmoved instance variabletrusted_service_access_enabled,default_action,virtual_network_rules,ip_rulesandpublic_network_accessunder propertypropertieswhose type isNetworkRuleSetProperties - Model
PrivateEndpointConnectionmoved instance variableprivate_endpoint,private_link_service_connection_stateandprovisioning_stateunder propertypropertieswhose type isPrivateEndpointConnectionProperties - Model
PrivateLinkResourcemoved instance variablegroup_id,required_membersandrequired_zone_namesunder propertypropertieswhose type isPrivateLinkResourceProperties - Model
ProxyResourcedeleted or renamed its instance variablelocation - Model
Rulemoved instance variableaction,filter_type,sql_filterandcorrelation_filterunder propertypropertieswhose type isRuleproperties - Model
SBAuthorizationRulemoved instance variablerightsunder propertypropertieswhose type isSBAuthorizationRuleProperties - Model
SBNamespacemoved instance variableminimum_tls_version,provisioning_state,status,created_at,updated_at,service_bus_endpoint,metric_id,zone_redundant,encryption,private_endpoint_connections,disable_local_auth,alternate_name,public_network_accessandpremium_messaging_partitionsunder propertypropertieswhose type isSBNamespaceProperties - Model
SBNamespaceUpdateParametersmoved instance variableprovisioning_state,status,created_at,updated_at,service_bus_endpoint,metric_id,encryption,private_endpoint_connections,disable_local_authandalternate_nameunder propertypropertieswhose type isSBNamespaceUpdateProperties - Model
SBQueuemoved instance variablecount_details,created_at,updated_at,accessed_at,size_in_bytes,message_count,lock_duration,max_size_in_megabytes,max_message_size_in_kilobytes,requires_duplicate_detection,requires_session,default_message_time_to_live,dead_lettering_on_message_expiration,duplicate_detection_history_time_window,max_delivery_count,status,enable_batched_operations,auto_delete_on_idle,enable_partitioning,enable_express,forward_toandforward_dead_lettered_messages_tounder propertypropertieswhose type isSBQueueProperties - Model
SBSubscriptionmoved instance variablemessage_count,created_at,accessed_at,updated_at,count_details,lock_duration,requires_session,default_message_time_to_live,dead_lettering_on_filter_evaluation_exceptions,dead_lettering_on_message_expiration,duplicate_detection_history_time_window,max_delivery_count,status,enable_batched_operations,auto_delete_on_idle,forward_to,forward_dead_lettered_messages_to,is_client_affineandclient_affine_propertiesunder propertypropertieswhose type isSBSubscriptionProperties - Model
SBTopicmoved instance variablesize_in_bytes,created_at,updated_at,accessed_at,subscription_count,count_details,default_message_time_to_live,max_size_in_megabytes,max_message_size_in_kilobytes,requires_duplicate_detection,duplicate_detection_history_time_window,enable_batched_operations,status,support_ordering,auto_delete_on_idle,enable_partitioningandenable_expressunder propertypropertieswhose type isSBTopicProperties
Other Changes
- Deleted model
ArmDisasterRecoveryListResult/MigrationConfigListResult/NetworkRuleSetListResult/OperationListResult/PrivateEndpointConnectionListResult/RuleListResult/SBAuthorizationRuleListResult/SBNamespaceListResult/SBQueueListResult/SBSubscriptionListResult/SBTopicListResultwhich actually were not used by SDK users - Deleted model
FailoverProperties/SqlRuleActionwhich actually were not used by SDK users
10.0.0b1 (2025-07-15)
Breaking Changes
- This package now only targets the latest Api-Version available on Azure and removes APIs of other Api-Version. After this change, the package can have much smaller size. If your application requires a specific and non-latest Api-Version, it's recommended to pin this package to the previous released version; If your application always only use latest Api-Version, please ignore this change.
9.0.0 (2025-04-22)
Breaking Changes
- Removed subfolders of some unused Api-Versions for smaller package size. If your application requires a specific and non-latest Api-Version, it's recommended to pin this package to the previous released version; If your application always only use latest Api-Version, please ignore this change.
- Removed operation group EventHubsOperations
- Removed operation group PremiumMessagingRegionsOperations
- Removed operation group RegionsOperations
8.2.1 (2024-11-05)
Other Changes
- Update dependencies
8.2.0 (2023-02-15)
Features Added
- Model SBNamespace has a new parameter premium_messaging_partitions
8.1.0 (2022-08-10)
Features Added
- Model SBNamespace has a new parameter minimum_tls_version
- Model SBNamespace has a new parameter public_network_access
8.0.0 (2022-08-08)
Features
- Model ArmDisasterRecovery has a new parameter location
- Model MigrationConfigProperties has a new parameter location
- Model NetworkRuleSet 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 OperationDisplay has a new parameter description
- Model PrivateEndpointConnection has a new parameter location
- Model Rule has a new parameter location
- Model SBAuthorizationRule has a new parameter location
- Model SBNamespace has a new parameter alternate_name
- Model SBNamespaceUpdateParameters has a new parameter alternate_name
- Model SBQueue has a new parameter location
- Model SBSubscription has a new parameter location
- Model SBTopic has a new parameter location
Breaking changes
- Model SBNamespaceUpdateParameters no longer has parameter zone_redundant
7.1.0 (2021-09-23)
Features
- Model NetworkRuleSet has a new parameter public_network_access
- Model NetworkRuleSet has a new parameter trusted_service_access_enabled
- Model SBQueue has a new parameter max_message_size_in_kilobytes
- Model SBTopic has a new parameter max_message_size_in_kilobytes
- Model SBNamespace has a new parameter status
- Model SBNamespace has a new parameter disable_local_auth
- Model SBSubscription has a new parameter is_client_affine
- Model SBSubscription has a new parameter client_affine_properties
- Model SBNamespaceUpdateParameters has a new parameter status
- Model SBNamespaceUpdateParameters has a new parameter disable_local_auth
7.0.0 (2021-08-19)
Features
- Model Rule has a new parameter system_data
- Model SBNamespaceUpdateParameters has a new parameter private_endpoint_connections
- Model PrivateEndpointConnection has a new parameter system_data
- Model SBTopic has a new parameter system_data
- Model Identity has a new parameter user_assigned_identities
- Model SBNamespace has a new parameter system_data
- Model SBNamespace has a new parameter private_endpoint_connections
- Model Encryption has a new parameter require_infrastructure_encryption
- Model SBAuthorizationRule has a new parameter system_data
- Model SBSubscription has a new parameter system_data
- Model KeyVaultProperties has a new parameter key_version
- Model KeyVaultProperties has a new parameter identity
- Model ArmDisasterRecovery has a new parameter system_data
- Model NetworkRuleSet has a new parameter system_data
- Model SBQueue has a new parameter system_data
- Model MigrationConfigProperties has a new parameter system_data
- Added operation NamespacesOperations.list_network_rule_sets
Breaking changes
- Parameter id of model Subnet is now required
- Removed operation NamespacesOperations.list_virtual_network_rules
- Removed operation NamespacesOperations.migrate
- Removed operation NamespacesOperations.delete_ip_filter_rule
- Removed operation NamespacesOperations.get_virtual_network_rule
- Removed operation NamespacesOperations.create_or_update_ip_filter_rule
- Removed operation NamespacesOperations.delete_virtual_network_rule
- Removed operation NamespacesOperations.get_ip_filter_rule
- Removed operation NamespacesOperations.list_ip_filter_rules
- Removed operation NamespacesOperations.create_or_update_virtual_network_rule
6.0.0 (2020-11-23)
Features
- Model SBNamespaceUpdateParameters has a new parameter zone_redundant
- Model SBNamespaceUpdateParameters has a new parameter identity
- Model SBNamespaceUpdateParameters has a new parameter encryption
- Model SBNamespace has a new parameter zone_redundant
- Model SBNamespace has a new parameter identity
- Model SBNamespace has a new parameter encryption
- Added operation NamespacesOperations.get_ip_filter_rule
- Added operation NamespacesOperations.list_ip_filter_rules
- Added operation NamespacesOperations.delete_virtual_network_rule
- Added operation NamespacesOperations.list_virtual_network_rules
- Added operation NamespacesOperations.get_virtual_network_rule
- Added operation NamespacesOperations.create_or_update_ip_filter_rule
- Added operation NamespacesOperations.delete_ip_filter_rule
- Added operation NamespacesOperations.create_or_update_virtual_network_rule
- Added operation group PrivateLinkResourcesOperations
- Added operation group PrivateEndpointConnectionsOperations
Breaking changes
- Operation DisasterRecoveryConfigsOperations.fail_over has a new signature
- Model ErrorResponse has a new signature
- Removed operation NamespacesOperations.list_network_rule_sets
6.0.0b1 (2020-10-12)
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.
1.0.0 (2020-09-16)
Features
- Model SBNamespace has a new parameter zone_redundant
- Model SBNamespace has a new parameter encryption
- Model SBNamespaceUpdateParameters has a new parameter zone_redundant
- Model SBNamespaceUpdateParameters has a new parameter identity
- Model SBNamespaceUpdateParameters has a new parameter encryption
- Added operation NamespacesOperations.create_or_update_virtual_network_rule
- Added operation NamespacesOperations.create_or_update_ip_filter_rule
- Added operation NamespacesOperations.list_virtual_network_rules
- Added operation NamespacesOperations.delete_ip_filter_rule
- Added operation NamespacesOperations.list_ip_filter_rules
- Added operation NamespacesOperations.get_ip_filter_rule
- Added operation NamespacesOperations.get_virtual_network_rule
- Added operation NamespacesOperations.delete_virtual_network_rule
- Added operation group PrivateLinkResourcesOperations
- Added operation group PrivateEndpointConnectionsOperations
Breaking changes
- Model ErrorResponse has a new signature
0.6.0 (2019-04-09)
Features
- Added operation NamespacesOperations.get_network_rule_set
- Added operation NamespacesOperations.migrate
- Added operation NamespacesOperations.create_or_update_network_rule_set
0.5.4 (2019-02-15)
Features
- Added operation NamespacesOperations.migrate
0.5.3 (2018-10-29)
Bugfix
- Fix sdist broken in 0.5.2. No code change.
0.5.2 (2018-09-28)
Features
- Model MigrationConfigProperties has a new parameter migration_state
Note
- azure-mgmt-nspkg is not installed anymore on Python 3 (PEP420-based namespace package)
0.5.1 (2018-07-09)
Features
- Add pending_replication_operations_count
Bugfixes
- Fix some Py3 import models
0.5.0 (2018-04-26)
General Breaking changes
This version uses a next-generation code generator that might introduce breaking changes.
- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments. To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to
improve the behavior when unrecognized enum values are encountered.
While this is not a breaking change, the distinctions are important,
and are documented here:
https://docs.python.org/3/library/enum.html#others At a glance:
- "is" should not be used at all.
- "format" will return the string value, where "%s" string
formatting will return
NameOfEnum.stringvalue. Format syntax should be prefered.
- New Long Running Operation:
- Return type changes from
msrestazure.azure_operation.AzureOperationPollertomsrest.polling.LROPoller. External API is the same. - Return type is now always a
msrest.polling.LROPoller, regardless of the optional parameters used. - The behavior has changed when using
raw=True. Instead of returning the initial call result asClientRawResponse, without polling, now this returns an LROPoller. After polling, the final resource will be returned as aClientRawResponse. - New
pollingparameter. The default behavior isPolling=Truewhich will poll using ARM algorithm. WhenPolling=False, the response of the initial call will be returned without polling. pollingparameter accepts instances of subclasses ofmsrest.polling.PollingMethod.add_done_callbackwill no longer raise if called after polling is finished, but will instead execute the callback right away.
- Return type changes from
SDK Features
- Client class can be used as a context manager to keep the underlying HTTP session open for performance
ServiceBus features
- Add dead_lettering_on_filter_evaluation_exceptions
- Add enable_batched_operations property to ServiceBus Queue
- Add migration_config operations
- Add skip and top to list commands
- Add 'properties' to CorrelationFilter
- Remove 'enableSubscriptionPartitioning' deprecated property
0.4.0 (2017-12-12)
Features
- Add alternate_name to some models (GEO DR pairing)
- Add disaster_recovery_configs.check_name_availability_method
- Add disaster_recovery_configs.list_authorization_rules
- Add disaster_recovery_configs.get_authorization_rule
- Add disaster_recovery_configs.list_keys
0.3.1 (2017-12-08)
Bugfixes
- Add missing forward_to, forward_dead_lettered_messages_to
- "rights" is now required, as expected, for operations called create_or_update_authorization_rule
0.3.0 (2017-10-26)
Features
- Add disaster_recovery_configs operation group
- Add regions operation group
- Add premium_messgings_regions operation group
- Add event_hubs operation group
- Add Geo DR
0.2.0 (2017-06-26)
- New API Version 2017-04-01
- Expect breaking changes, as a unstable client
This wheel package is built with the azure wheel extension
0.1.0 (2016-10-27)
- Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_mgmt_servicebus-10.0.0b2.tar.gz.
File metadata
- Download URL: azure_mgmt_servicebus-10.0.0b2.tar.gz
- Upload date:
- Size: 144.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1c1292fa733ed6fa3431380798a8c486f333d5ed09a47495c29f2d5a3c5492e
|
|
| MD5 |
6733b8a8c434678eec1d7e2dd97844b4
|
|
| BLAKE2b-256 |
a15a05f506f243aa5715ff82ac3af0fbc61a97dfe733efbc8989617b8e331067
|
File details
Details for the file azure_mgmt_servicebus-10.0.0b2-py3-none-any.whl.
File metadata
- Download URL: azure_mgmt_servicebus-10.0.0b2-py3-none-any.whl
- Upload date:
- Size: 127.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ee0e54b9a10c0b5fafba01d94f98fd88127c38da0edc848c204fb550745a1c5
|
|
| MD5 |
5f61afb30ad4edda0d0efe6802f447ba
|
|
| BLAKE2b-256 |
59b77e66c7a8773c8992f6ac96c299358dc22ed03a03cdad2c9f79b85cf7a2e9
|