Azure Resources libraries for python


Deploy, monitor, and manage resources in groups with Azure Resource Manager.

Management API

Use the management API to create resource groups and deploy resources from templates.

pip install azure-mgmt-resource


Create a new resource group in the Azure Eastern US region.

from azure.mgmt.resource import ResourceManagementClient

LOCATION = 'eastus'
GROUP_NAME ='sample_resource_group'

resource_client = ResourceManagementClient(credentials, subscription_id)
resource_client.resource_groups.create_or_update(GROUP_NAME, {'location': LOCATION})


Manage Azure resources and resource groups

View the complete list of Azure Resource Manager samples.