Skip to content

Commit 768c9f5

Browse files
Merge pull request #247735 from SwathiDhanwada-MSFT/SwathiDhanwada-MSFT-patch-1-3
Update azure-monitor-agent-data-collection-endpoint.md
2 parents 9e65d76 + be71d97 commit 768c9f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,23 @@ The Azure Monitor Agent extensions for Windows and Linux can communicate either
5454
# [Windows VM](#tab/PowerShellWindows)
5555

5656
```powershell
57-
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
57+
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": "true"}}';
5858
$protectedSettingsString = '{"proxy":{"username":"[username]","password": "[password]"}}';
5959
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
65-
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
65+
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": "true"}}';
6666
$protectedSettingsString = '{"proxy":{"username":"[username]","password": "[password]"}}';
6767
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)
7171

7272
```powershell
73-
$settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = true}}
73+
$settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = "true"}}
7474
$protectedSettings = @{"proxy" = @{username = "[username]"; password = "[password]"}}
7575
7676
New-AzConnectedMachineExtension -Name AzureMonitorWindowsAgent -ExtensionType AzureMonitorWindowsAgent -Publisher Microsoft.Azure.Monitor -ResourceGroupName <resource-group-name> -MachineName <arc-server-name> -Location <arc-server-location> -Setting $settings -ProtectedSetting $protectedSettings
@@ -79,7 +79,7 @@ New-AzConnectedMachineExtension -Name AzureMonitorWindowsAgent -ExtensionType Az
7979
# [Linux Arc-enabled server](#tab/PowerShellLinuxArc)
8080

8181
```powershell
82-
$settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = true}}
82+
$settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = "true"}}
8383
$protectedSettings = @{"proxy" = @{username = "[username]"; password = "[password]"}}
8484
8585
New-AzConnectedMachineExtension -Name AzureMonitorLinuxAgent -ExtensionType AzureMonitorLinuxAgent -Publisher Microsoft.Azure.Monitor -ResourceGroupName <resource-group-name> -MachineName <arc-server-name> -Location <arc-server-location> -Setting $settings -ProtectedSetting $protectedSettings

0 commit comments

Comments
 (0)