2017-05-16 azure 2.0.0
Disclaimer
Starting with this release, we fixed several packaging issues to improve our package generation system
- Uninstalling of packages using "pip uninstall" now works properly (#1150)
- setuptools install of "azure" works properly (#728)
Update from 2.0.0rc6 might work, but we strongly suggest creating a fresh virtual environment.
Features
CLI configuration
You can now execute your SDK script using the configuration of the AzureCLI
Example:
from azure.common.client_factory import get_client_from_cli_profile
from azure.mgmt.compute import ComputeManagementClient
client = get_client_from_cli_profile(ComputeManagementClient)
client.virtual_machines.get('rg', 'vm')
Configuration from the CLI is:
- az login: access to credentials
- az account set --subscriptions: access to subscription_id
- az cloud set --name: access to base_url (sovereign cloud)
Note: CLI and SDK are versioned separately. We do recommend using two different virtual environments. Information will be shared automatically since the CLI saves it in the $HOME folder. You do need the azure-cli-core
package in your SDK environment to use this feature.
Multiple API Version support
To help support of sovereign cloud (i.e. AzureStack, Azure Government, Azure Germany, Microsoft Azure operated by 21Vianet - China), the following packages
now officially support several API versions in the same package:
- azure-mgmt-resource v1.1.x
- azure-mgmt-compute v1.0.x
- azure-mgmt-network v1.0.x
- azure-mgmt-storage v1.0.x
Please refer to the PyPI page of these packages for supported ApiVersion.
Breaking changes
The Azure SDK for Python now has too many services to provide an unique ChangeLog. Please refer to each package's HISTORY.txt for details compared to 2.0.0rc6.
The complete list of packages installed is:
- azure-batch v3.0.0
- azure-datalake-store v0.0.x
- azure-graphrbac v0.30.x
- azure-keyvault v0.3.x
- azure-servicebus v0.21.x
- azure-servicefabric v5.6.130
- azure-servicemanagement-legacy v0.20.x
- azure-storage v0.34.x
- azure-mgmt-authorization v0.30.x
- azure-mgmt-batch v4.0.x
- azure-mgmt-cdn v0.30.x
- azure-mgmt-cognitiveservices v1.0.x
- azure-mgmt-compute v1.0.x
- azure-mgmt-containerregistry v0.2.x
- azure-mgmt-datalake-analytics v0.1.x
- azure-mgmt-datalake-store v0.1.x
- azure-mgmt-devtestlabs v2.0.x
- azure-mgmt-dns v1.0.x
- azure-mgmt-documentdb v0.1.x
- azure-mgmt-iothub v0.2.x
- azure-mgmt-keyvault v0.31.x
- azure-mgmt-logic v2.1.x
- azure-mgmt-network v1.0.x
- azure-mgmt-rdbms v0.1.x
- azure-mgmt-redis v4.1.x
- azure-mgmt-resource v1.1.x
- azure-mgmt-scheduler v1.1.x
- azure-mgmt-sql v0.5.x
- azure-mgmt-storage v1.0.x
- azure-mgmt-trafficmanager v0.30.x
- azure-mgmt-web v0.32.x
More packages are available, but they are in preview with not enough tests currently and are not included in this bundle. More details here:
http://azure-sdk-for-python.readthedocs.io/en/latest/installation.html