Infrastructure Constructor

Definition

Initializes a new instance of the Infrastructure class.

public Infrastructure (Azure.Provisioning.ConstructScope constructScope = Azure.Provisioning.ConstructScope.Subscription, Guid? tenantId = default, Guid? subscriptionId = default, string? envName = default, Azure.Provisioning.Configuration? configuration = default);
new Azure.Provisioning.Infrastructure : Azure.Provisioning.ConstructScope * Nullable<Guid> * Nullable<Guid> * string * Azure.Provisioning.Configuration -> Azure.Provisioning.Infrastructure
Public Sub New (Optional constructScope As ConstructScope = Azure.Provisioning.ConstructScope.Subscription, Optional tenantId As Nullable(Of Guid) = Nothing, Optional subscriptionId As Nullable(Of Guid) = Nothing, Optional envName As String = Nothing, Optional configuration As Configuration = Nothing)

Parameters

constructScope
ConstructScope

The ConstructScope to use for the root IConstruct.

tenantId
Nullable<Guid>

The tenant id to use. If not passed in will try to load from AZURE_TENANT_ID environment variable.

subscriptionId
Nullable<Guid>

The subscription id to use. If not passed, the subscription will be loaded from the deployment context.

envName
String

The environment name to use. If not passed in will try to load from AZURE_ENV_NAME environment variable.

configuration
Configuration

The configuration for the infrastructure.

Applies to