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
44
Learn Authentication The Hard Way
andrewabest
0
310
Finding The Sweet Spot BNE
andrewabest
1
220
Finding The Sweet Spot
andrewabest
0
420
Automating AWS
andrewabest
2
350
Conventional Wisdom
andrewabest
1
420
AWS a-b-c's
andrewabest
3
150
What is Git?
andrewabest
0
210
Client Side Testing
andrewabest
0
60
Other Decks in Technology
See All in Technology
Amazon CloudWatchで始める エンドユーザー体験のモニタリング
o11yfes2023
0
180
Creating Awesome Change in SmartNews
martin_lover
1
270
LLM とプロンプトエンジニアリング/チューターをビルドする / LLM, Prompt Engineering and Building Tutors
ks91
PRO
1
250
Cross Data Platforms Meetup LT 20250422
tarotaro0129
1
320
はてなの開発20年史と DevOpsの歩み / DevOpsDays Tokyo 2025 Keynote
daiksy
6
1.5k
AWSの新機能検証をやる時こそ、Amazon Qでプロンプトエンジニアリングを駆使しよう
duelist2020jp
1
150
20250413_湘南kaggler会_音声認識で使うのってメルス・・・なんだっけ?
sugupoko
1
470
Spice up your notifications/try!Swift25
noppefoxwolf
2
350
The Tale of Leo: Brave Lion and Curious Little Bug
canalun
1
120
SnowflakeとDatabricks両方でRAGを構築してみた
kameitomohiro
1
220
Webアプリを Lambdaで動かすまでに考えること / How to implement monolithic Lambda Web Application
_kensh
7
1.3k
SREからゼロイチプロダクト開発へ ー越境する打席の立ち方と期待への応え方ー / Product Engineering Night #8
itkq
2
390
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
29
5.6k
Stop Working from a Prison Cell
hatefulcrawdad
268
20k
How to train your dragon (web standard)
notwaldorf
90
6k
BBQ
matthewcrist
88
9.6k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
13
1.4k
Facilitating Awesome Meetings
lara
54
6.3k
How to Ace a Technical Interview
jacobian
276
23k
Typedesign – Prime Four
hannesfritz
41
2.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
135
33k
Practical Orchestrator
shlominoach
186
10k
Become a Pro
speakerdeck
PRO
27
5.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
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