Integrating Dynamics 365 with Azure Function using Managed Identity

Wednesday, March 20, 2019

I love Azure Functions. These days, I have to restrain the tendency to solve every problem with this Swiss army knife.  When designing Azure Function integration with Dynamics 365, one of the immediate questions raised is where to store connection strings, credentials and other sensitive details.  The immediate answer is ‘Not in your code’. So where?One option is to store sensitive details in the Application Settings store which is ‘encrypted at rest and transmitted over an encrypted channel.’ While this option is  quite easy to use, it isn’t considered most secured. Another option is using Managed Identity...

Referencing Dynamics Assemblies with Azure Function Apps v.2

Tuesday, February 19, 2019

Just stumbled upon a new  Azure environment, where Azure Function Apps have been upgraded to version 2. Right away, noticed that my Azure Function code referencing Dynamics assemblies does not compile, complaining aboutThe type or namespace name 'Xrm' does not exist in the namespace ‘Microsoft' (are you missing an assembly reference?) After digging around, I found out that the project.json is not longer valid with v.2.Instead, the function.proj file must be created and reference Dynamics assemblies in the following manner:       461