Skip to content

Commit

Permalink
[#844] xSQLServerRSConfig examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bozho committed Sep 28, 2017
1 parent 0e1a7ca commit a2a55a6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Examples/Resources/xSQLServerRSConfig/1-DefaultConfiguration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<#
.EXAMPLE
This example performs a default SSRS configuration. It will initialize SSRS
and register default Report Server Web Service and Report Manager URLs:
http://localhost:80/ReportServer (Report Server Web Service)
http://localhost:80/Reports (Report Manager)
#>
Configuration Example
{
Import-DscResource -ModuleName xSqlServer

node localhost {
xSQLServerRSConfig DefaultConfiguration
{
InstanceName = 'MSSQLSERVER'
RSSQLServer = 'localhost'
RSSQLInstanceName = 'MSSQLSERVER'
}
}
}
31 changes: 31 additions & 0 deletions Examples/Resources/xSQLServerRSConfig/2-CustomConfiguration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<#
.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'
ReportServerVirtualDir = 'MyReportServer'
ReportsVirtualDir = 'MyReports'
ReportServerReservedUrl = @('http://+:80', 'https://+:443')
ReportsReservedUrl = @('http://+:80', 'https://+:443')
}
}
}

0 comments on commit a2a55a6

Please sign in to comment.