Sunday, March 10, 2019

To Run Docker base application on specific IP Address

Image result for docker image

While exploring Docker with .net Core , I confronted various issues later I sorted them one by one.

One of them was after creating images and container it was not hosting on localhost , it troubled me a lot and finally i found a solution for this which I'm sharing through this post.


List all the running docker containers

docker container ls
  docker ps -a
  docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" 7d13c58d6311

docker ps –a

Step2. After getting list of running container and you should be able to see WebServer with respect to each container running.webserver is nothing just a container ID in simple words.Here depicted below is a list of running container on my workstation:

Kindly use the below command in order to find the specific ip. I’ve used one of the containerId and in order to get IP on which an application might be host.docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" 7d13c58d6311


Just open any browser and paste the following URl in that or use the following command to run it in Internet Edge browser

start microsoft-edge:

Some Valuable Commands:

docker build -tag dotnetpiper .
docker image ls
docker run -d -p 8080:8080 dotnetpiper:latest
docker run --name sampleCon -p 8080:8080 dotnetpiper:latest

docker container ls
docker ps -a
docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" 4345811895a7

  start microsoft-edge:

Monday, October 22, 2018

Azure Blob Storage Tiers

Azure Blob Storage Tiers

Image result for azure

There are few points which you should remember while developing or managing Azure Storage pertinent to Tier for data access.

Azure Hot Storage  Tier ----> It uses for fast retrieval of data or lowest data retrieval cost and lowest data access cost though higher data storage cost involve.

Azure Cool Storage  Tier ---> Higher in data retrieval cost while lower in data storage cost.

Azure Archive Storage  Tier  ---> Highest data retrieval cost while Lowest data storage cost .

Kindly consider all above points while you are about to choose Storage Tier’s in Azure

Warm Regards

Sachin Kalia

Saturday, October 13, 2018



Open your power shell from command prompt as a administrator.

Point to remember : Declare any variable with $y in PowerShell

C:\WINDOWS\system32>$array ="India","Japan","Aus","US","UK"

C:\WINDOWS\system32> $array

It will list an array

PS C:\WINDOWS\system32> $array[2]

It gives value on index 2 , which is AUS in our case.


