Skip to main content

Blog

Step by step: Scale ASP.NET Core with Docker Swarm

·388 words·2 mins
A few weeks ago I posted Step by step: ASP.NET Core on Docker were I showed how to build and run a Docker image with an ASP.NET Core application. Today I bring you: Step by step: Scale ASP.NET Core with Docker Swarm so you can scale out or in the same application. Assuming you have Docker 1.12 or later installed and running, follow this steps:

Use .NET Core to Create Azure Blob Storage SAS Keys

·270 words·2 mins
If you intend to use the WindowsAzure.Storage library with .Net Core you’ll hit a"compatibility wall" trying to make it work. So how can we use .Net Core to Create Azure Blob Storage SAS Keys? Add the System.Security.Cryptography.Algorithms dependency # Add the following dependency in your project.json file

Is Privacy Dead?

·450 words·3 mins
I started the day in a coffee shop. I got a nice spot with a window right next to me. As I take out my Surface Book and turn it on, in a matter of seconds my face is recognized so I don’t have to use the keyboard to login. A couple of minutes later Cortana reminds me that

Deal with time dependencies in Tests

·493 words·3 mins
Las week we discovered that some of our test would"randomly" fail depending of the time of the day. After investigating the issue we found that the culprit was that the service being tested was taking decisions based on the current system time (DateTime.Now) leading to different outcomes through the day. So how do we deal with time dependencies in tests?

Get Ready: Exam 70-533 Implementing Microsoft Azure Infrastructure Solutions

·291 words·2 mins
This week I cleared the 70-533 Implementing Microsoft Azure Infrastructure Solutions exam, and I want to share with you tips about the exam and the resources I used to study: Should you take the exam? If you are an Infrastructure Geek, Developer or Software Architect looking to validate your Microsoft Azure skills then this exam is for you. Also note that Microsoft expects you to:

Step by step: ASP.NET Core on Docker

·287 words·2 mins
This week I have to give an introductory talk on DevOps and Docker and therefore I decided to prepare a simple Step by step: ASP.NET Core on Docker sample. Assuming you have Docker installed and running, follow these 4 simple steps: Create a dockerfile # On your Docker box create a dockerfile with the following contents

Step by step: Serilog with ASP.NET Core

·256 words·2 mins
NOTE: This post is out of date. Please read: Updated Step by step: Serilog with ASP.NET Core for an update. # Last week I wrote about .NET Core and Microsoft Bot Framework and I’m still learning and playing with it. The thing is that once I implemented more features and deployed the bot to Azure it didn’t work. So I had to find a way to log and trace what was happening in order to diagnose and fix the problem.

.NET Core and Microsoft Bot Framework

·782 words·4 mins
Today I’ll show you how to create a simple Skype bot that will reply with the same text message you send to it. You’ll be using .Net Core and Microsoft Bot Framework. As you already know not every library has been ported to .Net Core so you’ll have to use the Microsoft Bot Connector API – v3.0 to bring the bot to life.

Create vCard QR Codes using Azure Functions

·550 words·3 mins
Today I’ll show you how to develop a Web API to Create vCard QR Codes using Azure Functions. But wait what are Azure Functions? As defined by Microsoft: Azure Functions is a serverless event driven experience that extends the existing Azure App Service platform. These nano-services can scale based on demand and you pay only for the resources you consume.

Benefits and Risks You Need to Know about Cloud Computing

·701 words·4 mins
We know that cloud computing is “the new normal” just like virtualization was in the past. And we also know that the adoption of cloud computing by your organization can come with a series of benefits including: Reduced IT costs: You can reduce both CAPEX and OPEX when moving to the cloud. Scalability: In this fast changing world it is important to be able to scale up or down your solutions depending on the situation and your needs without having to purchase or install hardware or upgrades all by yourself. Business continuity: when you store data in the cloud, you ensure it is backed-up and protected which in turn helps with your continuity plan cause in the event of a crisis you’ll be able to minimize any downtime and loss of productivity. Collaboration: Cloud services allow you share files and communicate with employees and third-parties in this highly globalized world and in a timely manner. Flexibility: Cloud computing allows employees to be more flexible in their work practices cause it’s simpler to access data from home or virtually any place with an internet connection. Automatic updates: When consuming SaaS you’ll be using the latest version of the product avoiding the pain and expensive costs associated with software or hardware upgrades. But once you ask yourself: what can possibly go wrong? You open your eyes to a “cloudy weather” where you must plan, identify, analyze, manage and control the risks associated with moving your data and operations to the cloud. To help you with the identification process, here is a list of risks that your organization can face once you start or continue the transition to the cloud:

