Skip to content

Instantly share code, notes, and snippets.

View marcduiker's full-sized avatar
/-/

Marc Duiker marcduiker

/-/
View GitHub Profile
@marcduiker
marcduiker / FunctionExceptions.sql
Created May 1, 2019 08:28
Log Analytics query to get the latest 100 exceptions for a given FUNCTION_NAME in FUNCTION_APP_NAME.
requests | project timestamp, id, operation_Id, operation_Name, success, resultCode, duration, cloud_RoleName | join kind=inner (exceptions | project operation_Id, message, outerMessage, innermostMessage) on operation_Id | where cloud_RoleName =~ '<FUNCTION_APP_NAME>' and operation_Name == '<FUNCTION_NAME>' | order by timestamp desc | take 100
@marcduiker
marcduiker / FunctionAppInstanceProperties.sql
Last active October 24, 2019 12:43
Log Analytics query to get various properties of Function App instances incl its dependencies.
requests |
project timestamp, id, operation_Id, operation_Name, duration, cloud_RoleName, cloud_RoleInstance |
where cloud_RoleName =~ 'FUNCTION_APP_NAME' |
join kind= inner (dependencies | project target, duration, performanceBucket, operation_Id) on operation_Id |
order by duration desc |
take 100
@marcduiker
marcduiker / FunctionNameExtractor
Created August 21, 2019 09:39
Use reflection to obtain the function names and group them per function role.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using Microsoft.Azure.WebJobs;
// ReSharper disable once CheckNamespace
namespace DurableFunctions.Demo.DotNetCore.Reflection
{
public class FunctionNameExtractor
@marcduiker
marcduiker / Building_a_resilient_workflow_using_Durable_Functions.md
Last active September 23, 2019 07:41
Hands-on workshop: Building a resilient workflow using Durable Functions

Building a resilient workflow using Durable Functions

XASA Workshop

Congratulations! Today is your first job as a software engineer at XASA, the Xpirit Aeronautics and Space Administration. You are responsible for creating a system which reacts to detected Near-Earth Objects (NEOs).

A satellite is continuously scanning the skies for these NEOs. The satellite transmits its findings to ground stations which in turn send the data to Azure.

It's your job to ensure the incoming data is analyzed to assess the risk of impact, stored, and to notify the required organizations of this risk and possible counter-measures (think Armageddon style).

@marcduiker
marcduiker / prerequisites.md
Created November 1, 2019 11:54
Azure Functions Workshop @ Serverless Compute London 2019

Lab 0 - Prerequisites

Goal

During this workshop we're going to write Azure Functions in C# (.NET Core). The goal of this lab is to very that the required SDKs, IDE and tooling are installed.

Steps

1. SDKs

‎Event Storming‎​

Q: What is it?

A: A workshop format to collaboratively explore a domain.

Different types

There are three types of event storming

Serverless Days Meetup Script for Online Events

This document contains the script for the online ServerlessDays Amsterdam Meetup. We're using a combination of OBS, Skype & NDI Tools to combine our streams. Streaming is done to Restream.io which in turn forwards it to YouTube, Twitch and Periscope.

Roles

The lines in the script are prefixed with the role of the person who needs to undertake an action.

  • TECH = The person who's controlling OBS

Hi ServerlessDays speaker!

Here are the instructions for joining our conference on May 8th. Please read them through carefully so the experience on the conference day will be as smooth as possible. Another email will follow, which contains the exact time you need to be online during the conference.

There are three actions we ask you to do now:

  1. Read this entire message, yes, all of it!
  2. Send us your prerecorded session before Friday if you haven't done so already.
  3. Connect with our co-organizer, Marc Duiker, on Skype: m.duiker_1

Tech requirements

Serverless Days Amsterdam Conference Script

This document contains the script for the online ServerlessDays Amsterdam Conferene. We're using a combination of OBS, Skype & NDI Tools to combine our streams. Streaming is done to Restream.io which in turn forwards it to YouTube, Twitch and Periscope.

Roles

The lines in the script are prefixed with the role of the person who needs to undertake an action.

  • TECH = The person who's controlling OBS

My definition of serverless

My definition of serverless is that:

  • You don't have full responsibility of the infrastructure, which is a good thing.
  • Your resources should scale up and down automatically, based on the load.
  • You only pay for what you actually use, so the consumption model.

Usages

  • Glue code, connect services