Auto-rebind co-located SSRS from Install-SqlServerCertificate.ps1 #4
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/install-auto-ssrs-rebind"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Makes
Install-SqlServerCertificate.ps1rebind co-located SQL Server ReportingServices (SSRS) as part of a certificate renewal, so a single run handles the
whole machine instead of remembering to run the two scripts separately.
After the SQL Server certificate work completes, the script detects SSRS (the
SQLServerReportingServicesservice or the SSRSSetupregistry key) and, ifpresent, rebinds it to the just-imported certificate by invoking the companion
Update-SsrsCertificate.ps1from$PSScriptRootwith the imported thumbprint.Behavior:
-UpdateSsrsrebinds without prompting(unattended);
-SkipSsrssuppresses it. The two switches are mutually exclusive.-RestartSqlServeralso restarts the SSRS service (passes-RestartReportServerto the child script).
-WhatIfthe installer returns at itsShouldProcessgate beforeimporting, so the SSRS rebind is listed as a planned action but the child script
is not invoked (the certificate is not yet in the store).
certificate install.
-UpdateSsrsskip the rebind with guidance.Documentation (
README.md,AGENT-README.md) updated to match.Fixes #
How was this tested?
[Parser]::ParseFile()returns no errors)construct correctly.
password interactively, so a full unattended run was not exercised in the
authoring environment). Both UAT servers are already renewed, so a real run
there should rebind SQL and reach the SSRS step as a no-op.
Checklist
Set-StrictMode -Version Latest-WhatIfviaSupportsShouldProcess