Skip to content

Instantly share code, notes, and snippets.

<head></head>
<body>
<p>Blue VMSS Cluster</p>
</body>
<head></head>
<body>
<p>Green VMSS Cluster</p>
</body>
@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"
@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 / 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 / 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.

{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "receivehubmessages",
"labels": {
"name": "receivehubmessages"
}
},
"spec": {
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "clientwebapp",
"labels": {
"name": "clientwebapp"
}
},
"spec": {
@techbunny
techbunny / windowsnodejs.json
Last active July 14, 2017 21:18
Windows Container with Node.js
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "node-con-cra",
"labels": {
"name": "node-con-cra"
}
},
"spec": {
@techbunny
techbunny / gist:4f9fa5258c807288f918
Last active August 29, 2015 14:25
AZCopy Lab Notes
SOURCE Storage Account
----------------------
Access Key -
URL -
DESTINATION Storage Account
----------------------------
Access Key -
URL -