Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Running APIOps on windows self hosted agent + proxy #594

Closed
ayetee opened this issue Jul 23, 2024 · 3 comments
Closed

[Question] Running APIOps on windows self hosted agent + proxy #594

ayetee opened this issue Jul 23, 2024 · 3 comments

Comments

@ayetee
Copy link

ayetee commented Jul 23, 2024

Release version

APIOps Toolkit for Azure APIM v6.0.0-alpha.1.0.6

Question Details

Is it possible to run APIOPs on a self hosted agent + proxy?
Self hosted agent hosted on windows VM in the same VNET as API-M

Following configuration added in pipeline
variables:

  • name: Https_Proxy
    value: http://{proxy_ip}:8080
  • name: Http_Proxy
    value: http://{proxy_ip}:8080

Expected behavior

Run Extractor to connect to API-M and extract yaml files.

Actual behavior

Run Extractor not extracting any content and returning empty + nulls.

dbug: Microsoft.Extensions.Hosting.Internal.Host[1] Hosting starting info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: C:\agents\_work\1\s dbug: Microsoft.Extensions.Hosting.Internal.Host[2] Hosting started info: RunExtractor[0] Running extractor... trce: HttpPipeline[0] Starting request Method: GET Uri: removed Content: <null> trce: HttpPipeline[0] Received response Method: GET Uri: removed Status code: 200 Duration (hh:mm:ss): 00:00:00.5076391 Content: {"value":[]} trce: HttpPipeline[0] Starting request Method: GET Uri: removed Content: <null> trce: HttpPipeline[0] Received response Method: GET Uri: removed Status code: 200 Duration (hh:mm:ss): 00:00:00.0858151 Content: {"value":[]}

Reproduction Steps

API-M + self hosted agent behind a proxy

Copy link

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@waelkdouh
Copy link
Contributor

Please make sure you switch to v6 rc1. Regarding your question I will let @guythetechie chime on this one.

@guythetechie
Copy link
Contributor

As long as the self-hosted agent can talk to the APIM REST API, ApiOps should work behind a proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants