Skip to content

Commit

Permalink
Fixed Security Solution version variable issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kassis committed Oct 17, 2017
1 parent a2b605c commit 9d5c07f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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.13'
ModuleVersion = '0.0.14'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
6 changes: 4 additions & 2 deletions Azure-Security-Center.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1163,8 +1163,10 @@ function Get-ASCSecuritySolution {
)
Show-Warning
Set-Context
$asc_endpoint = 'securitySolutions' #Set endpoint.
$asc_APIVersion = "?api-version=$version" #Build version syntax.
if (!$Version) {$Version = $asc_version}
$asc_APIVersion = "?api-version=$Version" #Build version syntax.

$asc_endpoint = 'securitySolutions' #Set endpoint

$asc_uri = "https://$asc_url/subscriptions/$asc_subscriptionId/providers/microsoft.Security/$asc_endpoint$asc_APIVersion"
Try {
Expand Down

0 comments on commit 9d5c07f

Please sign in to comment.