Skip to content

Commit b1ec280

Browse files
author
Alexander (Sasha) Nosov
committed
Supressed instancePool warnings
1 parent 769405a commit b1ec280

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/manage/azure-hybrid-benefit/modify-license-type/modify-azure-sql-license-type.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ foreach ($sub in $subscriptions) {
446446
} else {
447447
"[?licenseType!='${LicenseType}' $tagsFilter].{name:name, licenseType:licenseType, location:location, resourceGroup:resourceGroup, id:id, ResourceType:type, State:status}"
448448
}
449-
$instancePools = az sql instance-pool list --query $instancePoolsQuery -o json | ConvertFrom-Json
449+
$instancePools = az sql instance-pool list --query $instancePoolsQuery -o json 2>$null | ConvertFrom-Json
450450
$poolsToUpdate = $instancePools | Where-Object { $_.licenseType -ne $LicenseType }
451451
if($poolsToUpdate.Count -eq 0) {
452452
Write-Output "No SQL Instance Pools found that require a license update."

0 commit comments

Comments
 (0)