@ITProGuru
Dan Stolts (@ITProGuru)
Chief Technology Strategist
US DX North East – Audience
Blog: ITProGuru.com
dstolts@Microsoft.com
www.linkedin.com/in/danstolts
PowerShell and DSC
Empowers DevOps and the
Cloud
@ITProGuru
Specializations:
Cloud, Virtualization, Windows Server
aka.ms/70-534-book
@ITProGuru
https://puppetlabs.com/
@ITProGuru
Outperforming
teams are 54%
more
likely to
Developers
26.7%
No executive support
56.7%
Cultural inhibitors
43.3%
Fragmentedprocesses
Collaboration blockers
DevOps was being initiated by
more development teams than IT Ops
teams by about a 40% to 33% margin
Agile methodologies
have adopted
3/4 of teams
Business
IT Ops
The average hourly
cost of infrastructure
failure is $100,000
per hour
It takes on average
200 minutes to
diagnose and repair
a production issue
A bug caught in production ends
up costing
than if the same bug was found
earlier in the development cycle
100x more
IT decision
makers is still
unfamiliar with
the term DevOps
6
1 in
40%
… of implementations end up getting
reworked because they don’t meet the
users’ original requirements
… of development budgets for software, IT
staff and external professional services will
be consumed by poor requirements
41%
IT drives
business
success!
High IT performance
correlates with strong
business performance,
helps boost productivity,
market share and profit.
Responding to
ongoing needs for
efficiency and growth
Always keeping all
systems safe and secure
dual goals
… for companies that try to
adapttheir existing toolsfor
DevOps practices
80% failure rate …
CIOs
70 %
to reduce
IT costs
Would
increase
risk
and accelerate
business agility
of
•
•
•
•
•
•
•
•
•
•
•
•
•
•
http://www.itproguy.com/devops-practices/
Why DSC VS GP? (Better than GP)
https://azure.microsoft.com/downloads/
PowerShell Command-Line Tool for Azure
Windows Management Framework 5.0
https://www.microsoft.com/en-us/download/details.aspx?id=50395
Updates…
• Just Enough Administration (JEA)
• Creating Custom Types using PowerShell Classes
• Improvements in PowerShell Script Debugging
• Improvements in Desired State Configuration (DSC)
• Audit PowerShell Usage using Transcription and Logging
• Software Discovery, Install and Inventory with PackageManagement
• PowerShell Module Discovery, Install and Inventory with PowerShellGet
• PowerShell Script Discovery, Install and Management with PowerShellGet
• New and updated cmdlets based on
community feedback
• Information Stream
• Generate PowerShell Cmdlets based on OData
Endpoint
• Network Switch Management with PowerShell
• Software Inventory Logging (SIL)
DSC Resource Kit – Anniversary Release
https://blogs.msdn.microsoft.com/powershell/2016/05/18/dsc-resource-kit-anniversary-release/
• xFailOverCluster
• xFirefox
• xNetworking
• xPhp
• xPSDesiredStateConfiguration
• xRobocopy
• xSqlPs
• xSQLServer
• xStorage
• xTimeZone
• xWebDeploy
• xWindowsUpdate
To see a list of all released DSC
Resource Kit modules, go to the
PowerShell Gallery
http://www.powershellgallery.com/
…
display all modules tagged as
DSCResourceKit.
You can also enter a module’s name in
the search box in the upper right corner
of the PowerShell Gallery to find a
specific module.
# To list all modules (WMF 5.0)of the DSC Resource Kit Find-Module -Tag DSCResourceKit
# To list all DSC resources (WMF 5.0) from all sources Find-DscResource
@ITProGuru
Tip: Must Read Book
Amazon…
The Phoenix Project: A Novel
about IT, DevOps, and Helping
Your Business Win Paperback
– October 16, 2014
The book is available on Audio Book; you can
likely get it for free - if it’s your first time
accepting a book from a friend.
http://a.co/fJXE92A.
If you do not have an Audible Account, you get two free
books when signing up for your free account.
This is the BEST IT Book I have ever read.
@ITProGuru
 Gene Kim’s “3 ways”



 Infrastructure as Code (IaC)
 Continuous Integration (CI)
 Automated Testing
 Application Performance
