Skip to content

Commit 9c02627

Browse files
authored
Merge pull request KelvinTegelaar#1659 from Zacgoose/dev-kv-fix
Fix for on-boarding in dev
2 parents 9c749ed + 42eb951 commit 9c02627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCombinedSetup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function Invoke-ExecCombinedSetup {
1414
$Results = [System.Collections.ArrayList]::new()
1515
try {
1616
# Set up Azure context if needed for Key Vault access
17-
if ($env:AzureWebJobsStorage -ne 'UseDevelopmentStorage=true' -and $env:MSI_SECRET -or $env:NonLocalHostAzurite -ne 'true') {
17+
if (($env:AzureWebJobsStorage -ne 'UseDevelopmentStorage=true' -or $env:NonLocalHostAzurite -ne 'true') -and $env:MSI_SECRET) {
1818
Disable-AzContextAutosave -Scope Process | Out-Null
1919
$null = Connect-AzAccount -Identity
2020
$SubscriptionId = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1

0 commit comments

Comments
 (0)