Azure SDK for Python

Installation:

The latest recommended release is currently a release candidate, tell this to pip to install it!

The azure bundle meta-package will install all Azure SDKs at once:

  • Use the --pre flag: pip install --pre azure
  • Specify the version: pip install azure==2.0.0rc5

You can also install only what you exactly need:

  • Use the --pre flag: pip install --pre azure-mgmt-compute
  • Specify the version: pip install azure-mgmt-compute==0.30.0rc5

If you want to install azure from source:

git clone git://github.com/Azure/azure-sdk-for-python.git
cd azure-sdk-for-python
python setup.py install

DISCLAIMER

This is a release candidate. However, the core packages, from code quality/completeness perspectives can at this time be considered “stable” - it will be officially labeled as such in September (in sync with other languages).

We are not planning on any further major changes until then.

The following packages are still labeled “preview” but can be considered “stable”:

  • azure-mgmt-resource 0.30.0rc5
  • azure-mgmt-compute 0.30.0rc5
  • azure-mgmt-network 0.30.0rc5
  • azure-mgmt-storage 0.30.0rc5

The following packages are already released as “stable” and are officially production ready:

  • azure-batch 1.0.0
  • azure-mgmt-batch 1.0.0
  • azure-servicebus 0.20.3
  • azure-servicemanagement-legacy 0.20.4

All other packages are real “preview” packages. Please send us your feedback!

Features:

  • Storage Blob, File, Table, Queue

  • Service Bus

    • Queues: create, list and delete queues; create, list, and delete subscriptions; send, receive, unlock and delete messages
    • Topics: create, list, and delete topics; create, list, and delete rules
  • Batch Runtime

    • Manage Batch pools, jobs, task and job schedules
  • Azure Active Directory Graph RBAC API

    • Users
    • Applications
    • and more
  • Resource Management

    • Authorization: permissions, subscriptions, roles and more

    • Batch: manage Batch accounts and applications

    • CDN: profiles, endpoints creation and more

    • Commerce: RateCard and Usage Billing API

    • Cognitive Services: Manage your accounts

    • Compute: create virtual machines and more

    • Apps:

      • Logic Apps: Workflow and job management
      • Web Apps: App Service Plan, web sites, certificate, domains and more
    • Network: create virtual networks, network interfaces, public ips and more

    • Notification Hubs: Namespaces, hub creation/deletion and more

    • PowerBI Embedded: Manage your workspaces

    • Redis: create cache and more

    • Resource:

      • resources : create resource groups, register providers and more
      • features : manage features of provider and more
      • locks : manage resource group lock and more
      • subscriptions : manage subscriptions and more
    • Scheduler: create job collections, create job and more

    • Storage: create storage accounts, list keys, and more

  • Service Management

    • storage accounts: create, update, delete, list, regenerate keys
    • affinity groups: create, update, delete, list, get properties
    • locations: list
    • hosted services: create, update, delete, list, get properties
    • deployment: create, get, delete, swap, change configuration, update status, upgrade, rollback
    • role instance: reboot, reimage
    • discover addresses and ports for the endpoints of other role instances in your service
    • get configuration settings and access local resources
    • get role instance information for current role and other role instances
    • query and set the status of the current role

System Requirements:

The supported Python versions are 2.7.x, 3.3.x, 3.4.x, and 3.5.x To download Python, please visit https://www.python.org/download/

We recommend Python Tools for Visual Studio as a development environment for developing your applications. Please visit http://aka.ms/python for more information.

Need Help?:

Be sure to check out the Microsoft Azure Developer Forums on Stack Overflow if you have trouble with the provided code.

Contributing:

Contribute Code or Provide Feedback:

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

If you encounter any bugs with the library please file an issue in the Issues section of the project.

Indices and tables