From 1c6e117bc85fea7f420db98d877d3cb4f823c1d6 Mon Sep 17 00:00:00 2001 From: "Alexander (Sasha) Nosov" Date: Mon, 13 Feb 2023 22:20:09 -0800 Subject: [PATCH] Added -NoWait --- .../modify-license-type/modify-license-type.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 b/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 index cc20a84d..79dbcf1b 100644 --- a/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 +++ b/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 @@ -15,7 +15,7 @@ # -All (Optional. Set the new license type value only if undefined) # # The script uses a function ConvertTo-HashTable that was created by Adam Bertram (@adam-bertram). -# The function was originally published in this blog: https://4sysops.com/archives/convert-json-to-a-powershell-hash-table/ +# The function was originally published on this site: https://4sysops.com/archives/convert-json-to-a-powershell-hash-table/ # and used here with the author's permission. # @@ -177,7 +177,7 @@ foreach ($sub in $subscriptions){ } else { $settings["LicenseType"] = $LicenseType Write-Host "Resource group: [$($r.resourceGroup)] Connected machine: [$($r.MachineName)] : License type: [$($settings["LicenseType"])]" - Set-AzConnectedMachineExtension @setId -Settings $settings | Out-Null + Set-AzConnectedMachineExtension @setId -Settings $settings -NoWait | Out-Null } } }