The future of deployments by Rami Mounla

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: OLE Notes Migration Utility
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows Azure Connect Name Title Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
06 | Debugging and Deploying on Azure Stacey Mulcahy | Technical Evangelist Rami Sayar | Technical Evangelist.
05 | Debugging and Deploying on Azure Stacey Mulcahy | Technical Evangelist Rami Sayar | Technical Evangelist.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

IT Operations Management
Building AD-SQL-APP Server on AZURE
Microsoft Ignite /17/ :54 PM BRK2092
Configuration Management with Azure Automation DSC
IT Operations Management
Возможности Excel 2010, о которых следует знать
SharePoint Online Management and Control
DevOps Fundamentals Configuration Management
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Title of Presentation 11/22/2018 3:34 PM
持續的產出Windows Azure 雲端服務
Azure AD Domain Services
Microsoft Build /24/2018 2:25 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Office Mac /30/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Title of Presentation 12/2/2018 3:48 PM
Microsoft Virtual Academy
Microsoft Virtual Academy
12/9/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
System Center Application Management
Surviving identity management in a hybrid world
Microsoft Virtual Academy
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
4/27/17, Bell #8 What amount of net pay has been earned this period?
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
WINDOWS AZURE A LAP AROUND PLATFORM THE Steve Marx
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
5/24/2019 6:44 PM 1/8/18 Bell #10 In a world governed by the gods, is there any room for human will? Do human choices make a difference? EXPLAIN © 2007.
5/25/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Title of Presentation 7/24/2019 8:53 PM
Build /27/2019 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
Presentation transcript:

The future of deployments by Rami Mounla 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? TechEd 2013 11/11/2018 11:52 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Industry Maturity Model

Deployments Characteristics Predictable Repeatable Fast Automated No Human

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

Environment Drift

PowerShell - Desired State Configuration DSC

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”

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.”

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)

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

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

Architecture

DSC Cocktails

Providers Provider DSC Archive Resource DSC Environment Resource Description DSC Archive Resource Unpacks archive (.zip) files at specific paths on target nodes. DSC Environment Resource Manages system environment variables on target nodes. DSC File Resource Manages files and directories on target nodes. DSC Group Resource Manages local groups on target nodes. DSC Log Resource Logs configuration messages. DSC Package Resource Installs and manages packages, such as Windows Installer and setup.exe packages, on target nodes. DSC WindowsProcess Resource Configures Windows processes on target nodes. DSC Registry Resource Manages registry keys and values on target nodes. DSC WindowsFeature Resource Adds or removes Windows features and roles on target nodes. DSC Script Resource Runs Windows PowerShell script blocks on target nodes. DSC Service Resource Manages services on target nodes. DSC User Resource Manages local user accounts on target nodes.

156 Other Providers xPendingReboot Checks to see if a reboot is pending and allows DSC to predictably handle the condition xSmbShare Allow's configuration of a SMB Share xADDomain Allows configuration of Active Directory components xChrome Installs the Chrome browser xUAC  Allows configuration of User Account Control prompt. xWindowsUpdate Handles  installation of  a Windows update (or a hotfix) from a given path (file path or a URI) xFirewall Manage firewall rules https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d

Demo Resource example & Diff

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)

CRM 2015 perquisites AD OU Service Account SQL (with specific config) 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

Typical CRM deploy: UI

Typical CRM deploy: Scripted Deploy <CRMSetup> <Server> <Patch update="true"> </Patch> <LicenseKey>****</LicenseKey> <SqlServer>WIN-FJSSHT6JGM6</SqlServer> <Database create="true"/> <Reporting URL="http://WIN-FJSSHT6JGM6/ReportServer"/> <OrganizationCollation>Latin1_General_CI_AI</OrganizationCollation> <basecurrency isocurrencycode="NZD" currencyname="New Zealand Dollar" currencysymbol="$" currencyprecision="2"/> <Organization>CRM 2015 Organisation</Organization> <OrganizationUniqueName>CRM2015Org</OrganizationUniqueName> <OU>OU=DynamicsCrmOu,DC=TheAuthority,DC=local</OU> <WebsiteUrl create="true" port="5555"> </WebsiteUrl> <InstallDir>c:\Program Files\Microsoft Dynamics CRM</InstallDir> ... <SQM optin="false"/> <muoptin optin="true"/> <Email> <IncomingExchangeServer name=""/> </Email> </Server> </CRMSetup>

Command line E:\Server\amd64\SetupServer.exe /Q /l C:\deployment\crmserver_install.log /config C:\deployment\crmConfigurationFile2015.xml

Demo CRM using DSC

Your Turn…

Resources Continuous Delivery by Jez Humble, David Darley a Martin Fowler Signature book 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)

Questions?