Skip to content

Commit 7bd3c67

Browse files
authored
Add functions to manage URL reservations for Reporting Services (#2388)
1 parent 35a84eb commit 7bd3c67

27 files changed

+4268
-659
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Added
99

10+
- Added public command `Set-SqlDscRSVirtualDirectory` to set the virtual directory
11+
for Reporting Services applications. Wraps the `SetVirtualDirectory` CIM method
12+
and supports ReportServerWebService, ReportServerWebApp, and ReportManager
13+
applications ([issue #2015](https://github.com/dsccommunity/SqlServerDsc/issues/2015)).
14+
- Added public commands `Get-SqlDscRSUrlReservation`, `Add-SqlDscRSUrlReservation`,
15+
`Remove-SqlDscRSUrlReservation`, and `Set-SqlDscRSUrlReservation` to manage
16+
URL reservations for SQL Server Reporting Services or Power BI Report Server.
17+
These commands wrap the `ListReservedUrls`, `ReserveUrl`, and `RemoveURL` CIM
18+
methods respectively. The `Set-SqlDscRSUrlReservation` command provides a
19+
declarative approach to set URL reservations to an exact list, removing any
20+
existing reservations not in the specified list
21+
([issue #2016](https://github.com/dsccommunity/SqlServerDsc/issues/2016))
22+
([issue #2024](https://github.com/dsccommunity/SqlServerDsc/issues/2024)).
1023
- Added public command `Get-SqlDscRSConfiguration` to retrieve the
1124
`MSReportServer_ConfigurationSetting` CIM instance for SQL Server Reporting
1225
Services or Power BI Report Server. Supports auto-detection of the Reporting
1326
Services version or explicit version specification. The returned CIM instance
1427
can be piped to `Enable-SqlDscRsSecureConnection` or `Disable-SqlDscRsSecureConnection`
1528
([issue #2022](https://github.com/dsccommunity/SqlServerDsc/issues/2022)).
29+
- Added public command `Get-SqlDscRSWebPortalApplicationName` to get the
30+
Reporting Services web portal application name based on the SQL Server
31+
version. Returns 'ReportServerWebApp' for SQL Server 2016 (version 13) and
32+
later, or 'ReportManager' for earlier versions. Accepts the setup configuration
33+
object from `Get-SqlDscRSSetupConfiguration` via pipeline.
1634
- Added public command `Enable-SqlDscRsSecureConnection` to enable secure
1735
connection for SQL Server Reporting Services or Power BI Report Server by
1836
setting the secure connection level to 1. Accepts the configuration CIM
@@ -131,6 +149,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
131149
- Refactored to use the public commands `Enable-SqlDscRsSecureConnection` and
132150
`Disable-SqlDscRsSecureConnection` for setting the secure connection level
133151
instead of calling the CIM method directly.
152+
- Refactored to use the public commands `Get-SqlDscRSUrlReservation`,
153+
`Add-SqlDscRSUrlReservation`, `Remove-SqlDscRSUrlReservation`, and
154+
`Set-SqlDscRSUrlReservation` for managing URL reservations instead of calling
155+
the CIM methods directly.
156+
- Refactored to use the public command `Set-SqlDscRSVirtualDirectory` for
157+
setting virtual directories instead of calling the CIM method directly
158+
([issue #2015](https://github.com/dsccommunity/SqlServerDsc/issues/2015)).
134159
- `Assert-SetupActionProperties`
135160
- Refactored to use the command `Get-FileVersion` from the DscResource.Common
136161
module instead of the private function `Get-FileVersionInformation`

azure-pipelines.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ stages:
539539
'tests/Integration/Commands/Get-SqlDscRSConfiguration.Integration.Tests.ps1'
540540
'tests/Integration/Commands/Enable-SqlDscRsSecureConnection.Integration.Tests.ps1'
541541
'tests/Integration/Commands/Disable-SqlDscRsSecureConnection.Integration.Tests.ps1'
542+
'tests/Integration/Commands/Set-SqlDscRSVirtualDirectory.Integration.Tests.ps1'
543+
'tests/Integration/Commands/Get-SqlDscRSUrlReservation.Integration.Tests.ps1'
544+
'tests/Integration/Commands/Add-SqlDscRSUrlReservation.Integration.Tests.ps1'
545+
'tests/Integration/Commands/Remove-SqlDscRSUrlReservation.Integration.Tests.ps1'
546+
'tests/Integration/Commands/Set-SqlDscRSUrlReservation.Integration.Tests.ps1'
542547
# Group 8
543548
'tests/Integration/Commands/Repair-SqlDscReportingService.Integration.Tests.ps1'
544549
# Group 9
@@ -609,6 +614,11 @@ stages:
609614
'tests/Integration/Commands/Get-SqlDscRSConfiguration.Integration.Tests.ps1'
610615
'tests/Integration/Commands/Enable-SqlDscRsSecureConnection.Integration.Tests.ps1'
611616
'tests/Integration/Commands/Disable-SqlDscRsSecureConnection.Integration.Tests.ps1'
617+
'tests/Integration/Commands/Set-SqlDscRSVirtualDirectory.Integration.Tests.ps1'
618+
'tests/Integration/Commands/Get-SqlDscRSUrlReservation.Integration.Tests.ps1'
619+
'tests/Integration/Commands/Add-SqlDscRSUrlReservation.Integration.Tests.ps1'
620+
'tests/Integration/Commands/Remove-SqlDscRSUrlReservation.Integration.Tests.ps1'
621+
'tests/Integration/Commands/Set-SqlDscRSUrlReservation.Integration.Tests.ps1'
612622
# Group 8
613623
'tests/Integration/Commands/Repair-SqlDscPowerBIReportServer.Integration.Tests.ps1'
614624
# Group 9

0 commit comments

Comments
 (0)