Skip to content

Commit 89237d6

Browse files
authored
Update azure-monitor-agent-data-collection-endpoint.md
1 parent 17674c3 commit 89237d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/agents/azure-monitor-agent-data-collection-endpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ The Azure Monitor Agent extensions for Windows and Linux can communicate either
5656
```powershell
5757
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
5858
$protectedSettingsString = '{"proxy":{"username":"[username]","password": "[password]"}}';
59-
Set-AzVMExtension -ExtensionName AzureMonitorWindowsAgent -ExtensionType AzureMonitorWindowsAgent -Publisher Microsoft.Azure.Monitor -ResourceGroupName <resource-group-name> -VMName <virtual-machine-name> -Location <location> -TypeHandlerVersion 1.0 -SettingString $settingsString -ProtectedSettingString $protectedSettingsString
59+
Set-AzVMExtension -ExtensionName AzureMonitorWindowsAgent -ExtensionType AzureMonitorWindowsAgent -Publisher Microsoft.Azure.Monitor -ResourceGroupName <resource-group-name> -VMName <virtual-machine-name> -Location <location> -TypeHandlerVersion <type-handler-version> -SettingString $settingsString -ProtectedSettingString $protectedSettingsString
6060
```
6161

6262
# [Linux VM](#tab/PowerShellLinux)
6363

6464
```powershell
6565
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
6666
$protectedSettingsString = '{"proxy":{"username":"[username]","password": "[password]"}}';
67-
Set-AzVMExtension -ExtensionName AzureMonitorLinuxAgent -ExtensionType AzureMonitorLinuxAgent -Publisher Microsoft.Azure.Monitor -ResourceGroupName <resource-group-name> -VMName <virtual-machine-name> -Location <location> -TypeHandlerVersion 1.5 -SettingString $settingsString -ProtectedSettingString $protectedSettingsString
67+
Set-AzVMExtension -ExtensionName AzureMonitorLinuxAgent -ExtensionType AzureMonitorLinuxAgent -Publisher Microsoft.Azure.Monitor -ResourceGroupName <resource-group-name> -VMName <virtual-machine-name> -Location <location> -TypeHandlerVersion <type-handler-version> -SettingString $settingsString -ProtectedSettingString $protectedSettingsString
6868
```
6969

7070
# [Windows Arc-enabled server](#tab/PowerShellWindowsArc)

0 commit comments

Comments
 (0)