Monitoring/Management (APM)

 Release Management
 Configuration Management

• Advanced Monitoring
• Capacity Management
• Feature Flags
•
•
• Hypothesis Driven Development
• Testing in Production
• Fault Injection
•
• A/B Testing
http://itrevolution.com/the-three-ways-principles-underpinning-devops/
http://www.itproguy.com/devops-practices/
@ITProGuru
Traditional vs modern dev-ops
Category Traditional Modern DevOps
Quality of code check-ins Unknown Validated through unit tests
Environment
Creation/Configuration Manual Automated
Deployment Frequency 1-2 months (or less frequent) Deploy whenever needed,
including several per day
App Deployment Process Requires meetings and planning Push-button deployment
Deployment validation Manual Automated
Monitoring Minimal to none Health and Performance
monitoring
Dev and Ops relationship Blame culture Culture of trust
DSC – Definition
• Windows/Linux etc.
Servers
• Windows/iOS etc
Clients
• PC/Servers/Tablet/Phones etc.
Form Factors
“Standard Space management to manage heterogeneous networks containing
different types of Servers connected with Clients of different form factors.”
Why DSC?
Requirement
Need
What is “Make it so”?
• With DSC we just define in configuration –
“Hey, you are a web browser, this is what you should look like.
Get to it, stay that way.”
• Logic of making configuration in that way lies with ‘Local
Configuration Manager’ on Client Machines.
• Making logic on client side enable us to control device specific behavior
implementation
How DSC help?
One Stop Solution to Manage
Enterprise
Option of correcting configuration
drift when it occurs, or just report
on configuration drift, to ley it know
to admins that it has occurred
Cloud
BYOD -
non-Win
Devices
Laptop
(VPNs)
Desktop/
Server
How DSC help?
One Stop Solution to Manage
Enterprise
Allows you to describe the desired
state of your environment by using
this new power shell syntax
Option of correcting configuration
drift when it occurs, or just report
on configuration drift, to ley it know
to admins that it has occurred
Cloud
BYOD -
non-Win
Devices
Laptop
(VPNs)
Desktop/
Server
How DSC help?
One Stop Solution to Manage
Enterprise
Allows you to describe the desired
state of your environment by using
this new power shell syntax
Option of correcting configuration
drift when it occurs, or just report
on configuration drift, to ley it know
to admins that it has occurred
Cloud
BYOD -
non-Win
Devices
Laptop
(VPNs)
Desktop/
Server
Where DSC can be used?
Install or remove server roles and features
Manage registry settings
Manage files and directories
Start, stop, and manage processes and services
Manage local groups and user accounts
Install and manage packages such as .msi and .exe
Manage environment variables
Discovering the actual configuration state on a given node
Fix a configuration that has drifted away from the desired state
Already Supported in GP
How DSC works?
3 Phase Model
Authorizing
Phase
Staging
Phase
“Make It
So” Phase
How DSC works?
Authoring Phase
In this phase Admin creates the DSC configuration locally, through
PowerShell or by third party languages/tools.
The output is one or more MOF (Management Object Format)
files, the format which is consumable by DSC.
DC /
Pull Server
How DSC works?
Authoring Phase
Staging Phase In this phase DSC data (MOF files) is staged for Deployment –
• Push Model – On DC
• Pull Model – Dedicated Web Server (IIS)
DC /
Pull Server
How DSC works?
Authoring Phase
Staging Phase
“Make it So” Phase
DSC data is either pulled or
pushed to the “Local
Configuration Store” and
contains the current, previous
and the desired (DSC) state
configuration.
Enterprise
The configuration then gets
parsed and the relevant
(WMI) provider implements
the change and “makes it so”.
@ITProGuru
Power Shell Extension
• Support type definitions for eg . Configuration types
• New language/constructs specific to authoring of the Configuration scripts.
Eg.
configuration MyWebsite
{
node ("WebServer1", "WebServer2")
{
WindowsFeature IIS
{
Ensure = "Present"
Name = "Web-Server“
}
}
}
As Dan the developer,
I can easily
author a DSC script
reusing DSC resources
from a public or private gallery,
so that I can quickly and easily write
DSC scripts
with very little custom code.
Author a DSC script WITHOUT DSC Resource
… reusing DSC resource/s - I
I can Find DSC resources from
Gallery by Search
Term/Name/Tag
I have a rich set of resources to
use from Day 1 that replace my
RM actions [see next slide]
Rich set of DSC resources replacing RM actions
No. RM Tool Tag RM Action
RM Customer
Usage Analog DSC Resource
1 Application Pool IIS Create/Config/Start/Remove App Pool 1. Very Frequent IISWebConfiguration
2 Web Application IIS Create/Configure/Remove Web Application 1. Very Frequent WebDeploy
3 Website IIS Create/Configure/Remove/Start/Stop/Restart Website 1. Very Frequent Website
4 Database Deployer SQL Create/Drop Database 1. Very Frequent SQLQuery
5 Database Deployer SQL Execute SQL Script 1. Very Frequent SQLQuery
6 Windows System Common Windows IO 1. Very Frequent File
7 XCopy Deployer System Copy File or Folder 1. Very Frequent File
8 MSI Deployer System Deploy MSI 1. Very Frequent Package
9 Virtual Directory IIS Create/Configure/Remove Virtual Directory 2. Frequent IISWebConfiguration
10 Web Application IIS Remove Web Application 2. Frequent WebDeploy
11 File System Create/Delete File or Folder 2. Frequent File
12 Command Line Runner System Run Command Line [as User] 2. Frequent Process
13 Windows Services Manager System Create/Start/Stop/Config/Restart Service 2. Frequent Service
14 MTM Automated Tests Manager Test Run Tests 2. Frequent ?
Existing PS Modules/DSC resources ported to gallery
I can port PS modules & DSC
resources from Technet Script
center to the gallery.
reusing DSC resource/s - II
WITH DSC Resource
I can install multiple resources &
modules that my DSC script
depends on before deploying to
a node in push mode.
PowerShell Gallery http://www.powershellgallery.com/
… from a public or private gallery - I
I can install DSC resources from
the Gallery
I can choose the URI of the
public/private gallery or the path
[like a build drop path] that I
want to install the module from.
… from a public or private gallery - II
… from a public or private gallery - III
User can choose to not install module from the
public/private gallery but to directly copy all the required
bits directly from a build drop path.
What does a Script look like?
https://azure.microsoft.com/en-us/documentation/articles/automation-dsc-overview/
Configuration Block…
Node block…
Resource Block… (AKA: Compilation Job)
“MyConfiguration.webserver”
Within a Configuration block,
you can do anything that you
normally could in a
PowerShell function
DSC configuration
Step-by-Step
https://azure.microsoft.com/en-us/documentation/articles/automation-dsc-getting-started/
• Prerequisites (above)
• Create Test Config
• Importing a configuration into Azure
Automation
• Viewing Configuration
• Compile Configuration (MOF file)
• Viewing a compilation
• Viewing Node Configuration
• Onboard Azure ARM VM for Mgmt
• Assign Node Configuration
Save the file as TestConfig.ps1.
Prerequisites
•An Azure Automation account. see Azure Run As Account.
•An Azure Resource Manager VM (not Classic) running
Windows Server 2008 R2 or later. see Create your first
Windows virtual machine in the Azure portal
Azure Automation DSC LifeCycle
@ITProGuru
Session VS VM (or VDI)
Session Based Computing VM or VDI Based Computing
@ITProGuru
Containers
Container Based Density Advantages
App App App App
App App App App
App App App App
App App App App
Linux VM
App App App App
App App
App App
App App
App App
App App
App App
App App
App App
App App
Container Based Computing VM Isolation
@ITProGuru
Container Run-time On-Premises
Virtual
machine(s)
Hyper-V
Container(s)
Windows Server
Container(s)
Docker
Container
Physical
Server
Linux
@ITProGuru
Container Run-time Cloud
Virtual
machine(s)
Windows
Server
Container(s)
Hyper-V
Container(s)
Cloud
Provider
Docker
Container
(Linux Now)
Azure
Container(s)
ACS …
Containers
As A Service
Docker Compatible
Linux Windows Windows
Windows
Coming
@ITProGuru
Applications
Clients
Infrastructure
Management
Databases &
Middleware
App Frameworks
& Tools
DevOps
PaaS
Azure is an open cloud
Orches
tration
@ITProGuru
aka.ms/devops
aka.ms/iac_tlp
aka.ms/devopsmva
#TalkDevOps
@ITProGuru
•
http://sdmsoftware.com/group-policy-blog/group-policy/group-policy-vs-desired-state-
configuration-vs/
•
http://blogs.msdn.com/b/powershell/archive/tags/desired+state+configuration/
@ITProGuru




 http://ITProGuru.com

