Azure Resources libraries for Python
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. |
pip install azure-mgmt-resource
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.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python feedback
Azure SDK for Python is an open source project. Select a link to provide feedback: