-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArtofShell.ps1
31 lines (25 loc) · 1011 Bytes
/
ArtofShell.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<#########################################################
Author: Trevor Sullivan <[email protected]>
Description: This PowerShell script demonstrates how to create a PowerShell
Desired State Configuration (DSC) document.
COPYRIGHT NOTICE
This file is part of the "Microsoft Azure Automation" course, and is
copyrighted by Art of Shell LLC. This file may not be copied or distributed, without
written permission from an authorized member of Art of Shell LLC.
#########################################################>
configuration ArtofShell {
Import-DscResource -ModuleName PSDesiredStateConfiguration;
node @('web01', 'web02', 'web03') {
WindowsFeature IIS {
Name = 'Web-Server';
Ensure = 'Present';
}
}
node @('db01', 'db02') {
### Install .NET Framework dependency for SQL Server
WindowsFeature NET-Framework-Core {
Ensure = 'Present';
Name = 'NET-Framework-Core';
}
}
}