Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
DSC a-b-c's
Search
Andrew Best
October 14, 2015
Technology
0
130
DSC a-b-c's
A short introduction to Powershell DSC terminology
Andrew Best
October 14, 2015
Tweet
Share
More Decks by Andrew Best
See All by Andrew Best
The Surprising Truths Behind Good Mentoring
andrewabest
0
41
Learn Authentication The Hard Way
andrewabest
0
300
Finding The Sweet Spot BNE
andrewabest
1
220
Finding The Sweet Spot
andrewabest
0
420
Automating AWS
andrewabest
2
340
Conventional Wisdom
andrewabest
1
410
AWS a-b-c's
andrewabest
3
150
What is Git?
andrewabest
0
210
Client Side Testing
andrewabest
0
59
Other Decks in Technology
See All in Technology
Amazon Q Developer 他⽣成AIと⽐較してみた
takano0131
1
120
「ラベルにとらわれない」エンジニアでいること/Be an engineer beyond labels
kaonavi
0
150
RAGの基礎から実践運用まで:AWS BedrockとLangfuseで実現する構築・監視・評価
sonoda_mj
0
440
Redefine_Possible
upsider_tech
0
270
モンテカルロ木探索のパフォーマンスを予測する Kaggleコンペ解説 〜生成AIによる未知のゲーム生成〜
rist
4
1.1k
SSH公開鍵認証による接続 / Connecting with SSH Public Key Authentication
kaityo256
PRO
2
220
技術好きなエンジニアが _リーダーへの進化_ によって得たものと失ったもの / The Gains and Losses of a Tech-Enthusiast Engineer’s “Evolution into Leadership”
kaminashi
0
210
20250326_管理ツールの権限管理で改善したこと
sasata299
1
380
問題解決に役立つ数理工学
recruitengineers
PRO
7
2.2k
移行できそうでやりきれなかった 10年超えのシステムを葬るための戦略 / phper-kaigi-2025-ryu
carta_engineering
0
690
20250328_RubyKaigiで出会い鯛_____RubyKaigiから始まったはじめてのOSSコントリビュート.pdf
mterada1228
0
120
チームの性質によって変わる ADR との向き合い方と、生成 AI 時代のこれから / How to deal with ADR depends on the characteristics of the team
mh4gf
4
340
Featured
See All Featured
Speed Design
sergeychernyshev
28
860
Agile that works and the tools we love
rasmusluckow
328
21k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
102
18k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
177
52k
Designing for humans not robots
tammielis
250
25k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
28
2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.5k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Transcript
Powershell DSC A-B-C’s
Page Windows Management Framework 4 › Brought us Powershell v4
and Powershell DSC 1.0 › Brings together tooling we can use to configure windows servers and their environment into a central location, rather than having it scattered throughout various cmdlets and tools / Copyright ©2014 by Readify Pty Ltd 2
Page Powershell DSC › It is an extension to the
powershell language › Use the powershell language to create and deploy configurations to servers › Primarily server focused, but can be run on client OS’s › Ensures servers are verifiably configured as you say they are –0 configuration drift, self healing › The future of server management –you shouldn’t manage the server directly, just its configuration / Copyright ©2014 by Readify Pty Ltd 3
Page Local Configuration Manager › The ‘server side’ of DSC
› Consumes the configuration it is provided and does the heavy lifting › Takes the hard work out of configuring systems – you don’t need to know all of the commands required to do the work › Set it and forget it / Copyright ©2014 by Readify Pty Ltd 4
Page Configuration › A new powershell command type we use
to build the configuration templates that the LCM will apply to our servers › A configuration is just powershell code that defines the resources that make up our configuration, and what nodes they apply to › Once a configuration is processed, produces a MOF file – an industry standard format, not proprietary. / Copyright ©2014 by Readify Pty Ltd 5
Page Nodes › Define the targets the configuration applies to
› Won’t go into depth here since our configurations are only applied to single servers / Copyright ©2014 by Readify Pty Ltd 6
Page Resources › Are a type of powershell module, used
during DSC configuration to do the actual configuration work › The have three methods: Get-TargetResource, Set- TargetResource and Test-TargetResources › When a configuration is applied to a server, each resource defined runs its Test-TargetResource, and if this returns negative, Set-TargetResource is then run, which ‘makes it so’. / Copyright ©2014 by Readify Pty Ltd 7
Page Requirements › WMF 4.0 › .NET 4.5 › Server
2008 R2 SP1 or higher › Windows 7 SP1 or higher › Powershell Remoting must be enabled on servers you want to configure – on by default on Server 2012 / Copyright ©2014 by Readify Pty Ltd 8
Page Honourable Mentions › Pull vs Push configuration › Configuration
variables / Copyright ©2014 by Readify Pty Ltd 9
None