Get‑SqlDscRSWebPortalApplicationName - dsccommunity/SqlServerDsc GitHub Wiki

SYNOPSIS

Gets the Reporting Services web portal application name based on version.

SYNTAX

Get-SqlDscRSWebPortalApplicationName [-SetupConfiguration] <Object> 
 [<CommonParameters>]

DESCRIPTION

Gets the Reporting Services web portal application name based on the SQL Server major version. SQL Server 2016 (version 13) and later use 'ReportServerWebApp', while earlier versions use 'ReportManager'.

The setup configuration object can be obtained using the Get-SqlDscRSSetupConfiguration command and passed via the pipeline.

See more information at: https://docs.microsoft.com/en-us/sql/reporting-services/breaking-changes-in-sql-server-reporting-services-in-sql-server-2016

EXAMPLES

EXAMPLE 1

Get-SqlDscRSSetupConfiguration -InstanceName 'SSRS' | Get-SqlDscRSWebPortalApplicationName

Returns 'ReportServerWebApp' or 'ReportManager' based on the SQL Server version, using pipeline input from the setup configuration object.

PARAMETERS

-SetupConfiguration

Specifies the setup configuration object for the Reporting Services instance. This can be obtained using the Get-SqlDscRSSetupConfiguration command. This parameter accepts pipeline input.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Management.Automation.PSCustomObject

Accepts setup configuration object via pipeline.

OUTPUTS

System.String

Returns either 'ReportServerWebApp' for SQL Server 2016 and later,

or 'ReportManager' for earlier versions.

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️