Skip to content

Instantly share code, notes, and snippets.

View JanneMattila's full-sized avatar

Janne Mattila JanneMattila

View GitHub Profile
@JanneMattila
JanneMattila / deploy.sh
Created December 13, 2021 11:18
Azure Storage Account create & delete demo
# Variables
resourceGroupName="rg-storage-demo-repeat"
# You can switch regions as you see fit
location="eastus"
#location="westeurope"
storageName="stor000000010"
# Create resource group for our demo
az group create --name $resourceGroupName --location $location
@JanneMattila
JanneMattila / demo1.ps1
Last active April 13, 2021 08:47
Developer bootcamp
$appServiceName="catch-the-banana000001"
$appServicePlanName="ctbPlan"
$resourceGroup="catch-the-banana-dev-rg"
$location="westeurope"
$image="jannemattila/catch-the-banana"
# Login to Azure
az login
# List subscriptions
{
"sku": {
"name": "Standard",
"tier": "Standard",
"capacity": 1
},
"id": "/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.EventHub/namespaces/demo",
"name": "demo",
"type": "Microsoft.EventHub/Namespaces",
"location": "North Europe",
{
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "Storage",
"id": "/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.Storage/storageAccounts/demo",
"name": "demo",
"type": "Microsoft.Storage/storageAccounts",
"location": "northeurope",
@JanneMattila
JanneMattila / instructions.md
Created November 5, 2019 11:38
CalcService troubleshooting instructions

CalcService troubleshooting instructions

You can have your service specific troubleshooting instructions here. But to fill in some content here's some troubleshooting information from Wikipedia:

Troubleshooting is a form of problem solving, often applied to repair failed products or processes on a machine or a system. It is a logical, systematic search for the source of a problem in order to solve it, and make the product or process operational again. Troubleshooting is needed to identify the symptoms. Determining the most likely cause is a process of elimination—eliminating potential causes of a problem. Finally, troubleshooting requires confirmation that the solution restores the product or process to its working state.

In general, troubleshooting is the identification or diagnosis of "trouble" in the management flow of a system caused by a failure of some kind. The problem is initially described as symptoms of malfunction, and troubleshooting is the pr

@JanneMattila
JanneMattila / instructions.md
Last active March 17, 2020 19:38
Contoso Retail SBT Backend

Contoso Retail SBT Backend troubleshooting instructions

You can have your service specific troubleshooting instructions here. But to fill in some content here's some troubleshooting information from Wikipedia:

Troubleshooting is a form of problem solving, often applied to repair failed products or processes on a machine or a system. It is a logical, systematic search for the source of a problem in order to solve it, and make the product or process operational again. Troubleshooting is needed to identify the symptoms. Determining the most likely cause is a process of elimination—eliminating potential causes of a problem. Finally, troubleshooting requires confirmation that the solution restores the product or process to its working state.

In general, troubleshooting is the identification or diagnosis of "trouble" in the management flow of a system caused by a failure of some kind. The problem is initially described as symptoms of malfunction, and troubleshoo

@JanneMattila
JanneMattila / instructions.md
Last active September 3, 2019 10:08
Contoso IT Gateway

Incident instructions

Here are instructions ...

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}

Policy documentation (workshop demo 😊)

Summary

In case you're reading this document you have very likely hit our Azure Policies via this short link https://bit.ly/AzurePolicyLink.

@JanneMattila
JanneMattila / ErrorsController.cs
Created May 2, 2019 11:34
Stock Web Application and example controller
using Microsoft.ApplicationInsights;
using System;
using System.Diagnostics;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace StockWebApp.Controllers
{