Using JSON Schema

I’ve been having to do some development lately around a project that requires strictly formatted data to be applied against a validated schema.  In looking at options, I evaluated JSON-Schema and XSD.  When looking around for which is better the results came back with neither side one is super superior to the other.  However, since this is for a REST service, I thought let’s go with JSON.

What I like about JSON-Schema is that it’s very quick to get up and running with.  The complete specification is available here and you can read through it in about an hour.  Over the next few posts I’ll highlight some of the key features of the schema and what I really like about it.

To get started, binding an already established file to a

Read More


Getting Started with Azure Application Insights

Where do those lovely trace statements that you write in your Azure Functions go?

How do you access them?

With some recent changes in logging in Azure, you can access all this information via Application Insights directly from your Azure Function.  When you access your function, underneath the “Configured features” sections you will see an option called “Application Insights.”

Clicking on this link will then bring you to a dashboard of real-time metrics that you might be spooling from your service.  However, for today, what we are interested in are the log files that are available from the top of the toolbar menu called “Logs”.

LogsRead More


Dynamics365 Development Promotion Model

Following up on my previous post about how to best leverage the Dynamics365 platform, the second question I get asked a lot about it is – how do we promote this stuff between our different environments?

I.e., how do we get A to B without messing up C (or something akin to that logic).  Or rather, where should I deployed managed vs unmanaged solution components?

There are a variety of ways, but for each of the models I mentioned in my previous post (How much are you using your Dynamics Platform) here is what a simple model could look like.

dynamicspromotionRead More


How to Use the Dynamics365 Platform

Generally, when starting a conversation with a new customer about moving to Dynamics365, the first statement they always make is…

We don’t want to change anything and we want to use it as is.

Which runs completely counter to the inherent capabilities of this platform at large not too mention what their requirements are and what they want to achieve.

I get it – you bought a car – you love it, it does almost everything you want to do so you don’t want to change it, but guess what, if you want to keep using it for life and get the most out of it, you’re going to have to make some changes.

Same with Dynamics365, with this in mind, I put together the following diagram that I hope will help new customers

Read More


Azure Functions Local File Logging

In case you don’t know (I had no idea), here it is – the location of your log files when using the ILogger interface for Azure Functions.

%temp%\LogFiles\Application\Functions

Once there, you will be able to drill into your functions by name and find the log file(s) associated with that function.

logfiles

It’s also good practice to enable local file logging in your host.json file using the following syntax.

  "logging": {
    "fileLoggingMode": "always"
  }

Read More