Package: azure-mgmt-subscription
Microsoft Azure SDK for PythonThis is the Microsoft Azure Subscription Management Client Library.
This package has been tested with Python 3.7+.
For a more complete view of Azure libraries, see theazure sdk python release.DisclaimerAzure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer tohttps://github.com/Azure/azure-sdk-for-python/issues/20691UsageTo learn how to use this package, see thequickstart guideFor docs and references, seePython SDK ReferencesCode samples for this package can be found atSubscription Managementon docs.microsoft.com.
Additional code samples for different Azure services are available atSamples RepoProvide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History3.1.1 (2022-09-05)Bugs FixedFix error aboutapi_versionin operation3.1.0 (2022-08-30)Features AddedModel AcceptOwnershipStatusResponse has a new parameter provisioning_state3.0.0 (2022-01-21)FeaturesAdded operation group SubscriptionsOperationsAdded operation group TenantsOperationsModel CanceledSubscriptionId has a new parameter subscription_idModel EnabledSubscriptionId has a new parameter subscription_idModel RenamedSubscriptionId has a new parameter subscription_idModel SubscriptionAliasResponseProperties has a new parameter created_timeBreaking changesModel CanceledSubscriptionId no longer has parameter valueModel EnabledSubscriptionId no longer has parameter valueModel RenamedSubscriptionId no longer has parameter value2.0.0 (2021-11-25)FeaturesModel PutAliasRequestProperties has a new parameter additional_propertiesModel Operation has a new parameter is_data_actionModel ErrorResponseBody has a new parameter codeModel ErrorResponseBody has a new parameter messageModel OperationDisplay has a new parameter descriptionAdded operation SubscriptionOperations.begin_accept_ownershipAdded operation SubscriptionOperations.accept_ownership_statusAdded operation group SubscriptionPolicyOperationsAdded operation group BillingAccountOperationsBreaking changesRemoved operation group TenantsOperationsRemoved operation group SubscriptionsOperations(SubscriptionsOperations can be used inazure-mgmt-resource)1.0.0 (2020-12-16)GA release1.0.0b1 (2020-10-23)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 changesCredential system has been completly revamped:azure.common.credentials or msrestazure.azure_active_directory instances are no longer supported, use the azure-identity classes instead:https://pypi.org/project/azure-identity/credentials parameter has been renamed credential
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-coreYou can't import a version module anymore, useversioninsteadOperations that used to return a msrest.polling.LROPoller now returns a azure.core.polling.LROPoller and are prefixed with begin_.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 using cls, 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 featuresType 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.0.7.0 (2020-10-12)FeaturesAdded operation group AliasOperationsBreaking changesRemoved operation SubscriptionOperations.create_subscription_in_enrollment_accountRemoved operation SubscriptionOperations.create_subscriptionRemoved operation SubscriptionOperations.create_csp_subscriptionRemoved operation group SubscriptionOperationOperations0.6.0 (2020-06-05)FeaturesModel SubscriptionCreationParameters has a new parameter management_group_idAdded operation SubscriptionOperations.create_subscription_in_enrollment_accountAdded operation SubscriptionOperations.create_subscriptionAdded operation SubscriptionOperations.create_csp_subscriptionAdded operation SubscriptionOperations.cancelAdded operation SubscriptionOperations.renameAdded operation SubscriptionOperations.enableBreaking changesModel ModernSubscriptionCreationParameters no longer has parameter billing_profile_idRemoved operation SubscriptionsOperations.cancelRemoved operation SubscriptionsOperations.renameRemoved operation SubscriptionsOperations.enableRemoved operation SubscriptionOperations.listRemoved operation group SubscriptionFactoryOperations0.5.0 (2019-08-21)FeaturesAdded operation SubscriptionsOperations.enableAdded operation group SubscriptionOperationOperationsAdded operation group SubscriptionOperationsAdded operation group SubscriptionFactoryOperationsGeneral Breaking changesThis version uses a next-generation code generator thatmightintroduce breaking changes if from some import. In summary, some modules
were incorrectly visible/importable and have been renamed. This fixed
several issues caused by usage of classes that were not supposed to be
used in the first place.SubscriptionClient cannot be imported fromazure.mgmt.subscription.subscription_clientanymore (import
fromazure.mgmt.subscriptionworks like before)SubscriptionClientConfiguration import has been moved fromazure.mgmt.subscription.subscription_clienttoazure.mgmt.subscriptionA modelMyClassfrom a "models" sub-module cannot be imported
anymore usingazure.mgmt.subscription.models.my_class(import
fromazure.mgmt.subscription.modelsworks like before)An operation classMyClassOperationsfrom anoperationssub-module cannot be imported anymore usingazure.mgmt.subscription.operations.my_class_operations(import
fromazure.mgmt.subscription.operationsworks like before)Last but not least, HTTP connection pooling is now enabled by default.
You should always use a client as a context manager, or call close(), or
use no more than one client per process.0.4.1 (2019-05-24)Bug fixRemove subscription_id as a client required parameter0.4.0 (2019-05-21)FeaturesAdded operation SubscriptionsOperations.renameAdded operation SubscriptionsOperations.cancelBreaking changesRemoved operation group SubscriptionFactoryOperationsRemoved operation group SubscriptionOperationOperations0.3.0 (2019-04-05)FeaturesAdded operation SubscriptionFactoryOperations.create_subscriptionAdded operation group SubscriptionOperationOperationsBreaking changesModel SubscriptionCreationParameters has a new signatureDeprecationRemoved operation
SubscriptionFactoryOperations.create_subscription_in_enrollment_accountRemoved operation group SubscriptionOperations0.2.0 (2018-04-01)Add subscription creation API0.1.0 (2017-12-11)Initial Release