Author Archives: abatishchev

How to package Service Fabric application into SFPKG in .NET Core using MSBuild task

This task wouldn’t require much efforts but: Service Fabric doesn’t support packaging its “package” (which is not a real package but just a directory) into .sfpkg out-of-the-box. Only suggests to use ZipFile.CreateFromDirectory. MSBuildTasks doesn’t support .NET Core so we can’t … Continue reading

Posted in Programming | Tagged , , | Leave a comment

How to deploy Service Fabric application using ARM template and PowerShell, part 1: PowerShell

This is a series of blog posts: Part 1: PowerShell Part 2: ARM Prerequisites: You have your cluster up and running. How to achieve that is outside of the scope of this series Cluster has all necessary certificates deployedddeplo as … Continue reading

Posted in Programming | Tagged , , | Leave a comment

How to remove ARM resources for Service Fabric application and service using PowerShell

First you need to remove the resource corresponding to the application itself: And then the resource corresponding to the service:

Posted in Programming | Tagged , , | Leave a comment

How to call LINQ extension methods such as Where and ToDictionary using PowerShell

If you have IEnumerable<XElement> and want to call various LINQ extension methods such as Enumerable.Where() or ‚Äč‚ÄčEnumerable.ToDictionary() on it using PowerShell then first load the necessary assemblies: And here’s the code for Where(): and for ToDctionary():

Posted in Programming | Tagged , | Leave a comment

The BuildLayout of the application is invalid. Code is missing for service

If you’re getting these very rare but still mysterious errors: Started executing script ‘Deploy-FabricApplication.ps1’. Test-ServiceFabricApplicationPackage : The BuildLayout of the application in c:\Temp\TestApplicationPackage_3811564851592\icw0q1rk.bus\Release is invalid. Code is missing for service MyWebApiPkg. or Register-ServiceFabricApplicationType : The BuildLayout of the application in … Continue reading

Posted in Programming | Tagged , | Leave a comment

How to reuse lambda parameter across multiple combined expressions

If you’re having multiple separately defined expressions having common lambda parameter like these: And trying to combine them into one and to reuse the said parameter like this: Then you’ll likely get an exception: Unhandled Exception: System.InvalidOperationException: variable ‘u’ of … Continue reading

Posted in Programming | Tagged , | Leave a comment

Durable queue in Azure Service Fabric using WebJobs, Part 2: Web API

This the second post in a series about Durable queue in Azure Service Fabric using WebJobs: Part 1: Introduction to Asynchronous Operations Part 2: Web API Now let’s create another stateless service which will host the Web API. I used … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Durable queue in Azure Service Fabric using WebJobs, Part 1: Introduction to Asynchronous Operations

This the first post in a series about Durable queue in Azure Service Fabric using WebJobs: Part 1: Introduction to Asynchronous Operations Part 2: Web API The built-in into Azure Service Fabric (shortly ASF, or just SF) actor model and … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Documentation as a Feature, Documentation is a Feature

TL;DR: documentation should be treated, i.e. planned, estimated and maintained, as any other functional part of a project. I don’t always write documentation but when I do, I believe it’s more important it to be up-to-date than to exist. That … Continue reading

Posted in Programming | Tagged , | Leave a comment

How to move data from SQL Server to ADLA table using ADF

In Universal Store Team, the Universal Payout Platform – Earnings Calculations project, we need to move data from on-prem SQL Server, as well as SQL Server within an Azure vnet and SQL Azure, to the Cloud. As our storage in … Continue reading

Posted in Programming | Tagged , | Leave a comment