Authenticating to the Azure Resource Manager API