Azure Resources libraries for python
Deploy, monitor, and manage resources in groups with Azure Resource Manager.
Use the management API to create resource groups and deploy resources from templates.
pip install azure-mgmt-resource
pip install azure-identity
Create a new resource group in the Azure Eastern US region.
from azure.identity import DefaultAzureCredential
from azure.mgmt.resource import ResourceManagementClient
import os
LOCATION = 'eastus'
GROUP_NAME ='sample_resource_group'
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = ResourceManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
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.
Azure SDK for Python-visszajelzés
A(z) Azure SDK for Python egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: