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
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 )
You can’t perform that action at this time.
0 commit comments