-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xSQLServerRSConfig: Adding examples (#852)
- Changes to xSQLServerRSConfig - Added examples.
- Loading branch information
Showing
4 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Examples/Resources/xSQLServerRSConfig/1-DefaultConfiguration.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
31
Examples/Resources/xSQLServerRSConfig/2-CustomConfiguration.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
ReportServerVirtualDirectory = 'MyReportServer' | ||
ReportsVirtualDirectory = 'MyReports' | ||
ReportServerReservedUrl = @('http://+:80', 'https://+:443') | ||
ReportsReservedUrl = @('http://+:80', 'https://+:443') | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters