Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ed Elliott - Practical DSC in Azure

Powershell DSC is the future of configuration management on Windows but it can be very frustrating when it fails, especially in Azure.

In this session we will explore how to deploy configurations to windows servers using Azure Automation and DSC.

We will go over the concepts involved and have a walk through of getting a DSC configuration to apply to a set of virtual machines. We will take a demo configuration with multiple dependencies and deploy that to a Windows Virtual Machine in Azure – we will examine what happens at each step and show you how to troubleshoot it if and when your deployment fails.

  • Be the first to comment

  • Be the first to like this

Ed Elliott - Practical DSC in Azure

  1. 1. @EdDebug | @DataDevOps Practical DSC in Azure Ed Elliott “Lift n’ Shift” SQL, App & Web
  2. 2. @EdDebug | @DataDevOps 2007 Doc 2017 MOF Doc
  3. 3. @EdDebug | @DataDevOps
  4. 4. @EdDebug | @DataDevOps Part 1: Azure Automation Account
  5. 5. @EdDebug | @DataDevOps Azure Automation Account • Do Stuff • DSC Stuff
  6. 6. @EdDebug | @DataDevOps Configuration Pull Server
  7. 7. @EdDebug | @DataDevOps Pull Server Output Compiled Encrypted Awesome
  8. 8. @EdDebug | @DataDevOps
  9. 9. @EdDebug | @DataDevOps
  10. 10. @EdDebug | @DataDevOps Report Server
  11. 11. @EdDebug | @DataDevOps
  12. 12. @EdDebug | @DataDevOps
  13. 13. @EdDebug | @DataDevOps Report Server https://blogs.technet.microsoft.com/ashleymcglone/2017/01/12/pro-tip-powershell-dsc-events-to-monitor/
  14. 14. @EdDebug | @DataDevOps LCM
  15. 15. @EdDebug | @DataDevOps AZUREvirtual machine DSC extension meet AZUREautomation account
  16. 16. @EdDebug | @DataDevOps Github Sample https://github.com/Azure/azure-quickstart-templates/tree/master/dsc-extension-azure-automation- pullserver
  17. 17. @EdDebug | @DataDevOps 2 Servers – ARM Deploy Successful / Arm Deploy Fail
  18. 18. @EdDebug | @DataDevOps
  19. 19. @EdDebug | @DataDevOps Part 2: Troubleshooting • Compilation • Output logs of compilation process in portal
  20. 20. @EdDebug | @DataDevOps DSC Extension
  21. 21. @EdDebug | @DataDevOps APPLY THIS NOW! • Start-DscConfiguration –UseExisting WOW
  22. 22. @EdDebug | @DataDevOps Applying DSC Configuration Reports or c:windowssystem32ConfigurationConfigurationStatus
  23. 23. @EdDebug | @DataDevOps C:Windowssystem32Configuration
  24. 24. @EdDebug | @DataDevOps
  25. 25. @EdDebug | @DataDevOps Register-PSRepository -Name xDscDiagnosticsDev -SourceLocation https://ci.appveyor.com/nuget/xdscdiagnostics -InstallationPolicy Trusted -Verbose install-module xdscdiagnostics -Repository 'xDscDiagnosticsDev'
  26. 26. @EdDebug | @DataDevOps
  27. 27. @EdDebug | @DataDevOps Part 3: Lift n’ Shift Case Study • SQL Server • App Server • Web Server
  28. 28. @EdDebug | @DataDevOps Raw (AzureRM) Powershell… • Resource Group • Azure Automation Account • MOF’s / Resources • Remove Failed VM Extensions
  29. 29. @EdDebug | @DataDevOps ARM • Virtual Machines (and disks, nic’s, nsg’s, etc) • VM Image SQLServer + SQLIaasExtension • Domain Join Extension • DSC Extension
  30. 30. @EdDebug | @DataDevOps VM Image • SQL Installed • SQL • SSIS • SSRS • SSAS • SSMS • Images patched / updated behind scenes… • SQLIaasExtension
  31. 31. @EdDebug | @DataDevOps DSC • Regional Settings • Disk Configuration • Windows Features (IIS, .Net, Clustering Support) • Administrators • Service Credentials • Download / Install Application • Debug Logger
  32. 32. @EdDebug | @DataDevOps Installing APPS Easily
  33. 33. @EdDebug | @DataDevOps CATTLE NOT PETS
  34. 34. @EdDebug | @DataDevOps Raw(er) Powershell (SQL Server) • New-Cluster • Enable-SqlAlwaysOn • New-SqlHadrEndpoint T-SQL • CREATE AVAILABILITY GROUP • WITH SEEDING_MODE = AUTOMATIC and other A Words • ALTER AG ADD LISTENER
  35. 35. @EdDebug | @DataDevOps

×