Ust Oldfield's Blog

Tabular Automation and NuGet

In a recent blog post, I wrote about processing an Azure Analysis Services tabular model using Azure Functions. In it, there’s a lengthy process of downloading some DLLs and uploading them to the Azure Function. Handily, the Analysis Services team at Microsoft have released the Analysis Services NuGet package, which means that the necessary DLLs can be automatically installed to an Azure Function without much hassle. This blog is going to go through the steps of adding the NuGet package to your Azure Function.

Add a new file to your function called project.json


Input the following code in the newly created file

   "frameworks": {
       "dependencies": {
         "Microsoft.AnalysisServices.retail.amd64": "15.0.2"

Then save the Azure Function to proceed with the NuGet restore and compile your function. You should see the following logs in your log window.


That is the entire process. Much easier than documented previously!