Azure Python SDK: 'ServicePrincipalCredentials' object has no attribute 'get_token'
So I have the following Python3 script to list all virtual machines. import os, json from azure.mgmt.compute import ComputeManagementClient from azure.mgmt.network import NetworkManagementClient from azure.mgmt.resource import ResourceManagementClient, SubscriptionClient from azure.common.credentials import ServicePrincipalCredentials credentials = ServicePr