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
140
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
82
Learn Authentication The Hard Way
andrewabest
0
330
Finding The Sweet Spot BNE
andrewabest
1
230
Finding The Sweet Spot
andrewabest
0
450
Automating AWS
andrewabest
2
370
Conventional Wisdom
andrewabest
1
450
AWS a-b-c's
andrewabest
3
160
What is Git?
andrewabest
0
220
Client Side Testing
andrewabest
0
70
Other Decks in Technology
See All in Technology
持続可能なアクセシビリティ開発
azukiazusa1
6
330
OSだってコンテナしたい❗Image Modeが切り拓くLinux OS運用の新時代
tsukaman
0
130
adk-samples に学ぶデータ分析 LLM エージェント開発
na0
3
640
単一Kubernetesクラスタで実現する AI/ML 向けクラウドサービス
pfn
PRO
1
370
AI × クラウドで シイタケの収穫時期を判定してみた
lamaglama39
1
400
How We Built a Secure Sandbox Platform for AI
flatt_security
1
110
信頼性が求められる業務のAIAgentのアーキテクチャ設計の勘所と課題
miyatakoji
0
160
PostgreSQL で列データ”ファイル”を利用する ~Arrow/Parquet を統合したデータベースの作成~
kaigai
0
170
DDD x Microservice Architecture : Findy Architecture Conf 2025
syobochim
13
4.9k
LINEギフト・LINEコマース領域の開発
lycorptech_jp
PRO
0
390
Greenは本当にGreenか? - B/GデプロイとAPI自動テストで安心デプロイ
kaz29
1
130
2025 DORA Reportから読み解く!AIが映し出す、成果を出し続ける組織の共通点 #開発生産性_findy
takabow
0
130
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
65
8k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Faster Mobile Websites
deanohume
310
31k
Site-Speed That Sticks
csswizardry
13
970
Fireside Chat
paigeccino
41
3.7k
Building an army of robots
kneath
306
46k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
Automating Front-end Workflow
addyosmani
1371
200k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Docker and Python
trallard
46
3.7k
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