Skip to content

Instantly share code, notes, and snippets.

@techbunny
techbunny / ContainersYourWay_StartHere.md
Last active September 13, 2017 18:09
Getting Started with Containers from MTX

Getting Started with Containers - Your Way

Here you can find a list of some quick tutorials and sample code to get you going quickly with containers on Azure.

On Your Computer

To quickly get started creating containers on your computer, download either Docker for Windows or Docker for Mac. One of the cool features of Docker for Windows is the ability to switch between Linux and Windows containers.

To get started creating containers with Docker, I recommend their Getting Started with Docker guide.

@techbunny
techbunny / domainbasics.ps1
Last active August 7, 2018 22:29
User Creation
#Adds KDS Root Key with no delay. Use only with testing, will cause issue with more than one DC.
Add-KdsRootKey -EffectiveTime ((get-date).addhours(-10))
#Create a OU for Worker VMs and AD Group for Container Hosts
New-ADOrganizationalUnit "WorkerVMs"
New-ADGroup -GroupCategory Security -DisplayName "Container Hosts" -Name containerhosts -GroupScope Universal
$containerhosts = Get-ADGroup containerhosts
# Create some sample regular users if needed for future testing
@techbunny
techbunny / workerNonADscript.ps1
Last active April 5, 2018 17:16
workerNonADscript
net localgroup administrators /add win.local\workeradmin
net localgroup "Remote Desktop Users" /add win.local\workeradmin
net localgroup "Remote Desktop Users" /add win.local\winadmin
Enable-WindowsOptionalFeature -FeatureName ActiveDirectory-Powershell -online -all
@techbunny
techbunny / workerADscript.ps1
Created April 5, 2018 18:29
workerADscript
Add-ADGroupMember -Identity "CN=containerhosts,CN=users,DC=win,DC=local" -Members "CN=worker4,OU=WorkerVMs,DC=win,DC=local"
<head></head>
<body>
<p>Green VMSS Cluster</p>
</body>
<head></head>
<body>
<p>Blue VMSS Cluster</p>
</body>