Skip to content

Instantly share code, notes, and snippets.

Jennelle Crothers techbunny

Block or report user

Report or block techbunny

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
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
@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": {
@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 clientwebapp.json
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "clientwebapp",
"labels": {
"name": "clientwebapp"
}
},
"spec": {
@techbunny
techbunny / ITCamp_Labs1-3
Last active Jun 18, 2017
Azure IT Camp Snippets
View ITCamp_Labs1-3
#-----------------------------------------------
# Lab 1: Building the Foundation
# Section: Connect to Azure with Powershell
#----------------------------------------------
Add-AzureAccount # This prompts you for your Azure Subscription Account Credentials, and logs you in.
Get-AzureSubscription | FT SubscriptionName # Get the list of Subscriptions your has access to.
Get-AzureLocation | FT DisplayName # Show the datacenter region location names. (You will use the one you chose for your network location.)
View gist:4f9fa5258c807288f918
SOURCE Storage Account
----------------------
Access Key -
URL -
DESTINATION Storage Account
----------------------------
Access Key -
URL -
@techbunny
techbunny / ImpLab_ManageTweaks
Created Dec 26, 2014
The Imperfect Lab: VM Manageablity Tweeks
View ImpLab_ManageTweaks
# To add VMs to Availability Sets
Get-AzureVM -ServiceName "<cloudservicename>" -Name "<servername>"
| Set-AzureAvailabilitySet -AvailabilitySetName "<AVSetName>"
| Update-AzureVM
# To availability sets that exist in your subscription
(Get-AzureService).servicename
| foreach {Get-AzureVM -ServiceName $_ }
| select name,AvailabilitySetName
You can’t perform that action at this time.