https://msdn.microsoft.com/virtualization/windowscontainers
http://aka.ms/windowscontainers

More Related Content

PPTX
PowerBreakfast #005 - Why DSC, NOW?
PPTX
Windows 2012 R2 Multi Server Management
PPT
Joomla Day Austin Part 4
PPT
Fs And Self Service
PPTX
Managing SQLserver for the reluctant DBA
PPTX
My Saminar On Php
PPTX
Dev ops developer (session 3)
PPTX
Cm5 secure code_training_1day_system configuration
PowerBreakfast #005 - Why DSC, NOW?
Windows 2012 R2 Multi Server Management
Joomla Day Austin Part 4
Fs And Self Service
Managing SQLserver for the reluctant DBA
My Saminar On Php
Dev ops developer (session 3)
Cm5 secure code_training_1day_system configuration

Similar to PowerShell-and-DSC-Enables-DSCDevOps-1.pptx (20)

PPTX
SQL Server and System Center Advisor
ODP
Best practice adoption (and lack there of)
PDF
Datasheet was pluginforrd
PPTX
Trivandrumtechcon20
PDF
Seven steps to better security
ODP
Drools & jBPM Info Sheet
PPTX
PHP North-East - Automated Deployment
PPTX
Automated Deployment
PPTX
Best practices for implementing CI/CD on Salesforce
PDF
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
PDF
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
PDF
Isset Presentation @ EECI2009
PDF
New Teams Client Architecture Autopsy, a Look Under the Hood
PPTX
Virtualization auditing & security deck v1.0
PDF
Scaling Without Expanding: a DevOps Story
PPTX
SharePoint Administration: Tips from the Field
PPTX
Azure SQL - more or/and less than SQL Server
PPTX
IT Summit - Modernizing Enterprise Analytics: the IT Story
PDF
Datasheet j bosspluginforrd
PPTX
SQL Server - High availability
SQL Server and System Center Advisor
Best practice adoption (and lack there of)
Datasheet was pluginforrd
Trivandrumtechcon20
Seven steps to better security
Drools & jBPM Info Sheet
PHP North-East - Automated Deployment
Automated Deployment
Best practices for implementing CI/CD on Salesforce
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
DevOps and Decoys How to Build a Successful Microsoft DevOps Including the Data
Isset Presentation @ EECI2009
New Teams Client Architecture Autopsy, a Look Under the Hood
Virtualization auditing & security deck v1.0
Scaling Without Expanding: a DevOps Story
SharePoint Administration: Tips from the Field
Azure SQL - more or/and less than SQL Server
IT Summit - Modernizing Enterprise Analytics: the IT Story
Datasheet j bosspluginforrd
SQL Server - High availability
Ad

