Azure Fabric service

To build always-on, scalable, distributed applications in azure from your development machine, you need to ensure right tools are already installed.

This blog is to install tools for VS 2017.

While installing or modifying VS 2017 on your development machine ensure option ‘Azure development’ is checked on.

Azure Components in VS 2017

Apart from this you need Microsoft Azure Service Fabric SDK on your machine. The SDK gets installed using Web installer 5.0. The link for SDK is:



Fabric SDK installation step


Fabric SDK installation step succeed

Visual studio is now ready to allow you create service fabric applications.

Goto File–>New–>Project–>Cloud

Visual studio 2017 Service Fabric template

Choose the service you want to create:

Visual studio 2017 Service Fabric template selection


Connect MySQL db using Powershell

The purpose of this blog is to get the dev aware of how the PowerShell can be used to connect to MySQL db and insert a sample record.

With the increase of automation in industry, powershell is made responsible for doing many more things including inserting a new record in MySQL database.

The script flow start  at line 28 by setting bthe username/ password/ database name, server name of the MYSQL database. By Default the port to connect db is 3306.
$query parameter of powershell need to be set for correct insert DML statement.
Next is Powershell function call which takes username, password, server, database, query as parameter. Line 1 to 26 is PowerShell function which handles this.

For this function to work perfectly it necessary for[reflection.assembly]::LoadFrom(“C:\abc\MySql.Data.dll”)

Statement to execute with success. What this statement do is load assembly in script.

Its >net and MySQL connector Dll. You can get this dll by creating a new project in .Net Visual studio and add a new package by searching ‘MySQL’. Make sure you correctly set this DLL path in script.
This function takes care of establishing the connection with MySQL, Open the connection, execute the SQL DML query and return the response.
I tested this script in Windows 10, Powershell 4 and MySQL 8.4.5 and works fine.
The script can be downloaded from:!AuanYRI1Vj_XgyHzrT3AlobAor2a

.Net framework version the assembly was created in

string assemblyPath = @”<exe/ dll path>”;

var assembly = Assembly.LoadFrom(assemblyPath);

var customAttributes = assembly.GetCustomAttributesData();

var dotnetFramework = customAttributes.FirstOrDefault(attr => attr.AttributeType.Equals(typeof(TargetFrameworkAttribute)));

var frameworkVersion = string.Empty;

if (null != dotnetFramework)


if (dotnetFramework.ConstructorArguments.Any())


// first argument is the name of the framework.

frameworkVersion = (string)dotnetFramework.ConstructorArguments[0].Value;



Console.WriteLine(“Framework Version: “ + frameworkVersion);


This code will give you the .Net framework version the dll/exe was created in.


I tested it for 4.5, 4.6.1 , 4.5.2 and gives the correct info.


ECMAScript 6 and Browsers support

We all know ECMAScript 6 was released in June 2015. Many new features made part of final edition of it. Work on ECMAScript 7 has started now.
Browsers are trst to implement these features assp. Wikipedia
has good updates on where browsers stand. So far IE11 seems to be leading this race, followed by Chrome.

All web developers must read the ECMAScript specifications at:

Good Luck!