Skip to content

Instantly share code, notes, and snippets.

View sajeetharan's full-sized avatar
💭
Debugging "Object reference not set to an instance of an object." 😬

Sajeetharan sajeetharan

💭
Debugging "Object reference not set to an instance of an object." 😬
View GitHub Profile
@sajeetharan
sajeetharan / gist:de85e9cce3b5aa2bd0647a8ddae68b98
Created October 14, 2020 11:46
Schedule ACI with Azure function
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using Microsoft.Azure.Management.Fluent;
namespace AciManagerFuncApp
{
@sajeetharan
sajeetharan / Deploy function
Created September 27, 2020 16:18
kedadeploy
⚡ C:\processOrder>func kubernetes deploy --name processorder --registry sajeetharan
@sajeetharan
sajeetharan / EnableKeda
Last active September 27, 2020 16:16
Enable KEDA on AKS
⚡ C:\processOrder>func kubernetes install --namespace kube-system --dry-run > keda.yaml
kubectl apply -f keda.yaml --namespace="kube-system"
@sajeetharan
sajeetharan / newfnKeda
Created September 27, 2020 11:04
Create new function
C:\processOrder>func new
@sajeetharan
sajeetharan / fnkeda
Created September 27, 2020 11:00
Create a containerized azure function
⚡ C:\processOrder>func init --docker
@sajeetharan
sajeetharan / akskeda
Created September 27, 2020 10:38
Create AKS cluster for KEDA
⚡ C:\keda
C:\>az aks create --resource-group "rgKeda" --name "aksKeda" --node-count 2 --generate-ssh-keys
@sajeetharan
sajeetharan / sqkeda
Created September 27, 2020 06:40
Create Storage Queue
⚡ C:\keda
❯ az storage queue create --name "sqkeda" --account-name "sakeda"
@sajeetharan
sajeetharan / sbKeda
Last active September 27, 2020 06:40
Create Storage Account
⚡ C:\keda
❯ az storage account create --name sakeda --resource-group rgKeda
@sajeetharan
sajeetharan / rgKeda
Created September 27, 2020 06:01
Create resource group
⚡ C:\keda
❯ az group create --location "southeastasia" --name "rgKeda"
# provider "azurerm" {
# subscription_id = "REPLACE-WITH-YOUR-SUBSCRIPTION-ID"
# client_id = "REPLACE-WITH-YOUR-CLIENT-ID"
# client_secret = "REPLACE-WITH-YOUR-CLIENT-SECRET"
# tenant_id = "REPLACE-WITH-YOUR-TENANT-ID"
# }
resource "azurerm_resource_group" "rg" {
name = "${var.resource_group}"
location = "${var.location}"