Skip to content

Commit ed491b2

Browse files
authored
Fix for on-boarding in dev
1 parent 859b910 commit ed491b2

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)