FoundryEnvironment Class
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.
Provides strongly-typed access to Foundry platform environment variables injected by the Azure AI Foundry hosting infrastructure. All values are read once in the static constructor and cached for the lifetime of the process.
public static class FoundryEnvironment
type FoundryEnvironment = class
Public Class FoundryEnvironment
- Inheritance
-
FoundryEnvironment
Properties
| Name | Description |
|---|---|
| AgentName |
The agent name. Sourced from the |
| AgentVersion |
The agent version. Sourced from the |
| AppInsightsConnectionString |
The Application Insights connection string. Sourced from the |
| IsHosted |
Indicates whether the process is running in a Foundry hosted environment.
Returns |
| OtlpEndpoint |
The OTLP exporter endpoint. Sourced from the |
| Port |
The HTTP listen port. Sourced from the |
| ProjectArmId |
The full ARM ID of the Foundry project.
Sourced from the |
| ProjectEndpoint |
The Foundry project endpoint. Sourced from the |
| SessionId |
The session ID. Sourced from the |
| SseKeepAliveInterval |
The SSE keep-alive comment frame interval. Sourced from the |