diff --git a/sdk/identity/test-resources-post.ps1 b/sdk/identity/test-resources-post.ps1 index 29cd66fa504d..ca1383fe2ee4 100644 --- a/sdk/identity/test-resources-post.ps1 +++ b/sdk/identity/test-resources-post.ps1 @@ -31,9 +31,9 @@ param( $RemainingArguments ) -if (!$AdditionalParameters['deployMIResources']) { +if ([string]::IsNullOrEmpty($DeploymentOutputs['IDENTITY_WEBAPP_NAME'])) { Write-Host "Skipping post-provisioning script because resources weren't deployed" - return + exit } $MIClientId = $DeploymentOutputs['IDENTITY_USER_DEFINED_CLIENT_ID']