你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Azure Resources libraries for Python
Overview
Manage Azure resources in resource groups.
Package | Description |
---|---|
azure.mgmt.resource.features | Azure Feature Exposure Control (AFEC) provides a mechanism for the resource providers to control feature exposure to users. |
azure.mgmt.resource.links | Azure resources can be linked together to form logical relationships. You can establish links between resources belonging to different resource groups. |
azure.mgmt.resource.locks | Azure resources can be locked to prevent other users in your organization from deleting or modifying resources. |
azure.mgmt.resource.managedapplications | ARM managed applications (appliances). |
azure.mgmt.resource.policy | To manage and control access to your resources, you can define customized policies and assign them at a scope. |
azure.mgmt.resource.resources | Provides operations for working with resources and resource groups. |
azure.mgmt.resource.subscriptions | All resource groups and resources exist within subscriptions. These operation enable you get information about your subscriptions and tenants. |
Install the libraries
pip install azure-mgmt-resource
Example
The following is an example of how to create a resource group.
from azure.mgmt.resource import ResourceManagementClient
client = ResourceManagementClient(credentials, subscription_id)
client.resource_groups.create(RESOURCE_GROUP_NAME, {'location':'eastus'})
Explore more sample Python code you can use in your apps.