Skip to content

Commit

Permalink
Fixing Baseline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kassis committed Nov 9, 2017
1 parent dac23c2 commit 90aa85c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Azure-Security-Center.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function Get-ASCPolicy {
}
}

If ($PolicyName -and !$Baseline) {
Else {
$asc_uri = "https://$asc_url/subscriptions/$asc_subscriptionId/providers/microsoft.Security/$asc_endpoint/$PolicyName$asc_APIVersion"
Try {
Write-Verbose "Retrieving data for $PolicyName..."
Expand All @@ -536,19 +536,6 @@ function Get-ASCPolicy {
$asc_request
}
}
If ($PolicyName -and $Baseline) {
$asc_uri = "https://$asc_url/subscriptions/$asc_subscriptionId/providers/microsoft.Security/$asc_endpoint/$PolicyName/baselineConfigurations$asc_APIVersion"
Try {
Write-Verbose "Retrieving data for $PolicyName..."
$asc_request = Invoke-RestMethod -Uri $asc_uri -Method Get -Headers $asc_requestHeader
}
Catch {
Write-Error $_
}
Finally {
$asc_request
}
}
}
End {
}
Expand Down

0 comments on commit 90aa85c

Please sign in to comment.