Skip to content

Instantly share code, notes, and snippets.

View blueindex.htm
<head></head>
<body>
<p>Blue VMSS Cluster</p>
</body>
View greenindex.htm
<head></head>
<body>
<p>Green VMSS Cluster</p>
</body>
View workerADscript.ps1
Add-ADGroupMember -Identity "CN=containerhosts,CN=users,DC=win,DC=local" -Members "CN=worker4,OU=WorkerVMs,DC=win,DC=local"
View workerNonADscript.ps1
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
View domainbasics.ps1
#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 / ContainersYourWay_StartHere.md
Last active Sep 13, 2017
Getting Started with Containers from MTX
View ContainersYourWay_StartHere.md

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.

View rhm.json
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "receivehubmessages",
"labels": {
"name": "receivehubmessages"
}
},
"spec": {
View clientwebapp.json
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "clientwebapp",
"labels": {
"name": "clientwebapp"
}
},
"spec": {
@techbunny
techbunny / windowsnodejs.json
Last active Jul 14, 2017
Windows Container with Node.js
View windowsnodejs.json
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "node-con-cra",
"labels": {
"name": "node-con-cra"
}
},
"spec": {
View gist:4f9fa5258c807288f918
SOURCE Storage Account
----------------------
Access Key -
URL -
DESTINATION Storage Account
----------------------------
Access Key -
URL -