|
51 | 51 | [string]$JFrogDebianRepo, |
52 | 52 |
|
53 | 53 | [Parameter(Mandatory=$true)] |
54 | | - [string]$JFrogDebianDistribution, |
| 54 | + [string]$JFrogDebianDistribution = "bookworm", |
55 | 55 |
|
56 | 56 | [Parameter(Mandatory=$true)] |
57 | 57 | [string]$JFrogDebianComponent, |
|
94 | 94 | [Parameter(Mandatory=$false)] |
95 | 95 | [string]$JFrogPassword = "", |
96 | 96 |
|
| 97 | + [Parameter(Mandatory=$false)] |
| 98 | + [string]$StateStoreConnectionString = "", |
| 99 | + |
97 | 100 | [Parameter(Mandatory=$false)] |
98 | 101 | [switch]$SkipDockerBuild |
99 | 102 | ) |
@@ -275,11 +278,16 @@ if ($LASTEXITCODE -ne 0) { |
275 | 278 |
|
276 | 279 | Write-Host "Infrastructure deployment completed successfully" -ForegroundColor Green |
277 | 280 |
|
278 | | -Write-Host "`nStep 3: Prompting for StateStore connection string..." -ForegroundColor Yellow |
279 | | -$secureConnString = Read-Host -Prompt "The StateStore keeps track of migration job details in a DocumentDB. You may use the same database as the Target DocumentDB or a separate one. Enter the connection string for the StateStore." -AsSecureString |
280 | | -$connString = [Runtime.InteropServices.Marshal]::PtrToStringAuto( |
281 | | - [Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureConnString) |
282 | | -) |
| 281 | +Write-Host "`nStep 3: StateStore connection string..." -ForegroundColor Yellow |
| 282 | +if ([string]::IsNullOrEmpty($StateStoreConnectionString)) { |
| 283 | + $secureConnString = Read-Host -Prompt "The StateStore keeps track of migration job details in a DocumentDB. You may use the same database as the Target DocumentDB or a separate one. Enter the connection string for the StateStore." -AsSecureString |
| 284 | + $connString = [Runtime.InteropServices.Marshal]::PtrToStringAuto( |
| 285 | + [Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureConnString) |
| 286 | + ) |
| 287 | +} else { |
| 288 | + $connString = $StateStoreConnectionString |
| 289 | + Write-Host "Using StateStore connection string from parameter" -ForegroundColor Gray |
| 290 | +} |
283 | 291 |
|
284 | 292 | Write-Host "`nStep 4: Deploying Container App with application image..." -ForegroundColor Yellow |
285 | 293 |
|
|
0 commit comments