Skip to content

Commit

Permalink
added extra resource filter to api call
Browse files Browse the repository at this point in the history
  • Loading branch information
liprec committed May 15, 2023
1 parent 8bb3817 commit 07968a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy-aas-db/v1/VstsAzureRestHelperExtra_.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Get-AzureRmAnalysisServicesResourceId {

Write-Verbose "Get Resource Groups"
$method = "GET"
$uri = "$($endpoint.Url)/subscriptions/$subscriptionId/resources?api-version=$apiVersion"
$uri = "$($endpoint.Url)/subscriptions/$subscriptionId/resources?api-version=$apiVersion&$filter=resourceType eq '$serverType'"
$headers = @{Authorization = ("{0} {1}" -f $accessToken.token_type, $accessToken.access_token) }

do {
Expand Down
2 changes: 1 addition & 1 deletion execute-aas-tmsl/v1/VstsAzureRestHelperExtra_.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Get-AzureRmAnalysisServicesResourceId {

Write-Verbose "Get Resource Groups"
$method = "GET"
$uri = "$($endpoint.Url)/subscriptions/$subscriptionId/resources?api-version=$apiVersion"
$uri = "$($endpoint.Url)/subscriptions/$subscriptionId/resources?api-version=$apiVersion&$filter=resourceType eq '$serverType'"
$headers = @{Authorization = ("{0} {1}" -f $accessToken.token_type, $accessToken.access_token) }

do {
Expand Down

0 comments on commit 07968a8

Please sign in to comment.