Overview
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
Example
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})
Samples
Manage Azure resources and resource groups
View the complete list of Azure Resource Manager samples.
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Python