Skip to content

Instantly share code, notes, and snippets.

View cwoolum's full-sized avatar

Chris Woolum cwoolum

View GitHub Profile
@cwoolum
cwoolum / configure.sh
Last active January 6, 2019 19:37
AKS-Deploy Part 1
echo Enter the name of the environment you would like to create
read envName
serverApplicationSecret="$(openssl rand -base64 30)"
serverApplicationId="$(az ad app create --display-name kube-aad-server-$envName --identifier-uris "https://kube-aad-server-$envName" --end-date "2050-1-1" --password $serverApplicationSecret --query appId -o tsv)"
az ad app update --id $serverApplicationId --set groupMembershipClaims=All
az ad app permission add --id $serverApplicationId --api 00000003-0000-0000-c000-000000000000 --api-permissions e1fe6dd8-ba31-4d61-89e7-88639da4683d=Scope 06da0dbc-49e2-44d2-8312-53f166ab848a=Scope 7ab1d382-f21e-4acd-a863-ba3e13f7da61=Role
az ad app permission grant --id $serverApplicationId --api 00000003-0000-0000-c000-000000000000
@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"