TLS 1.2 in Azure Function connecting to Dynamics 365
July 2017 update for Dynamics 365 (online) requires connections to customer engagement applications to utilize TLS 1.2 (or better) security. If you are connecting to July 2017 update for Dynamics 365 (online) from an Azure Function using Xrm Tooling dlls, you may experience error being returned, "Unable to login to dynamics crm ...". This is because the .NET Framework version of Azure Function (C#) is 4.6.1, and by default it doesn't use TLS 1.2. To fix this, just add ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; before you initialize the CrmServiceClient object. using System; using System.Configuration; using System.Net; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.ServiceBus.Messaging; using Microsoft.Xrm.Tooling.Connector; namespace GymSports.Azure.Integration { public static class Contacts { [FunctionName...