Skip to content

Commit 1c6e117

Browse files
author
Alexander (Sasha) Nosov
committed
Added -NoWait
1 parent 8095be5 commit 1c6e117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# -All (Optional. Set the new license type value only if undefined)
1616
#
1717
# The script uses a function ConvertTo-HashTable that was created by Adam Bertram (@adam-bertram).
18-
# The function was originally published in this blog: https://4sysops.com/archives/convert-json-to-a-powershell-hash-table/
18+
# The function was originally published on this site: https://4sysops.com/archives/convert-json-to-a-powershell-hash-table/
1919
# and used here with the author's permission.
2020
#
2121

@@ -177,7 +177,7 @@ foreach ($sub in $subscriptions){
177177
} else {
178178
$settings["LicenseType"] = $LicenseType
179179
Write-Host "Resource group: [$($r.resourceGroup)] Connected machine: [$($r.MachineName)] : License type: [$($settings["LicenseType"])]"
180-
Set-AzConnectedMachineExtension @setId -Settings $settings | Out-Null
180+
Set-AzConnectedMachineExtension @setId -Settings $settings -NoWait | Out-Null
181181
}
182182
}
183183
}

0 commit comments

Comments
 (0)