File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
samples/manage/azure-arc-enabled-sql-server/modify-license-type Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
# -All (Optional. Set the new license type value only if undefined)
16
16
#
17
17
# 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/
19
19
# and used here with the author's permission.
20
20
#
21
21
@@ -171,13 +171,13 @@ foreach ($sub in $subscriptions){
171
171
if ($settings [" LicenseType" ] -ne $LicenseType ) {
172
172
$settings [" LicenseType" ] = $LicenseType
173
173
Write-Host " Resource group: [$ ( $r.resourceGroup ) ] Connected machine: [$ ( $r.MachineName ) ] : License type: [$ ( $settings [" LicenseType" ]) ]"
174
- Set-AzConnectedMachineExtension @setId - Settings $settings - NoWait
174
+ Set-AzConnectedMachineExtension @setId - Settings $settings - NoWait | Out-Null
175
175
}
176
176
}
177
177
} else {
178
178
$settings [" LicenseType" ] = $LicenseType
179
179
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
181
181
}
182
182
}
183
183
}
You can’t perform that action at this time.
0 commit comments