FoundryEnvironment.IsHosted Property

Definition

Indicates whether the process is running in a Foundry hosted environment. Returns true when the FOUNDRY_HOSTING_ENVIRONMENT environment variable is set to a non-empty value.

public static bool IsHosted { get; }
static member IsHosted : bool
Public Shared ReadOnly Property IsHosted As Boolean

Property Value

Remarks

This variable is injected by the Azure AI Foundry hosting infrastructure as a non-empty value when the container is running in a Foundry context.

Applies to