Skip to content

Commit 03b2f82

Browse files
authored
Update virtual-machine-scale-sets-health-extension.md
Update-AzVmssExtension is not available, the only way to update the extension via powershell would be to delete and re-add extension onto the scale set. However, because app health extension is required for orchestration services like instance repairs, deleting + re-adding the extension will cause errors unless the customer: turns off instance repairs --> deletes app health ext --> re-adds app health extension with updated versioning --> re-enables instance repairs. This is not very intuitive so I think it may be better to remove update from Powershell example entirely.
1 parent 9476dca commit 03b2f82

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ Use the [Add-AzVmssExtension](/powershell/module/az.compute/add-azvmssextension)
286286

287287
The following example adds the Application Health extension to the `extensionProfile` in the scale set model of a Windows-based scale set. The example uses the new Az PowerShell module.
288288

289-
To change an existing extension from Rich Health States to Binary Health, use [Update-AzVmssExtension](/cli/azure/azure-cli-extensions-overview#how-to-update-extensions) instead of `Add-AzVmssExtension` at *Add the Application Health extension to the scale set model* step.
290-
291289
```azurepowershell-interactive
292290
# Define the scale set variables
293291
$vmScaleSetName = "myVMScaleSet"
@@ -413,8 +411,6 @@ Use the [Add-AzVmssExtension](/powershell/module/az.compute/add-azvmssextension)
413411

414412
The following example adds the **Application Health - Rich States** extension to the `extensionProfile` in the scale set model of a Windows-based scale set. The example uses the new Az PowerShell module.
415413

416-
To upgrade an existing extension from Binary to Rich Health States, use [Update-AzVmssExtension](/cli/azure/azure-cli-extensions-overview#how-to-update-extensions) instead of `Add-AzVmssExtension` at *Add the Application Health extension to the scale set model* step.
417-
418414
```azurepowershell-interactive
419415
# Define the scale set variables
420416
$vmScaleSetName = "myVMScaleSet"

0 commit comments

Comments
 (0)