1 / 32

PowerShell DSC

PowerShell DSC. The future of deployments by Rami Mounla. Today’s outline . About myself Learn about DSC Look at DSC in action Check the DSC CRM configuration. About myself. Solution Architect Lead of the Dynamics CRM Team MCP – MCSD – MCTS Dynamics CRM MVP. Who are you?.

jasonj
Download Presentation

PowerShell DSC

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. PowerShell DSC The future of deployments by Rami Mounla

  2. Today’s outline • About myself • Learn about DSC • Look at DSC in action • Check the DSC CRM configuration

  3. About myself • Solution Architect • Lead of the Dynamics CRM Team • MCP – MCSD – MCTS • Dynamics CRM MVP

  4. Who are you?

  5. Industry Maturity Model

  6. Deployments Characteristics Predictable Repeatable Fast Automated NoHuman

  7. Previous Experience 5 days!!! Platform 1 ½ days 1 day SQL C++ ½ day Prerequisites ½ day AD ½ day Firewall VM 1 day

  8. Environment Drift

  9. PowerShell - Desired State Configuration DSC

  10. What is DSC “DSC is a new management platform in Windows PowerShell that enables deploying and managing configuration data for software services and managing the environment in which these services run”

  11. What Does DSC provide? “DSC provides a set of Windows PowerShell language extensions, new Windows PowerShell cmdlets, and resources that you can use to declaratively specify how you want your software environment to be configured.”

  12. What are the advantages? • Avoid configuration drift • Keep configurations the same for all servers (all environments) • Easily create VMs from scratch for every deploy • On-premise or cloud (e.g. Azure)

  13. So what? • Increase the (on going) assurance that deployment will succeed • Faster Deployments • Automate and simplify our deployments

  14. How does it work? • Authoring Phase: Create Configuration PowerShell • Staging Phase: CreateMOF file • Apply the configuration to the server • Push • Start-DscConfiguration • Pull • OData services to pull the details • Runs as System User MAKE IT SO!

  15. Architecture

  16. DSC Cocktails

  17. Providers

  18. 156 Other Providers https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d

  19. Demo Resource example & Diff

  20. Prerequisites • Windows Management Framework (WMF) 4.0 • PowerShell 4.0 with remoting enable • .NET 4.5 • Preferably 2012 R2 or 8.1 • Patch KB2883200 (for eXperimental resources)

  21. CRM 2015 perquisites • AD • OU • Service Account • Access to Performance Log Users group • SQL (with specific config) • .NET 3.5 • .NET 4.5.2 • Installation account must be Domain account • Cannot run using remoting

  22. Typical CRM deploy: UI

  23. Typical CRM deploy: Scripted Deploy <CRMSetup> <Server> <Patch update="true"> </Patch> <LicenseKey>****</LicenseKey> <SqlServer>WIN-FJSSHT6JGM6</SqlServer> <Databasecreate="true"/> <ReportingURL="http://WIN-FJSSHT6JGM6/ReportServer"/> <OrganizationCollation>Latin1_General_CI_AI</OrganizationCollation> <basecurrencyisocurrencycode="NZD"currencyname="New Zealand Dollar"currencysymbol="$"currencyprecision="2"/> <Organization>CRM 2015 Organisation</Organization> <OrganizationUniqueName>CRM2015Org</OrganizationUniqueName> <OU>OU=DynamicsCrmOu,DC=TheAuthority,DC=local</OU> <WebsiteUrlcreate="true"port="5555"> </WebsiteUrl> <InstallDir>c:\Program Files\Microsoft Dynamics CRM</InstallDir> ... <SQMoptin="false"/> <muoptinoptin="true"/> <Email> <IncomingExchangeServername=""/> </Email> </Server> </CRMSetup>

  24. Command line E:\Server\amd64\SetupServer.exe /Q/lC:\deployment\crmserver_install.log /configC:\deployment\crmConfigurationFile2015.xml

  25. Demo CRM using DSC

  26. Your Turn…

  27. Resources • http://bit.ly/1abB8PD(good place to start) • http://bit.ly/1TNqIqs(PluralSight course) • http://bit.ly/1MEGQGz(Microsoft Providers) • http://bit.ly/1xmaVFV(eXperimantal Resources) Continuous Delivery by Jez Humble, David Darley a Martin Fowler Signature book

  28. Questions?

More Related