Azure provides a rich Python SDK for development management of Azure, including creating Web applications on Azure with an open source framework for Azure, Managing Azure virtual machines, storage, and so on, and this series will briefly describe how the ASM and ARM modes Management of Azure.
1. First we need to configure the basic development environment, thanks to Python's multiplatform support, Azure also offers the SDK versions of Linux, Windows and Macs, allowing Python developers from different platforms to quickly create Azure-based apps.
2. Before you start the test, you need an azure account, you can apply for a test on the Azure official website, or pay with web-direct, and if your business already has an azure account, ask your enterprise administrator for a test account. Install Python now the main The Python version has 2. X series and 3.X series, they have some differences in function function, writing, use, and the most important is 2.x is currently the latest 2.7.x will gradually exit the stage, but now because of the wide use, so compatibility is better, especially you have some old Python applications, and Python 3.x is the direction of the future, and has gradually been widely used, so there is no special request, we recommend the use of Python 3.X
3. Download and install Python:
- You can download it directly from the Python website: www.python.org
- You can also download from some of his distribution providers, such as: http://www.activestate.com/, https://www.enthought.com/,https://www.continuum.io/
- One of my personal more commonly used is the last one, contains a lot of machine learning library, such as Sklearn, NumPy and so on, save you to install dependent.
4. Once the Python installation is complete, you can install the Azure SDK on the Windows platform, Linux platform, Mac platform, using PIP, before installing, remember to upgrade your PIP version first:
python-m pip install--upgrade pip
5. Install the SDK for Azure:
Install the Azure SDK on Windows:
Pip Install Azure
Install the Azure SDK on Linux:
sudo pip install Azure
6. In addition to installing the standard Azure Library, if you are also developing storage,servicebus in Python, to develop some legacy programs, continue to install the following module:
#安装Azure的存储库
Pip Install Azure-storage
#安装ARM管理库
pip Install azure-mgmt
#安装老的ASM管理库
pip Install azure-servicemanagement-legacy
#安装servicebus的库
pip Install Azure-servicebus
If you see all of the above Morgul installed, try the upgrade installation to see if the latest libraries are installed:
pip Install Azure-storage–upgrade
7. Alternatively, you can use the Web Platform Installer to install it, and he will help you install the default Python and SDK:
Microsoft Azure SDK for Python 2.7
Microsoft Azure SDK for Python 3.4
The final test, if you are interested, can be viewed here, but also welcome to talk to me.
Manage Azure with Python: Basic configuration