FoundryEnvironment.IsHosted Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.