Instantly share code, notes, and snippets.

Jennelle Crothers techbunny

View GitHub Profile
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
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": {
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 -
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 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