.NET Core, BenchmarkDotNet and string compare performance
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.
Read more…Accepting Azure Marketplace Terms with Ansible
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 any Azure resource using Azure REST API.
Read more…Installing Azure CLI and Ansible on Ubuntu
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.
Read more…At last: Network Policies in AKS with kube-router
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 proposed solution.
Read more…Simple Machine Learning with .NET Core Sample
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”!
Read more…Accepting Azure Marketplace Terms with Azure CLI
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:
Read more…Running Ansible Azure playbook in Azure Cloud Shell
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.
Read more…Adding Code Analysis and StyleCop checks to .NET Core projects with dotnet-addcasa
Today I’ll show you how to use dotnet-addcasa: a .NET Core global tool to add CodeAnalysis and Stylecop checks to your projects. If you want to manually add those checks or understand the tool internals check my post: .
Read more…Using Docker Multi Stage Builds to build an ASP.NET Core Echo Server
Today I’ll show you how to create a simple Echo Server with ASP.NET Core and then a Docker Image using multi-stage build: 1. Create the Application Open a PowerShell promt and run:
Read more…Secure your Kubernetes services with NGINX ingress controller, tls and more.
Disclaimer: samples provided in this post were tested both in Azure Container Services (AKS) and Kubernetes provided by Docker for Windows. In previous posts I showed you how to Run a Precompiled .
Read more…