Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Infrastructure As Code

Infrastructure As Code

Infrastructure as Code using Azure RM, PowerShell DSC, Chocolatey and Octopus Deploy

Erwin Staal

November 24, 2016
Tweet

More Decks by Erwin Staal

Other Decks in Programming

Transcript

  1. Azure Resource manager • Management of infrastructure • Resource groups

    • Resouces • Resource providers • Templates • Azure portal • Visual Studio
  2. • { • "$schema": "", • "contentVersion": "", • "parameters":

    { }, • "variables": { }, • "resources": [ ], • "outputs": { } • }
  3. Azure Automation DSC • Management of software and settings on

    machine • PowerShell DSC • Pull server • Configuration • Nodes
  4. Configuration ServerConfig { Import-DscResource -ModuleName cChoco Import-DscResource -Module xWebAdministration Node

    "webserver" { WindowsFeature installIIS { Ensure="Present" Name="Web-Server" } } }
  5. Chocolatey • Packagemanager for Windows • choco install googlechrome •

    Nuspec • Tools folder with chocolateyInstall.ps1 Install-ChocolateyPackage 'MyApp' 'msi' '/quiet' 'http://myapp.tld/myapp- 0.1.0-x86.msi' 'http://myapp.tld/myapp- 0.1.0.msi'