File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/azure-monitor/agents Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,15 @@ The Azure Monitor Agent extensions for Windows and Linux can communicate either
56
56
``` powershell
57
57
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
58
58
$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
60
60
```
61
61
62
62
# [ Linux VM] ( #tab/PowerShellLinux )
63
63
64
64
``` powershell
65
65
$settingsString = '{"proxy":{"mode":"application","address":"http://[address]:[port]","auth": true}}';
66
66
$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
68
68
```
69
69
70
70
# [ Windows Arc-enabled server] ( #tab/PowerShellWindowsArc )
You can’t perform that action at this time.
0 commit comments