forked from Azure/azure-quickstart-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDesiredStateConfig.ps1
68 lines (65 loc) · 1.41 KB
/
DesiredStateConfig.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#DSC script to configure the IIS on virtual machine
Configuration Main
{
Param ( [string] $MachineName)
Import-DscResource -ModuleName PSDesiredStateConfiguration
Node $MachineName
{
# This commented section represents an example configuration that can be updated as required.
WindowsFeature WebServerRole
{
Name = "Web-Server"
Ensure = "Present"
}
WindowsFeature WebManagementConsole
{
Name = "Web-Mgmt-Console"
Ensure = "Present"
}
WindowsFeature WebManagementService
{
Name = "Web-Mgmt-Service"
Ensure = "Present"
}
WindowsFeature HTTPRedirection
{
Name = "Web-Http-Redirect"
Ensure = "Present"
}
WindowsFeature CustomLogging
{
Name = "Web-Custom-Logging"
Ensure = "Present"
}
WindowsFeature LogginTools
{
Name = "Web-Log-Libraries"
Ensure = "Present"
}
WindowsFeature RequestMonitor
{
Name = "Web-Request-Monitor"
Ensure = "Present"
}
WindowsFeature Tracing
{
Name = "Web-Http-Tracing"
Ensure = "Present"
}
WindowsFeature BasicAuthentication
{
Name = "Web-Basic-Auth"
Ensure = "Present"
}
WindowsFeature WindowsAuthentication
{
Name = "Web-Windows-Auth"
Ensure = "Present"
}
WindowsFeature ApplicationInitialization
{
Name = "Web-AppInit"
Ensure = "Present"
}
}
}