Detect and Blur Faces with .NET Core and Face API

·726 words·4 mins
Today I’ll show you how to create a small console application that will Detect and Blur Faces with .NET Core and Face API. First be aware of the following prerequisites: **OS** **Prerequisites** Windows Windows: You must have .NET Core SDK for Windows or both Visual Studio 2015 Update 3* and .NET Core 1.0 for Visual Studio installed. linux, mac or docker checkout .NET Core You will also need an Azure Cognitive Services Face API account and the correct set of access keys. (Start here: Subscribe in seconds if you need a Cognitive Service Account and here for the Documentation)

Step by step: Entity Framework Core and Shadow Properties

·967 words·5 mins
Today I’ll show you how to create a small console application with a Step by step: Entity Framework Core and Shadow Properties example. We’ll be modifying the code from my previous post: Step by step: .NET Core and Entity Framework Core to make the Student entity auditable without creating public/protected properties or private fields to hold the typical audit info (CreatedBy, CreatedAt, UpdatedBy and UpdatedAt) database fields.

Step by step: .NET Core, Azure Service Bus and AMQP

·729 words·4 mins
Today I’ll show you how to create a small console application with a Step by step: .NET Core, Azure Service Bus and AMQP example. First be aware of the following prerequisites: **OS** **Prerequisites** Windows Windows: You must have .NET Core SDK for Windows or both Visual Studio 2015 Update 3* and .NET Core 1.0 for Visual Studio installed. linux, mac or docker checkout .NET Core You will also need an Azure Service Bus namespace, topic and subscription with the correct set of credentials. (Start here: How to use Service Bus topics and subscriptions if you don’t know how to configure the Service Bus)

Step by step: .NET Core and Entity Framework Core

·524 words·3 mins
Today I’ll show you how to create a small console application with a Step by step: .NET Core and Entity Framework Core example. First be aware of the following prerequisites: **OS** **Prerequisites** Windows Windows: You must have .NET Core SDK for Windows or both Visual Studio 2015 Update 3* and .NET Core 1.0 for Visual Studio installed. linux, mac or docker checkout .NET Core Now let’s start:

Add Swagger to your .NET Core Web API

·195 words·1 min
Last week .NET Core was released, and the first thing I tried to solve was how to Add Swagger to your .NET Core Web API: Dependencies # At the time of writing you should add the following dependency to your project.json file

Remove RavenDb's API from Swagger

·156 words·1 min
I’ve been working on a small IoT project where we expose a simple REST API and use RavenDB Embedded as the database. Once we enabled Swagger on our project we noticed that the generated documentation was not only showing our API but those exposed by RavenDB too. So the question came up: how can we Remove RavenDb’s API from Swagger Documentation?

Stop or Start all WebApps in your Azure subscription

·409 words·2 mins
Stop or Start all WebApps in your Azure subscription with Stop-Start-All-WebApps.ps1 a simple PowerShell workflow runbook that will help you automate the process of stopping or starting every single WebApp (Website) you’ve deployed. The script receives two required parameters: Stop: If set to true stop the WebApps (Websites) otherwise start the WebApps (Websites) CredentialAssetName: The name of a valid Credential Asset (AutomationPSCredential) you must have previously configured. As you can see below, the script is quite simple and uses the following PowerShell Activities and Cmdlets:

Backup your Team Services Git Repositories with VSTS Vault

·427 words·3 mins
Backup your Team Services Git Repositories with VSTS Vault: A simple windows service or console application designed to keep a local copy of all your code. Since January 2016 we’ve moved the source code of more than 30 projects to Git repositories hosted by Visual Studio Team Services. Moving to the cloud has some downsides and one thing that kept us thinking was the need to be sure that in the event of an internet connection failure or a Team Services outage we would be able to access our code and deploy hot fixes for our applications as part of our data protection plan.

NHInsights an OracleManagedDataClientDriver for NHibernate and Application Insights

Let’s talk about NHInsights an OracleManagedDataClientDriver for NHibernate and Application Insights If you use Oracle and NHibernate and you are trying to use Application Insights to diagnose issues with your database calls you will notice that for ASP.NET applications the out-of-the-box dependency monitor currently reports calls to these types of dependencies:

Create an Azure Site to Site VPN

·549 words·3 mins
In this post I’ll just show the list of PowerShell commands needed to Create an Azure Site to Site VPN and give you some tips when using a Check Point Security Gateway. First things first! so if you have not installed and configured Azure PowerShell go for it: How to install and configure Azure PowerShell