Skip to content

Instantly share code, notes, and snippets.

View cwoolum's full-sized avatar

Chris Woolum cwoolum

View GitHub Profile
@cwoolum
cwoolum / tear-down.sh
Created January 6, 2019 19:29
AKS-Teardown
echo Enter the name of the environment you would like to delete
read envName
echo "Deleting Resource Group"
az group delete --name rg-$envName
echo "Deleting Service Principal"
az ad sp delete --id http://sp-kube-api-$envName
@cwoolum
cwoolum / azure-pipelines.yaml
Created October 11, 2019 15:32
Build with service containers
resources:
containers:
- container: nuget
image: cwoolum/thin-nuget-proxy
ports:
- 8080:80
env:
MIRROR__ACCESSTOKEN: $(System.AccessToken)
MIRROR__PACKAGESOURCE: "https://pkgs.dev.azure.com/mypackages/_packaging/mypackages/nuget/v3/index.json"
@cwoolum
cwoolum / cluster.tf
Last active June 5, 2023 12:11
AKS Cluster with Managed Identity and an ACR
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West US 2"
}
data "azurerm_client_config" "current" {
}
resource "azurerm_kubernetes_cluster" "example" {
name = "example-aks1"