I want to know how to set proxy with username and password using azcmagent.
I successfully onboard my on premise server to azure arc. After that I tried to deploy some extensions like azure monitor agent to my server. My on premise server is using a proxy server with username and password authentication.
So I am trying using the command below. (By the way, the version of Azure Connected Machine Agent is 1.42.02699.1697)
azcmagent config set proxy.url http://myusername:mypassword@ipaddress:port
But I can’t deploy extensions and got following error in %ProgramData%GuestConfigext_mgr_logsgc_ext.log
[2024-05-25 11:18:52.977] [PID 16916] [TID 11916] [Timer Manager] [ERROR] […..] [C:__w1ssrcdscem_timerem_timer_manager.cpp:203] Failed to Run extension refresh workflow for ‘TriggeredByNoticationAgent’ Error : Failed to send request to http end point host: https://useast-gas.guestconfiguration.azure.com/machines/…/extensions?api-version=2019-08-08, http port: 443, Exception: Failed to connect to proxy: myusername, proxy port: mypassword@ipaddress:port, target host: useast-gas.guestconfiguration.azure.com:443, boost::system::system_error Exception: resolve: ��指��抵ソィ��ゑセウ��ゑソェ��ゑセス��ク����セ会セス��ゑセェ��鯉セゥ��ゑソゑセゑセゥ��ゑソィ��ゑソ懶セゑセケ��ゑソア��。 [system:10109 at C:__w1vcpkginstalledx64-windowsincludeboost/asio/detail/resolver_service.hpp:84]
Here are some links I refered.
https://learn.microsoft.com/en-us/azure/azure-arc/servers/azcmagent-config#examples-4
https://github.com/MicrosoftDocs/azure-docs/blob/53884976480929d2c2ffdd0486d47b8ffda29f8f/articles/azure-arc/servers/azcmagent-config.md#examples-4
The proxy and proxy port format seems to be some strange in the error message.
I want to know if my configuration is not correct.
Or some way to help me to solve this.
Sound is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.