Revisiting Docker Multi Stage Builds to build an ASP.NET Core Echo Server
Tuesday, September 25, 2018 in 2018
Categories:
2 minute read
On April I wrote a post about Using Docker Multi Stage Builds to build an ASP.NET Core Echo Server and these days while preparing a talk, on CI/CD and kubernetes, I started to play with the simple sample I wrote back then. Soon enough I noticed that …
Adding SourceLink to your .NET Core Library
Saturday, August 25, 2018 in 2018
Categories:
3 minute read
Last week I read this tweets from Maxime Rouiller (@MaximRouiller): Are you an MVP with a #dotnetcore #nuget package? Are you looking for an easy blog post? I have something for you. — Maxime Rouiller (@MaximRouiller) August 22, 2018 Actually, …
.NET Core, BenchmarkDotNet: for vs foreach performance
Wednesday, August 22, 2018 in 2018
Categories:
3 minute read
So what is faster: looping through a List<> with for or with foreach? Today I’ll show you how to use BenchmarkDotNet with .Net Core to answer that question. Let’s start: Create a folder for your new project Open a command prompt an …
.NET Core, BenchmarkDotNet and string compare performance
Thursday, August 16, 2018 in 2018
Categories:
3 minute read
You have to choose between using string.compare or == to compare strings. How would you know which method performs faster? Today I’ll show you how to use BenchmarkDotNet with .Net Core to answer that question. Let’s start: Create a folder …
Accepting Azure Marketplace Terms with Ansible
Tuesday, August 14, 2018 in 2018
2 minute read
Last May I wrote: Accepting Azure Marketplace Terms with Azure CLI and this time we’ll accomplish the same task with Ansible. Turns out that Ansible 2.6 comes with a handy new module: azure_rm_resource which lets you create, update or delete …
Installing Azure CLI and Ansible on Ubuntu
Friday, August 10, 2018 in 2018
2 minute read
I’ve been using Ansible and the Azure CLI every single day for the last 3 months. Non stop work editing playbooks and scripts with Visual Studio Code and running them on Ubuntu (WSL) on my Windows 10 machine. Turns out that because Ansible uses …
At last: Network Policies in AKS with kube-router
Thursday, July 19, 2018 in 2018
Categories:
3 minute read
For ages I’ve been waiting for a way to enforce netwok policies on AKS, so last weekend while I was googling around, I found this hidden gem posted by Marcus Robinson: Enforcing Network Policies using kube-router on AKS and had to test the …
Simple Machine Learning with .NET Core Sample
Sunday, June 10, 2018 in 2018
Categories:
3 minute read
I think that more than a year and a half ago I read “Real-World Machine Learning” by Henrik Brink, Joseph Richards, and Mark Fetherolf. A book that is easy to read and goes “to the point”!!! I’m sure you know what I …
Accepting Azure Marketplace Terms with Azure CLI
Monday, May 21, 2018 in 2018
less than a minute
When you try to deploy a VM from the Marketplace using an ARM (json) template you’ll get an error like the one below in the case when you’ve not previously accepted the Legal terms for the image: [{"Legal terms have not been accepted …
Running Ansible Azure playbook in Azure Cloud Shell
Saturday, May 05, 2018 in 2018
less than a minute
NOTE: The issue described in this post was fixed!!! (ansible 2.5.2 and Azure CLI 2.0.34) Last week I tried to run this simple Ansible playbook in Azure Cloud Shell: # resource_group.yml # Create test resource group in west europe - name: Create a …