Skip to content

Commit c9cc8a6

Browse files
authored
Merge pull request #113372 from cfeenstra1024/cfeenstra1024-patch-1
Fix powershell if statement
2 parents a4c9f54 + 4e763f1 commit c9cc8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/defender-for-cloud/powershell-sample-vulnerability-assessment-baselines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ $ECState = (GetExpressConfigurationStatus -SubscriptionId $SubscriptionId -Resou
111111
112112
Write-Host "Express Configuration status: " $ECState
113113
114-
if ($ECState = "Enabled")
114+
if ($ECState -eq "Enabled")
115115
{
116116
# Get list of databases
117117
$databases = Get-AzSqlDatabase -ResourceGroupName $ResourceGroupName -ServerName $ServerName | where {$_.DatabaseName -ne "master"}

0 commit comments

Comments
 (0)