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

Use EntrExporter behind corporative proxy #66

Open
dcandela12 opened this issue May 6, 2024 · 3 comments
Open

Use EntrExporter behind corporative proxy #66

dcandela12 opened this issue May 6, 2024 · 3 comments

Comments

@dcandela12
Copy link

I'm trying to automate the process via Azure DevOps, and I want to use a self-hosted agent but this one is behind a corporate proxy to navigate through internet, so I've been checking the automation from devops running the Entra-Exporter module and have been doing the tests, but the error I get is Unable to connect to the remote server, doing some troubleshooting is because the module is not pulling the traffic through the proxy, I was wondering if it is possible to somehow use Entra-Exporter via proxy. Otherwise I could not run it because it exceeds more than 60m export on an Azure agent and gives me timeout.

@merill there is any option to execute this with proxy?

@SamErde
Copy link
Contributor

SamErde commented May 31, 2024

The Microsoft\CSS-Exchange repo has a couple of great shared functions that help detect and negotiate proxy servers for their scripts. Check the ScriptUpdateFunctions folder for potential solutions in Invoke-WebRequestWithProxyDetection.ps1 and Confirm-ProxyServer.ps1. (I also like the model they built for scripts that check for newer versions!)

@merill
Copy link
Contributor

merill commented Jun 9, 2024

We use Graph PowerShell so the proxy support will need to come from there.

It looks like you can follow the general PowerShell options to set a proxy. See this blog post for options.

https://woshub.com/using-powershell-behind-a-proxy/

@SamErde
Copy link
Contributor

SamErde commented Jun 11, 2024

As a side note, if you can already connect to the Graph API on your own, you can skip the Connect-EntraExporter function and just run Export-Entra with your desired parameters.

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