Изменить

Поделиться через


Библиотеки ресурсов Azure для PythonAzure Resources libraries for python

ОбзорOverview

Развертывайте, отслеживайте и администрируйте ресурсы в группах с помощью Azure Resource Manager.Deploy, monitor, and manage resources in groups with Azure Resource Manager.

API управленияManagement API

Используйте API управления для создания групп ресурсов и развертывания ресурсов на основе шаблонов.Use the management API to create resource groups and deploy resources from templates.

pip install azure-mgmt-resource

ПримерExample

Создайте группу ресурсов в следующем регионе Azure: восточная часть США.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 with .NET (Управление ресурсами и группами ресурсов Azure с помощью .NET)Manage Azure resources and resource groups

См. полный список примеров для Azure Resource Manager.View the complete list of Azure Resource Manager samples.