Examples/Resources/xSQLServerRSConfig/2-CustomConfiguration.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
<#
.EXAMPLE
    This example performs a custom SSRS configuration. It will initialize SSRS
    and register custom Report Server Web Service and Report Manager URLs:
 
    http://localhost:80/MyReportServer
    https://localhost:443/MyReportServer (Report Server Web Service)
 
    http://localhost:80/MyReports
    https://localhost:443/MyReports (Report Manager)
 
    Please note: this resource does not currently handle SSL bindings for HTTPS
    endpoints.
#>

Configuration Example
{
    Import-DscResource -ModuleName xSqlServer

    node localhost {
        xSQLServerRSConfig DefaultConfiguration
        {
            InstanceName = 'MSSQLSERVER'
            RSSQLServer = 'localhost'
            RSSQLInstanceName = 'MSSQLSERVER'
            ReportServerVirtualDirectory = 'MyReportServer'
            ReportsVirtualDirectory = 'MyReports'
            ReportServerReservedUrl = @('http://+:80', 'https://+:443')
            ReportsReservedUrl = @('http://+:80', 'https://+:443')
        }
    }
}