forked from dsccommunity/SqlServerDsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3-CustomConfigurationUsingSsl.ps1
29 lines (26 loc) · 1.05 KB
/
3-CustomConfigurationUsingSsl.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
<#
.EXAMPLE
This example performs a custom SQL Server Reporting Services configuration.
It will initialize SQL Server Reporting Services and register the below
custom Report Server Web Service and Report Manager URLs and enable SSL.
Report Server Web Service: https://localhost:443/MyReportServer ()
Report Manager: https://localhost:443/MyReports
Note: this resource does not currently handle SSL bindings for HTTPS endpoints.
#>
Configuration Example
{
Import-DscResource -ModuleName SqlServerDsc
node localhost {
SqlRS DefaultConfiguration
{
InstanceName = 'MSSQLSERVER'
DatabaseServerName = 'localhost'
DatabaseInstanceName = 'MSSQLSERVER'
ReportServerVirtualDirectory = 'MyReportServer'
ReportsVirtualDirectory = 'MyReports'
ReportServerReservedUrl = @('https://+:443')
ReportsReservedUrl = @('https://+:443')
UseSsl = $true
}
}
}