Skip to content

Commit 09cbac3

Browse files
authored
Add ConnectionString parameter to backup cleanup function
Add optional ConnectionString parameter to Start-BackupRetentionCleanup function. Signed-off-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
1 parent 9cf6be4 commit 09cbac3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-BackupRetentionCleanup.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ function Start-BackupRetentionCleanup {
66
This function cleans up old CIPP and Tenant backups based on the retention policy
77
#>
88
[CmdletBinding(SupportsShouldProcess = $true)]
9-
param()
9+
param(
10+
[Parameter(Mandatory = $false)]
11+
[string]$ConnectionString = $env:AzureWebJobsStorage
12+
)
1013

1114
try {
1215
# Get retention settings

0 commit comments

Comments
 (0)