Skip to content

Commit 3d9eb8e

Browse files
authored
Merge pull request #157550 from rpsqrd/master
Removing TypeHandlerVersion from samples
2 parents b21a359 + aac5f43 commit 3d9eb8e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

articles/azure-arc/servers/manage-vm-extensions-powershell.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Enable VM extension using Azure PowerShell
33
description: This article describes how to deploy virtual machine extensions to Azure Arc enabled servers running in hybrid cloud environments using Azure PowerShell.
4-
ms.date: 04/13/2021
4+
ms.date: 05/06/2021
55
ms.topic: conceptual
66
ms.custom: devx-track-azurepowershell
77
---
@@ -34,7 +34,7 @@ The following example enables the Log Analytics VM extension on a Arc enabled Li
3434
```powershell
3535
PS C:\> $Setting = @{ "workspaceId" = "workspaceId" }
3636
PS C:\> $protectedSetting = @{ "workspaceKey" = "workspaceKey" }
37-
PS C:\> New-AzConnectedMachineExtension -Name OMSLinuxAgent -ResourceGroupName "myResourceGroup" -MachineName "myMachine" -Location "eastus" -Publisher "Microsoft.EnterpriseCloud.Monitoring" -TypeHandlerVersion "1.10" -Settings $Setting -ProtectedSetting $protectedSetting -ExtensionType "OmsAgentForLinux"
37+
PS C:\> New-AzConnectedMachineExtension -Name OMSLinuxAgent -ResourceGroupName "myResourceGroup" -MachineName "myMachine" -Location "eastus" -Publisher "Microsoft.EnterpriseCloud.Monitoring" -Settings $Setting -ProtectedSetting $protectedSetting -ExtensionType "OmsAgentForLinux"
3838
```
3939

4040
To enable the Log Analytics VM extension on an Arc enabled Windows server, change the value for the `-ExtensionType` parameter to `"MicrosoftMonitoringAgent"` in the previous example.
@@ -43,7 +43,7 @@ The following example enables the Custom Script Extension on an Arc enabled serv
4343

4444
```powershell
4545
PS C:\> $Setting = @{ "commandToExecute" = "powershell.exe -c Get-Process" }
46-
PS C:\> New-AzConnectedMachineExtension -Name custom -ResourceGroupName myResourceGroup -MachineName myMachineName -Location eastus -Publisher "Microsoft.Compute" -TypeHandlerVersion 1.10 -Settings $Setting -ExtensionType CustomScriptExtension
46+
PS C:\> New-AzConnectedMachineExtension -Name custom -ResourceGroupName myResourceGroup -MachineName myMachineName -Location eastus -Publisher "Microsoft.Compute" -Settings $Setting -ExtensionType CustomScriptExtension
4747
```
4848

4949
### Key Vault VM extension (preview)

articles/azure-arc/servers/manage-vm-extensions-template.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ To use the Azure Monitor Dependency agent extension, the following sample is pro
322322
"properties": {
323323
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
324324
"type": "DependencyAgentLinux",
325-
"typeHandlerVersion": "9.5",
326325
"autoUpgradeMinorVersion": true
327326
}
328327
}
@@ -360,7 +359,6 @@ To use the Azure Monitor Dependency agent extension, the following sample is pro
360359
"properties": {
361360
"publisher": "Microsoft.Azure.Monitoring.DependencyAgent",
362361
"type": "DependencyAgentWindows",
363-
"typeHandlerVersion": "9.5",
364362
"autoUpgradeMinorVersion": true
365363
}
366364
}
@@ -426,7 +424,6 @@ The following JSON shows the schema for the Key Vault VM extension (preview). Th
426424
"properties": {
427425
"publisher": "Microsoft.Azure.KeyVault",
428426
"type": "KeyVaultForLinux",
429-
"typeHandlerVersion": "1.0",
430427
"autoUpgradeMinorVersion": true,
431428
"settings": {
432429
"secretsManagementSettings": {
@@ -496,7 +493,6 @@ The following JSON shows the schema for the Key Vault VM extension (preview). Th
496493
"properties": {
497494
"publisher": "Microsoft.Azure.KeyVault",
498495
"type": "KeyVaultForWindows",
499-
"typeHandlerVersion": "1.0",
500496
"autoUpgradeMinorVersion": true,
501497
"settings": {
502498
"secretsManagementSettings": {

0 commit comments

Comments
 (0)