https://twitter.com/Foone/status/1361888273711341569
{ | |
// Created by https://twitter.com/marcduiker. | |
// Colors based on ENDESGA 32 palette: https://lospec.com/palette-list/endesga-32 | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, | |
"segments": [ |
using System; | |
using System.Threading.Tasks; | |
using Azure.HealthCheck; | |
using Microsoft.ApplicationInsights.Extensibility; | |
using Microsoft.Extensions.Logging; | |
namespace FunctionApp.Application.HealthCheck | |
{ | |
public class FunctionAppHealthCheck : HealthCheckBase | |
{ |
- Usually a quiet space with little distraction.
- A space with enough (sun)light (I use light themes in my IDE from time to time! 😱).
- Working from home works well for me, since I have all the space and equipment I need, and I can balance it with family life.
To mock the behavior of ILogger
in Azure Functions with MockBehavior.Strict
(using Moq) you can use the following mock setup:
var loggerMock = new Mock<ILogger>(MockBehavior.Strict);
loggerMock.Setup(
log => log.Log(
LogLevel.Error,
It.IsAny<EventId>(),
It.IsAny<It.IsAnyType>(),
It.IsAny<Exception>(),
In order to complete the the lessons you need to install the following:
Prerequisite | Description |
---|---|
.NET Core 3.1 | The .NET runtime and SDK. |
VSCode or VS2019 | VSCode is great for cross platform. VS2019 is best for Windows only. |
I ❤ VSCode and its extensibility. You can browse for available extensions from within VSCode (CTRL+SHIFT+X
) or via the marketplace.
Besides the regular C# and Azure(Functions) extensions I use, these are my favorite VSCode extensions:
- Gistpad: Write gists without leaving VSCode. My all time fav! I use gists more and more these days, for micro blogging, taking notes, and capturing ideas. ✍
- REST Client: Great alternative for Postman. 📫
- GitLens: Easily check the git history of a file/line of code.
- Code Spell Checker : I make typos, lost of them. ✅
- [markdownlint](https://marketplace.visualstudio.com/items?itemNa
namespace FunctionAppWithFeatureManagement | |
{ | |
public static class FeatureManagementConfig | |
{ | |
public static string ConnectionStringSetting => "FeatureConfigConnectionString"; | |
public static string FeaturePrefix => "FuncApp-*"; | |
public static string FuncAppFeatureA => "FuncApp-FeatureA"; | |
} | |
} |
This workshop will start with the basics of serverless architectures and explain how Azure Functions play a part in building serverless solutions.
You will learn how to develop Azure Functions using .NET Core and Visual Studio 2019.
Next, you are going to build and deploy these with Azure DevOps using CI/CD.
Also covered is the lifecycle management and operations of serverless solutions.