MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.2k stars 21.34k forks source link

azcmagent proxy setting #122797

Closed kiyo-tech-git closed 2 months ago

kiyo-tech-git commented 3 months ago

I want to know how to set proxy with username and password using azcmagent.

I successfully onboarded 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%\GuestConfig\ext_mgr_logs\gc_ext.log

[2024-05-26 03:01:21.330] [PID 49720] [TID 43280] [TELEMETRY Timer Manager] [INFO] [cf1eac9f-2055-4d55-8806-b1aa9a6fa703] Run pull refresh for timer 'extension_refresh_timer' [2024-05-26 03:01:21.423] [PID 49720] [TID 43280] [TELEMETRY BOOST_BEAST_WRAPPER] [ERROR] [00000000-0000-0000-0000-000000000000] Failed to stop and clean up tcp socket connected to host japaneast-gas.guestconfiguration.azure.com boost::system::system_error Exception cancel: ピヒヒツᄈツ↑ツᄑテtテ@テCテヒ テnテモテhテヒツᆰヨᄈフ￸ツᅤツᄋチB [system:10009] [2024-05-26 03:01:21.423] [PID 49720] [TID 43280] [TELEMETRY Pull Client] [ERROR] [cf1eac9f-2055-4d55-8806-b1aa9a6fa703] Failed to update extensions Error : Failed to send request to http end point host: https://japaneast-gas.guestconfiguration.azure.com/machines/2c929bdc-2948-4988-a5b1-b7b0b54042f1/extensions?api-version=2019-08-08, http port: 443, Exception: `Failed to connect to proxy: myusername, proxy port: mypassword@ipaddress:port,` target host: japaneast-gas.guestconfiguration.azure.com:443, boost::system::system_error Exception: resolve: ホwメ│ツᄈツ↑ツᄑテNテノテXツᆰフᄅツᅡツᄅツ│ツᅵツᄍツ￱チB [system:10109 at C:\__w\1\vcpkg\installed\x64-windows\include\boost/asio/detail/resolver_service.hpp:84] [2024-05-26 03:01:21.424] [PID 49720] [TID 43280] [TELEMETRY DISPATCHER] [ERROR] [cf1eac9f-2055-4d55-8806-b1aa9a6fa703] Failed to finish extension workflow. Error : Failed to send request to http end point host: https://japaneast-gas.guestconfiguration.azure.com/machines/2c929bdc-2948-4988-a5b1-b7b0b54042f1/extensions?api-version=2019-08-08, http port: 443, Exception: Failed to connect to proxy: myusername, proxy port: mypassword@ipaddress:port, target host: japaneast-gas.guestconfiguration.azure.com:443, boost::system::system_error Exception: resolve: ホwメ│ツᄈツ↑ツᄑテNテノテXツᆰフᄅツᅡツᄅツ│ツᅵツᄍツ￱チB [system:10109 at C:\__w\1\vcpkg\installed\x64-windows\include\boost/asio/detail/resolver_service.hpp:84] [2024-05-26 03:01:21.424] [PID 49720] [TID 43280] [TELEMETRY Timer Manager] [ERROR] [cf1eac9f-2055-4d55-8806-b1aa9a6fa703] Failed to Run extension refresh workflow for 'extension_refresh_timer' Error : Failed to send request to http end point host: https://japaneast-gas.guestconfiguration.azure.com/machines/2c929bdc-2948-4988-a5b1-b7b0b54042f1/extensions?api-version=2019-08-08, http port: 443, Exception: Failed to connect to proxy: myusername, proxy port: mypassword@ipaddress:port, target host: japaneast-gas.guestconfiguration.azure.com:443, boost::system::system_error Exception: resolve: ホwメ│ツᄈツ↑ツᄑテNテノテXツᆰフᄅツᅡツᄅツ│ツᅵツᄍツ￱チB [system:10109 at C:\__w\1\vcpkg\installed\x64-windows\include\boost/asio/detail/resolver_service.hpp:84]

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

kiyo-tech-git commented 3 months ago

I will appreciate so much if there is some solution to this.

TPavanBalaji commented 3 months ago

@kiyo-tech-git It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

kiyo-tech-git commented 3 months ago

@TPavanBalaji Thank you for rapid reply.

t would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

Here is the link. 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

TPavanBalaji commented 3 months ago

@kiyo-tech-git Thanks for your feedback! We will investigate and update as appropriate.

johnmarco commented 2 months ago

Hello @kiyo-tech-git . Thank you for your patience with this issue. It has been open for some time so I am moving it to our backlog to investigate it from a documentation standpoint. In the meantime, I'm going to close this issue, but if you haven't done so already you might have better luck directing this question to a support team for ARO.

johnmarco commented 2 months ago

please-close