$array=("India","Asia"),("Japan","Asia"),("AUstralia","Australia"),("UK","EUROPE"),("US","North America”)

PS C:\WINDOWS\system32> $array

PS C:\WINDOWS\system32> $array[0][1]
PS C:\WINDOWS\system32> $array[1][1]
PS C:\WINDOWS\system32> $array[1][0]


Some mathematical commands show below:

PS C:\WINDOWS\system32> $y=get-service
PS C:\WINDOWS\system32> $y.count
PS C:\WINDOWS\system32> [math]::sqrt("9")
PS C:\WINDOWS\system32> $x="192.78788"
PS C:\WINDOWS\system32> [math]::round($x,2)

4. To update the value of an index in array as shown below:

PS C:\WINDOWS\system32> $array[1][0]="Singapore"
PS C:\WINDOWS\system32> $array[1][0]

5. To change the variable case in upper and lower use the following command

PS C:\WINDOWS\system32> $x="The quick brown fox jumps right over the lazy little dogs"
PS C:\WINDOWS\system32> $x.ToUpper()
PS C:\WINDOWS\system32> $x.TOLOWER()

the quick brown fox jumps right over the lazy little dogs

6. To replace any word

PS C:\WINDOWS\system32> $x.replace("The","That")
That quick brown fox jumps right over the lazy little dogs

7. To Get complete service object in a variable

Declare any variable with $y in PowerShell

PS C:\WINDOWS\system32> $y=get-service
PS C:\WINDOWS\system32> $y.count
Output : 292

Wednesday, October 10, 2018

Conducted and Executed Azure session in Noida today Some Glimpse Conversation following topics
Image result for azure images
  • Azure
    ARM Portal (Azure Resource Manager)
    Azure Service Model
    ARM Portal Deep Dive
    Platform As A Service(PaaS)
    Hosting .Net WEBAPI Application
    Application Insights
    Application Insights Telemetry
    Live Streaming of execution
    Logic Apps as WebHook
    Logic apps integration with Skype/Slack for notification
    Create Logic apps for Twitter Integration with Slack(AI Usage)
    Stay in Cloud

10 OCT 2018

@Azure @ARM @LogicApps

Sunday, October 7, 2018



get-help workerrole
get-help webrole
get-help *content*
get-help storage
get-command *event
get-eventlog system
get-eventlog system -newest 10 // to get latest 10 log
get-eventlog system -newest 10 | where {$_.instanceid -eq 129} // To get the specific event
get-eventlog system -newest 10 | where {$_.instanceid -lt 1219} // to get all events less than event id 129
get-service | export-csv -path E:\Service.csv -- to export all services to E drive through command 
import-csv E:\Service.csv

TO Export all process in xml format :

get-process | export-clixml -path  e:\training.xml
TO Export all process in txt format :
get-process | out-file -filepath  e:\training.txt
To open in notepad :
invoke-item  e:\training.txt

To get all service in html format:

get-service | convertto-html

get-service | convertto-html | set-content E:\xyz.xml

To retrieve only two columns from Services:

get-service | convertto-html -property name,status

List of service starts with character “S”

get-service s*

To get process which has id less than 100
get-process | where id -lt 100

To Get service which are running using where clause in powershell:

get-service | where {$_.status -eq "running"}
get-service | where {$_.status -eq "stopped"}

<script async src="//"></script>
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: "ca-pub-3599209542351256",
          enable_page_level_ads: true

Thursday, September 20, 2018

Install httprepl in DotnetCore 2.2 Preview

Install httprepl in DotnetCore 2.2 Preview

While you are working on the .Net Core Preview 2.2 than you may required to  install httprepl, so while Installing dotnet-httprepl from the command prompt using the following command:

dotnet tool install -g --version 2.2.0-* --add-source dotnet-httprepl


You can verify about the version installed with the following command : dotnet tool list -g



Tuesday, August 28, 2018

Difference between Cloud Service and PaaS App Service


In Cloud service you can take control of remote machine.
                                                                    App Service                                                       Cloud Service

App Service In app service you deploy app on FTP, App service also manages by Microsoft.

   You will deploy an application on VM means on physical server, Microsoft manages the virtual machine for us.                          
App service deployment is faster.Cloud Service Deployment process is slower because of physical service.
App service you can’t take the control or remote desktop of FTP.
In App Service you can scale up to 20 instanceWhile in Cloud Service you can scale up to 10000 instance.
However you machine can be shared among many vendors  , so it means multiple application can share same serverThere is dedicated machine in Cloud Service  Which puts you application in high availability set.
You can’t install any softwareYou can install some sort of software in VM that you can.also you can make some configuration as per you need along with utlize almost 700 resources

Thursday, July 26, 2018

Python TypeError must be str not int

Python TypeError must be str not int

While working on Modules using python using an IDE PyCharm i confronted an issue while printing int value using Print function of python.I’ve created a python module which i require to import prior to use.

Now question strikes in mind what actually Module is in Python.

I’ve craeted a fle named as Functions and having the below given code:

def calculate_square_area(length):
return length*length

The structure looks like of a sample application as shown below:


Monday, June 11, 2018

[Fiddler] The connection to com failed.


[Fiddler] The connection to '<the site>.com' failed. 
System.Security.SecurityException Failed to negotiate HTTPS connection with> HTTPS handshake to <the site>.com (for #3) failed. System.IO.IOException Unable to read data from the transport connection: 
An existing connection was forcibly closed by the remote host. < An existing connection was forcibly closed by the remote host 

Resolution - 

Go to  Tools > Telerik Fiddler Options > HTTPS It's set to ;ssl3;tls1.0 Add tls1.2

Kinldy refer below image for reference.


Warm Regards

Sachin Kalia

Thursday, May 3, 2018

Session about .Net Core 2.0 with Angular in Noida

Session about .Net Core 2.0 with Angular in Noida
Shared session about .Net Core 2.0 with Angular using Visual studio 2017 with it's inbuilt template and many more in Noida .
Mitigation of Challenges faced with earlier version of .Net
Some glimpse of the day
#dotnetcore2.0#Angular #mvpbuzz

#dotnetcore #Angular