Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xSQLServerRSConfig: Adding examples #852

Merged
merged 2 commits into from
Oct 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
- Added localization (en-US) for all strings in resource and unit tests
([issue #618](https://github.com/PowerShell/xSQLServer/issues/618)).
- Updated examples to reflect new parameters.
- Changes to xSQLServerRSConfig
- Added examples

## 8.2.0.0

Expand Down
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'
ReportServerVirtualDirectory = 'MyReportServer'
ReportsVirtualDirectory = 'MyReports'
ReportServerReservedUrl = @('http://+:80', 'https://+:443')
ReportsReservedUrl = @('http://+:80', 'https://+:443')
}
}
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,8 @@ Initializes and configures SQL Reporting Services server.

#### Examples

None.
* [Default configuration](Examples/Resources/xSQLServerRSConfig/1-DefaultConfiguration.ps1)
* [Custom virtual directories and reserved URLs](Examples/Resources/xSQLServerRSConfig/2-CustomConfiguration.ps1)

### xSQLServerRSSecureConnectionLevel

Expand Down