Recently uploaded (20)

PPTX
Microsoft User Copilot Training Slide Deck
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
Statistics on Ai - sourced from AIPRM.pdf
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PPTX
Build Your First AI Agent with UiPath.pptx
Microsoft User Copilot Training Slide Deck
giants, standing on the shoulders of - by Daniel Stenberg
Enhancing plagiarism detection using data pre-processing and machine learning...
sustainability-14-14877-v2.pddhzftheheeeee
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
sbt 2.0: go big (Scala Days 2025 edition)
Training Program for knowledge in solar cell and solar industry
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
Improvisation in detection of pomegranate leaf disease using transfer learni...
Basics of Cloud Computing - Cloud Ecosystem
Custom Battery Pack Design Considerations for Performance and Safety
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Statistics on Ai - sourced from AIPRM.pdf
MuleSoft-Compete-Deck for midddleware integrations
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
future_of_ai_comprehensive_20250822032121.pptx
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Build Your First AI Agent with UiPath.pptx
Ad

PowerShell-and-DSC-Enables-DSCDevOps-1.pptx

  • 1. @ITProGuru Dan Stolts (@ITProGuru) Chief Technology Strategist US DX North East – Audience Blog: ITProGuru.com [email protected] www.linkedin.com/in/danstolts PowerShell and DSC Empowers DevOps and the Cloud @ITProGuru Specializations: Cloud, Virtualization, Windows Server aka.ms/70-534-book
  • 3. @ITProGuru Outperforming teams are 54% more likely to Developers 26.7% No executive support 56.7% Cultural inhibitors 43.3% Fragmentedprocesses Collaboration blockers DevOps was being initiated by more development teams than IT Ops teams by about a 40% to 33% margin Agile methodologies have adopted 3/4 of teams Business IT Ops The average hourly cost of infrastructure failure is $100,000 per hour It takes on average 200 minutes to diagnose and repair a production issue A bug caught in production ends up costing than if the same bug was found earlier in the development cycle 100x more IT decision makers is still unfamiliar with the term DevOps 6 1 in 40% … of implementations end up getting reworked because they don’t meet the users’ original requirements … of development budgets for software, IT staff and external professional services will be consumed by poor requirements 41% IT drives business success! High IT performance correlates with strong business performance, helps boost productivity, market share and profit. Responding to ongoing needs for efficiency and growth Always keeping all systems safe and secure dual goals … for companies that try to adapttheir existing toolsfor DevOps practices 80% failure rate … CIOs 70 % to reduce IT costs Would increase risk and accelerate business agility of
  • 5. Why DSC VS GP? (Better than GP)
  • 7. Windows Management Framework 5.0 https://www.microsoft.com/en-us/download/details.aspx?id=50395 Updates… • Just Enough Administration (JEA) • Creating Custom Types using PowerShell Classes • Improvements in PowerShell Script Debugging • Improvements in Desired State Configuration (DSC) • Audit PowerShell Usage using Transcription and Logging • Software Discovery, Install and Inventory with PackageManagement • PowerShell Module Discovery, Install and Inventory with PowerShellGet • PowerShell Script Discovery, Install and Management with PowerShellGet • New and updated cmdlets based on community feedback • Information Stream • Generate PowerShell Cmdlets based on OData Endpoint • Network Switch Management with PowerShell • Software Inventory Logging (SIL)
  • 8. DSC Resource Kit – Anniversary Release https://blogs.msdn.microsoft.com/powershell/2016/05/18/dsc-resource-kit-anniversary-release/ • xFailOverCluster • xFirefox • xNetworking • xPhp • xPSDesiredStateConfiguration • xRobocopy • xSqlPs • xSQLServer • xStorage • xTimeZone • xWebDeploy • xWindowsUpdate To see a list of all released DSC Resource Kit modules, go to the PowerShell Gallery http://www.powershellgallery.com/ … display all modules tagged as DSCResourceKit. You can also enter a module’s name in the search box in the upper right corner of the PowerShell Gallery to find a specific module. # To list all modules (WMF 5.0)of the DSC Resource Kit Find-Module -Tag DSCResourceKit # To list all DSC resources (WMF 5.0) from all sources Find-DscResource
  • 9. @ITProGuru Tip: Must Read Book Amazon… The Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win Paperback – October 16, 2014 The book is available on Audio Book; you can likely get it for free - if it’s your first time accepting a book from a friend. http://a.co/fJXE92A. If you do not have an Audible Account, you get two free books when signing up for your free account. This is the BEST IT Book I have ever read.
  • 10. @ITProGuru  Gene Kim’s “3 ways”     Infrastructure as Code (IaC)  Continuous Integration (CI)  Automated Testing  Application Performance Monitoring/Management (APM)   Release Management  Configuration Management  • Advanced Monitoring • Capacity Management • Feature Flags • • • Hypothesis Driven Development • Testing in Production • Fault Injection • • A/B Testing http://itrevolution.com/the-three-ways-principles-underpinning-devops/ http://www.itproguy.com/devops-practices/
  • 11. @ITProGuru Traditional vs modern dev-ops Category Traditional Modern DevOps Quality of code check-ins Unknown Validated through unit tests Environment Creation/Configuration Manual Automated Deployment Frequency 1-2 months (or less frequent) Deploy whenever needed, including several per day App Deployment Process Requires meetings and planning Push-button deployment Deployment validation Manual Automated Monitoring Minimal to none Health and Performance monitoring Dev and Ops relationship Blame culture Culture of trust
  • 12. DSC – Definition • Windows/Linux etc. Servers • Windows/iOS etc Clients • PC/Servers/Tablet/Phones etc. Form Factors “Standard Space management to manage heterogeneous networks containing different types of Servers connected with Clients of different form factors.”
  • 14. What is “Make it so”? • With DSC we just define in configuration – “Hey, you are a web browser, this is what you should look like. Get to it, stay that way.” • Logic of making configuration in that way lies with ‘Local Configuration Manager’ on Client Machines. • Making logic on client side enable us to control device specific behavior implementation
  • 15. How DSC help? One Stop Solution to Manage Enterprise Option of correcting configuration drift when it occurs, or just report on configuration drift, to ley it know to admins that it has occurred Cloud BYOD - non-Win Devices Laptop (VPNs) Desktop/ Server
  • 16. How DSC help? One Stop Solution to Manage Enterprise Allows you to describe the desired state of your environment by using this new power shell syntax Option of correcting configuration drift when it occurs, or just report on configuration drift, to ley it know to admins that it has occurred Cloud BYOD - non-Win Devices Laptop (VPNs) Desktop/ Server
  • 17. How DSC help? One Stop Solution to Manage Enterprise Allows you to describe the desired state of your environment by using this new power shell syntax Option of correcting configuration drift when it occurs, or just report on configuration drift, to ley it know to admins that it has occurred Cloud BYOD - non-Win Devices Laptop (VPNs) Desktop/ Server
  • 18. Where DSC can be used? Install or remove server roles and features Manage registry settings Manage files and directories Start, stop, and manage processes and services Manage local groups and user accounts Install and manage packages such as .msi and .exe Manage environment variables Discovering the actual configuration state on a given node Fix a configuration that has drifted away from the desired state Already Supported in GP
  • 19. How DSC works? 3 Phase Model Authorizing Phase Staging Phase “Make It So” Phase
  • 20. How DSC works? Authoring Phase In this phase Admin creates the DSC configuration locally, through PowerShell or by third party languages/tools. The output is one or more MOF (Management Object Format) files, the format which is consumable by DSC.
  • 21. DC / Pull Server How DSC works? Authoring Phase Staging Phase In this phase DSC data (MOF files) is staged for Deployment – • Push Model – On DC • Pull Model – Dedicated Web Server (IIS)
  • 22. DC / Pull Server How DSC works? Authoring Phase Staging Phase “Make it So” Phase DSC data is either pulled or pushed to the “Local Configuration Store” and contains the current, previous and the desired (DSC) state configuration. Enterprise The configuration then gets parsed and the relevant (WMI) provider implements the change and “makes it so”.
  • 23. @ITProGuru Power Shell Extension • Support type definitions for eg . Configuration types • New language/constructs specific to authoring of the Configuration scripts. Eg. configuration MyWebsite { node ("WebServer1", "WebServer2") { WindowsFeature IIS { Ensure = "Present" Name = "Web-Server“ } } }
  • 24. As Dan the developer, I can easily author a DSC script reusing DSC resources from a public or private gallery, so that I can quickly and easily write DSC scripts with very little custom code.
  • 25. Author a DSC script WITHOUT DSC Resource
  • 26. … reusing DSC resource/s - I I can Find DSC resources from Gallery by Search Term/Name/Tag I have a rich set of resources to use from Day 1 that replace my RM actions [see next slide]
  • 27. Rich set of DSC resources replacing RM actions No. RM Tool Tag RM Action RM Customer Usage Analog DSC Resource 1 Application Pool IIS Create/Config/Start/Remove App Pool 1. Very Frequent IISWebConfiguration 2 Web Application IIS Create/Configure/Remove Web Application 1. Very Frequent WebDeploy 3 Website IIS Create/Configure/Remove/Start/Stop/Restart Website 1. Very Frequent Website 4 Database Deployer SQL Create/Drop Database 1. Very Frequent SQLQuery 5 Database Deployer SQL Execute SQL Script 1. Very Frequent SQLQuery 6 Windows System Common Windows IO 1. Very Frequent File 7 XCopy Deployer System Copy File or Folder 1. Very Frequent File 8 MSI Deployer System Deploy MSI 1. Very Frequent Package 9 Virtual Directory IIS Create/Configure/Remove Virtual Directory 2. Frequent IISWebConfiguration 10 Web Application IIS Remove Web Application 2. Frequent WebDeploy 11 File System Create/Delete File or Folder 2. Frequent File 12 Command Line Runner System Run Command Line [as User] 2. Frequent Process 13 Windows Services Manager System Create/Start/Stop/Config/Restart Service 2. Frequent Service 14 MTM Automated Tests Manager Test Run Tests 2. Frequent ?
  • 28. Existing PS Modules/DSC resources ported to gallery I can port PS modules & DSC resources from Technet Script center to the gallery.
  • 29. reusing DSC resource/s - II WITH DSC Resource I can install multiple resources & modules that my DSC script depends on before deploying to a node in push mode.
  • 31. … from a public or private gallery - I I can install DSC resources from the Gallery
  • 32. I can choose the URI of the public/private gallery or the path [like a build drop path] that I want to install the module from. … from a public or private gallery - II
  • 33. … from a public or private gallery - III User can choose to not install module from the public/private gallery but to directly copy all the required bits directly from a build drop path.
  • 34. What does a Script look like? https://azure.microsoft.com/en-us/documentation/articles/automation-dsc-overview/ Configuration Block… Node block… Resource Block… (AKA: Compilation Job) “MyConfiguration.webserver” Within a Configuration block, you can do anything that you normally could in a PowerShell function
  • 35. DSC configuration Step-by-Step https://azure.microsoft.com/en-us/documentation/articles/automation-dsc-getting-started/ • Prerequisites (above) • Create Test Config • Importing a configuration into Azure Automation • Viewing Configuration • Compile Configuration (MOF file) • Viewing a compilation • Viewing Node Configuration • Onboard Azure ARM VM for Mgmt • Assign Node Configuration Save the file as TestConfig.ps1. Prerequisites •An Azure Automation account. see Azure Run As Account. •An Azure Resource Manager VM (not Classic) running Windows Server 2008 R2 or later. see Create your first Windows virtual machine in the Azure portal
  • 36. Azure Automation DSC LifeCycle
  • 37. @ITProGuru Session VS VM (or VDI) Session Based Computing VM or VDI Based Computing
  • 38. @ITProGuru Containers Container Based Density Advantages App App App App App App App App App App App App App App App App Linux VM App App App App App App App App App App App App App App App App App App App App App App Container Based Computing VM Isolation
  • 39. @ITProGuru Container Run-time On-Premises Virtual machine(s) Hyper-V Container(s) Windows Server Container(s) Docker Container Physical Server Linux
  • 40. @ITProGuru Container Run-time Cloud Virtual machine(s) Windows Server Container(s) Hyper-V Container(s) Cloud Provider Docker Container (Linux Now) Azure Container(s) ACS … Containers As A Service Docker Compatible Linux Windows Windows Windows Coming

Editor's Notes

  • #2: Title: PowerShell and DSC Empowers DevOps and the Cloud Abstract: Dan Stolts from Microsoft and ITGuru.com comes with a full session on Desired State Configuration! 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. 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. It also provides a means to maintain and manage existing configurations.Practical applications Following are some example scenarios where you can use built-in DSC resources to configure and manage a set of computers (also known as target nodes) in an automated way: Enabling or disabling server roles and features Managing registry settings Managing files and directories Starting, stopping, and managing processes and services Managing groups and user accounts Deploying new software Managing environment variables Running Windows PowerShell scripts Fixing a configuration that has drifted away from the desired state Discovering the actual configuration state on a given node   Name of Presenter: Dan Stolts Bio of Presenter (max 500 spaces): Dan Stolts “ITProGuru” is a technology expert who is a master of systems management and security. He is Chief Technology Strategist for Microsoft, owns several businesses and is a published author. Reach him on his primary blog http://itproguru.com or twitter @ITProGuru. He is proficient in many datacenter technologies (Windows Server, System Center, Virtualization, Cloud, Etc) and holds many certifications including MCT, MCITP, MCSE, TS, etc. Dan is currently specializing in system management, virtualization and cloud technologies. Dan is and has been a very active member of the user group community. Dan is an enthusiastic advocate of technology and is passionate about helping others. See more at: http://itproguru.com/about
  • #3: Over the past 5 years, the State of DevOps report has surveyed more than 25,000 technical professionals world wide with companies of ALL sizes and verticals. Employees in high-performing teams were 2.2x more likely to recommend their organization as a great place to work. (2016 – employee Net Promoter Score)
  • #4: In the real world, there are real consequences if you are unable to deliver high-quality software quickly or build the wrong thing to begin with: 40% of implementations end up getting reworked because they don’t meet the users’ original requirements The average cost of one hour downtime of a customer-facing app is calculated at 100.000 dollars per hour – and this does not take into account the damage to reputation, which can be even greater. Fixing such production issues takes on average 200 minutes per incident Three quarters of development teams have adopted Agile methodologies today, enabling them to develop faster. While this is a great number, it does not help if a development team is Agile but deployment still takes weeks or months because IT Ops is perceived as not being Agile These are just 3 very high-level examples but all the data we have today points toward the same conclusion – this is about more than just frustration or minor delays. Lack of collaboration between dev and ops can have substantial impact on a company’s bottom line and success
  • #6: Declaring a DSC configuration is PowerShell based - You define configuration programmatically(script) which comes to admins naturally and help them define configuration in the way they want. Reusability of Configuration Data - You can separate the configuration data from the logic of your configuration so that you can reuse your configuration data for different resources, nodes, and configurations, see http://technet.microsoft.com/en-us/library/dn249925.aspx Can be used anywhere -DSC can be used on-premise, in a public or in a private Cloud environment. You just need either Windows Server 2012 R2 or Windows 8.1 and local administrator permissions to execute the DSC PowerShell scripts Support for integration with other tools -You can integrate DSC with any Microsoft or non-Microsoft solutions as long as you can execute a PowerShell script on the target system. E.g. using DSC within the Windows Azure Pack portal in conjunction with SMA.
  • #21: Advanced task dependencies – talk about “Dependency Type” options enabled only for multi-machine job when Dependencies is clicked in the Task tab. Studio Help -> Contents -> “Working With Jobs” -> “Key Concepts for WTT Jobs” -> Parameters
  • #22: Advanced task dependencies – talk about “Dependency Type” options enabled only for multi-machine job when Dependencies is clicked in the Task tab. Studio Help -> Contents -> “Working With Jobs” -> “Key Concepts for WTT Jobs” -> Parameters
  • #23: Advanced task dependencies – talk about “Dependency Type” options enabled only for multi-machine job when Dependencies is clicked in the Task tab. Studio Help -> Contents -> “Working With Jobs” -> “Key Concepts for WTT Jobs” -> Parameters
  • #24: Advanced task dependencies – talk about “Dependency Type” options enabled only for multi-machine job when Dependencies is clicked in the Task tab. Studio Help -> Contents -> “Working With Jobs” -> “Key Concepts for WTT Jobs” -> Parameters