Skip to content

Instantly share code, notes, and snippets.

echo "Goodby World"
@danielscholl
danielscholl / hello.sh
Created February 18, 2022 16:44
Hello World
echo "Hello World"
@danielscholl
danielscholl / readme.md
Last active September 11, 2021 14:17
Private AKS

Setup a fully Private AKS

These directions sill setup a an Private AKS Cluster

PREFIX="private"         # short unique name, min 5 max 8 letters
LOCATION="centralus"     # Azure Region

RESOURCE_GROUP="${PREFIX}-aks"
@danielscholl
danielscholl / validation.md
Created June 29, 2021 04:34
Kind - KV CSI with SP

Validation: KV CSI Secret Driver with Service Principal

This validation will use Service Principal and Key Vault CSI Secret Driver features to test secret management with Key Vault Secrets.

Create Azure Resources

# Azure CLI Login
@danielscholl
danielscholl / validation.md
Last active June 30, 2022 12:29
Kind - AAD-Pod-Identity-SP

Validation: AAD Pod Identity with Service Principal

This validation will use Service Principal and Key Vault CSI Secret Driver features to test secret management with Key Vault Secrets.

Create Azure Resources

# Azure CLI Login
az login

OSDU R2 Setup Instructions

Create ADO and Import Projects for R2

This typically takes about 10-15 minutes to complete.

#Install Chocolatey
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
#Assign Chocolatey Packages to Install
$Packages = `
'git', `
'microsoft-edge', `
'visualstudiocode', `
'docker-desktop'
@danielscholl
danielscholl / init-backend-state.sh
Last active December 11, 2019 15:11
Terraform Backend State Manage
#!/usr/bin/env bash
#
# Purpose: Initialize the terraform backend-state
# Usage:
# init-backend-state.sh <resourcegroup> <storageaccount> <keyvault>
# curl https://gist.githubusercontent.com/danielscholl/5974a8f3e6c0ecfb45444b690f4299cd/raw/30356cb760c489cbff922c473864edef8779a059/init-backend-state.sh | bash -s <rg> <sa> <kv>
set -e
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1';
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
./dotnet-install.ps1 -InstallDir '~/.dotnet' -Channel LTS
$RELEASE="20190926.1"
$ID_SCOPE="0ne0004515C"
$REGISTRATION="edge-gateway"
. {Invoke-WebRequest -useb https://github.com/danielscholl/iot-tpm-provision/releases/download/$RELEASE/build.zip -Outfile tpm.zip}
Expand-Archive -Path ".\tpm.zip"
New-Module -Name IoTEdge -ScriptBlock {
<#
# Installs the IoT Edge Security Daemon on Windows.
#>
#requires -Version 5
#requires -RunAsAdministrator
Set-Variable Windows1607 -Value 14393 -Option Constant