Share via


ReferenceEnvironmentInjectionFlags Enum

Definition

Specifies which connection or endpoint information should be injected into environment variables when WithReference() is invoked.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum ReferenceEnvironmentInjectionFlags
[<System.Flags>]
type ReferenceEnvironmentInjectionFlags = 
Public Enum ReferenceEnvironmentInjectionFlags
Inheritance
ReferenceEnvironmentInjectionFlags
Attributes

Fields

Name Value Description
None 0

No connection information will be injected.

ConnectionString 1

The connection string will be injected as an environment variable.

ConnectionProperties 2

Individual connection properties will be injected as environment variables.

ServiceDiscovery 4

Each endpoint defined on the resource will be injected using the format "services__{resourceName}{endpointName}{endpointIndex}".

Endpoints 8

Each endpoint defined on the resource will be injected using the format "{RESOURCENAME}_{ENDPOINTNAME}".

All 15

Connection string, connection properties and service endpoints will be injected as environment variables.

Applies to