1 / 15

MCT Summit 2014 Bucharest

MCT Summit 2014 Bucharest. July 3-5, 2014. Please thank our sponsors. Notes from the field: Serverless lab deployment. Thorsten Butz $ twitter = $adn = @thorstenbutz gplus.to/thorstenbutz www.thorsten–butz.de (primarily German) mctsummit.eu/agenda/thorsten-butz Download the demo files:

pierce
Download Presentation

MCT Summit 2014 Bucharest

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MCT Summit 2014 Bucharest July 3-5, 2014

  2. Please thank our sponsors

  3. Notes from the field: Serverless lab deployment Thorsten Butz $twitter = $adn = @thorstenbutz gplus.to/thorstenbutz www.thorsten–butz.de (primarily German) mctsummit.eu/agenda/thorsten-butz Download the demo files: www.thorsten-butz.de/public/serverless_deployment.zip

  4. Notes from the field: Serverless lab deployment Thorsten Butz $twitter = $adn = @thorstenbutz gplus.to/thorstenbutz www.thorsten–butz.de (primarily German) mctsummit.eu/agenda/thorsten-butz Download the demo files: www.thorsten-butz.de/public/serverless_deployment.zip

  5. Two content slide • Your text • Your text

  6. Good old times? Stockholm Glasgow Moscow London Bonn Vancouver Lisbon Denver Tokyo Tunis Casablanca Miami Manila Banaglore Khartoum Acapulco Caracas Singapore Lima Nairobi Suva Brisbane Perth Santiago Auckland Melbourne Montevideo

  7. Part 1: Hydration kit(s)

  8. Part 2: PDT (PowerShell Deployment Toolkit)

  9. Part 3: "Eat your own dog food" Download the demo files: http://www.thorsten-butz.de/public/serverless_deployment.zip

  10. Example: Customize Hyper-V server settings $vmhost=Get-VMHost Set-VMHost-VirtualHardDiskPath` 'C:\Hyper-V\Virtual Hard Disks'-VirtualMachinePath'C:\Hyper-V‚ $vmhost.VirtualHardDiskPath $vmhost.VirtualMachinePath 1..3|ForEach-Object { if (Get-Vmswitch-Name"HV_Private$_"-ea:0) {"HV_Private$_ exists" } else { New-VMSwitch-NameHV_Private$_-SwitchTypePrivate } }

  11. Example: Create a VM Import-ModuleHyper-V $vmhost='.' $timestamp=Get-Date-UFormat'%y%m%d' $vm=$timestamp+'_'+ (Read-Host'VM name') $cpucount=2 $startupram=4GB $vhdzsize=300GB $switch='HV_Private2' $iso1='C:\depot\iso\HydrationCM2012R2_ADATUM_DE.iso' New-VM ` -ComputerName:$vmhost ` –Name:$vm ` -MemoryStartupBytes:$startupram ` -NewVHDPath:"$vm.vhdx" ` -NewvhdSizeBytes:$vhdzsize Set-VM ` -ComputerName:$vmhost ` [..] Mind the notes for the complete example!

  12. autonunattend.xml (partial) <?xmlversion="1.0"encoding="utf-8"?> <unattendxmlns="urn:schemas-microsoft-com:unattend"> <settingspass="windowsPE"> <componentname="Microsoft-Windows-Setup" ...> <UserData> <AcceptEula>true</AcceptEula> <ProductKey> <!--AVMA PID: --> <Key>DBGBW-NPF86-BJVTX-K3WKJ-MTB6V</Key> <!--gVLK PID: <Key>D2N9P-3P6X9-2R39C-7RTCD-MDVJX</Key> --> <WillShowUI>OnError</WillShowUI> </ProductKey> </UserData> [...]

  13. Example: Change hostname in "autounattend.xml" # TEMPLATE AUTOUNATTEND.XML FILE $file="c:\depot\unattended\ws2012r2\template-www1\autounattend.xml" # GRAB THE XML FILE [xml]$content=Get-Content$file $component=$content.unattend.settings.component | where-object{$_.computername -like"template*" } $component.computername # ASK FOR A NEW NAME [string]$vm=Read-Host'New computername' # NEW AUTOUNATTEND.XML FILE $newfile="c:\depot\unattended\ws2012r2\template-www1\autounattend_demo.xml" $component.computername =$vm $content.Save($newfile)

  14. Some useful snippets # ENABLE PS-REMOTING FOR WORKGROUPS Set-ItemWSMan:\localhost\Client\TrustedHosts*-Force # DISABLE DHCP-SERVER ROQUE DETECTION REGADD"HKLM\SYSTEM\CurrentControlSet\Services\DHCPServer\Parameters"` /vDisableRogueDetection/tREG_DWORD/d1/f # CREATE A SHARE New-SmbShare-namedepot-path"C:\Depot"-FullAccess:Everyone # CONFIGURE FW netsh.exeadvfirewallfirewallsetrule` group="windows management instrumentation (wmi)"newenable=yes # INSTALLAING CHOCOLATEY iex ((new-objectnet.webclient).DownloadString` ('https://chocolatey.org/install.ps1'))

  15. Wrap up

More Related