@@ -54,23 +54,23 @@ The Azure Monitor Agent extensions for Windows and Linux can communicate either
54
54
# [ Windows VM] ( #tab/PowerShellWindows )
55
55
56
56
``` powershell
57
- $settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
57
+ $settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": " true" }}';
58
58
$protectedSettingsString = '{"proxy":{"username":"[username]","password": "[password]"}}';
59
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
60
60
```
61
61
62
62
# [ Linux VM] ( #tab/PowerShellLinux )
63
63
64
64
``` powershell
65
- $settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
65
+ $settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": " true" }}';
66
66
$protectedSettingsString = '{"proxy":{"username":"[username]","password": "[password]"}}';
67
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
68
68
```
69
69
70
70
# [ Windows Arc-enabled server] ( #tab/PowerShellWindowsArc )
71
71
72
72
``` powershell
73
- $settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = true}}
73
+ $settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = " true" }}
74
74
$protectedSettings = @{"proxy" = @{username = "[username]"; password = "[password]"}}
75
75
76
76
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
79
79
# [ Linux Arc-enabled server] ( #tab/PowerShellLinuxArc )
80
80
81
81
``` powershell
82
- $settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = true}}
82
+ $settings = @{"proxy" = @{mode = "application"; address = "http://[address]:[port]"; auth = " true" }}
83
83
$protectedSettings = @{"proxy" = @{username = "[username]"; password = "[password]"}}
84
84
85
85
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