Skip to content

Commit

Permalink
Reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kassis committed Nov 9, 2017
1 parent f73dd98 commit bb5dadf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Azure-Security-Center.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Azure-Security-Center.psm1'

# Version number of this module.
ModuleVersion = '0.0.16'
ModuleVersion = '0.0.17'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
15 changes: 14 additions & 1 deletion Azure-Security-Center.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function Get-ASCPolicy {
}
}

Else {
If ($PolicyName -and !$Baseline) {
$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,6 +536,19 @@ 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 bb5dadf

Please sign in to comment.