skip to Main Content

Azure python sdk get attributes from virtual machine – CentOS

I follow this example from microsoft to get a list of virtual machines: https://github.com/Azure-Samples/virtual-machines-python-manage/blob/master/example.py My code: from azure.mgmt.compute import ComputeManagementClient from azure.common.credentials import ServicePrincipalCredentials def get_credentials(): subscription_id = AZURE_SUBSCRIPTION_ID credentials = ServicePrincipalCredentials( client_id=AZURE_CLIENT_ID, secret=AZURE_CLIENT_SECRET, tenant=AZURE_TENANT_ID ) return credentials, subscription_id credentials,…

VIEW QUESTION
Back To Top
Search