Skip to main content

Configure a Proxy for Azure and Entra ID Connections

Netwrix Threat Manager's Azure Service connects to Azure and Microsoft Entra ID to sync data. If your environment requires outbound connections to go through a proxy server, configure the proxy settings in the Azure Service configuration file.

Configuration File

The proxy is configured in the Azure Service appsettings.json file on the Threat Manager server:

C:\Program Files\STEALTHbits\StealthDEFEND\AzureService\appsettings.json

warning

Before editing configuration files, review the Modify Service Configuration Settings topic for important guidance on the correct approach.

Proxy Settings

Add or update the Proxy section in appsettings.json:

{
"Proxy": {
"Enabled": true,
"Address": "http://proxy.contoso.com:8080",
"BypassProxyOnLocal": null,
"UseDefaultCredentials": null,
"PreAuthenticate": null,
"CredentialProfileId": null
}
}

The following table describes each setting.

PropertyConfig KeyTypeDescription
EnabledProxy:EnabledboolWhether the proxy is active. If false, the service ignores all other settings and connects directly.
AddressProxy:AddressstringThe proxy server URL, e.g. http://proxy.contoso.com:8080. Required when Enabled is true.
BypassProxyOnLocalProxy:BypassProxyOnLocalboolWhether to skip the proxy for local and intranet addresses.
UseDefaultCredentialsProxy:UseDefaultCredentialsboolWhether to authenticate to the proxy using the Windows identity of the service account. Suitable for NTLM/Kerberos-authenticated proxies.
PreAuthenticateProxy:PreAuthenticateboolWhether to send proxy credentials on the first request rather than waiting for a 407 challenge. Can improve performance on authenticated proxies.
CredentialProfileIdProxy:CredentialProfileIdlongID of a credential profile to use for proxy authentication. Used instead of UseDefaultCredentials when the proxy requires an explicit username and password. See the Credential Profile Page topic for information on creating credential profiles.

Configure the Proxy

Step 1 – Open the Azure Service configuration file on the Threat Manager server:

C:\Program Files\STEALTHbits\StealthDEFEND\AzureService\appsettings.json

Step 2 – Locate the Proxy section. If it doesn't exist, add it as shown in the preceding example.

Step 3 – Set Enabled to true.

Step 4 – Set Address to the URL of your proxy server, e.g. http://proxy.contoso.com:8080.

Step 5 – Configure authentication for the proxy using one of the following options:

  • Windows identity (NTLM/Kerberos) — Set UseDefaultCredentials to true. The service authenticates to the proxy using the Windows identity of the account running the Azure Service.
  • Explicit credentials — Set CredentialProfileId to the ID of a credential profile stored in Threat Manager. See the Credential Profile Page topic for information on creating credential profiles.
  • No authentication — Leave both UseDefaultCredentials and CredentialProfileId as null for unauthenticated proxies.

Step 6 – Optionally, set BypassProxyOnLocal to true to bypass the proxy for local and intranet addresses.

Step 7 – Optionally, set PreAuthenticate to true to send proxy credentials on the first request and avoid the 407 challenge round-trip. Use this only if your proxy supports pre-authentication.

Step 8 – Save the configuration file.

Step 9 – Restart the Netwrix Threat Manager Azure Service for the changes to take effect.