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

Set-SqlDscReportServerVirtualDirectory: New command proposal #2015

Open
johlju opened this issue May 4, 2024 · 0 comments
Open

Set-SqlDscReportServerVirtualDirectory: New command proposal #2015

johlju opened this issue May 4, 2024 · 0 comments
Labels
command proposal The issue is proposing to add a new command to the module. help wanted The issue is up for grabs for anyone in the community.

Comments

@johlju
Copy link
Member

johlju commented May 4, 2024

Command proposal

Command for configuring Reportings Services virtual directory.

Could use the code here:

Write-Verbose -Message "Setting report server virtual directory on $DatabaseServerName\$DatabaseInstanceName to '$ReportServerVirtualDirectory'."
$invokeRsCimMethodParameters = @{
CimInstance = $reportingServicesData.Configuration
MethodName = 'SetVirtualDirectory'
Arguments = @{
Application = 'ReportServerWebService'
VirtualDirectory = $ReportServerVirtualDirectory
Lcid = $language
}
}
Invoke-RsCimMethod @invokeRsCimMethodParameters

Write-Verbose -Message "Setting reports virtual directory on $DatabaseServerName\$DatabaseInstanceName to '$ReportServerVirtualDirectory'."
$invokeRsCimMethodParameters = @{
CimInstance = $reportingServicesData.Configuration
MethodName = 'SetVirtualDirectory'
Arguments = @{
Application = $reportingServicesData.ReportsApplicationName
VirtualDirectory = $ReportsVirtualDirectory
Lcid = $language
}
}
Invoke-RsCimMethod @invokeRsCimMethodParameters

Proposed parameters

Parameter Mandatory Data type Description Default value Allowed values
ParameterName Yes String Detailed description None None

Special considerations or limitations

None.

@johlju johlju added help wanted The issue is up for grabs for anyone in the community. command proposal The issue is proposing to add a new command to the module. labels May 4, 2024
@johlju johlju changed the title Set-SqlDscRSVirtualDirectory: New command proposal Set-SqlDscReportServerVirtualDirectory: New command proposal May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command proposal The issue is proposing to add a new command to the module. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

1 participant