Construct Constructor

Definition

Initializes a new instance of the Construct class.

protected Construct (Azure.Provisioning.IConstruct? scope, string name, Azure.Provisioning.ConstructScope constructScope = Azure.Provisioning.ConstructScope.ResourceGroup, Guid? tenantId = default, Guid? subscriptionId = default, string? envName = default, Azure.Provisioning.ResourceManager.ResourceGroup? resourceGroup = default);
new Azure.Provisioning.Construct : Azure.Provisioning.IConstruct * string * Azure.Provisioning.ConstructScope * Nullable<Guid> * Nullable<Guid> * string * Azure.Provisioning.ResourceManager.ResourceGroup -> Azure.Provisioning.Construct
Protected Sub New (scope As IConstruct, name As String, Optional constructScope As ConstructScope = Azure.Provisioning.ConstructScope.ResourceGroup, Optional tenantId As Nullable(Of Guid) = Nothing, Optional subscriptionId As Nullable(Of Guid) = Nothing, Optional envName As String = Nothing, Optional resourceGroup As ResourceGroup = Nothing)

Parameters

scope
IConstruct

The scope the construct belongs to.

name
String

The name of the construct.

constructScope
ConstructScope

The ConstructScope the construct is.

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.

resourceGroup
ResourceGroup

Exceptions

constructScope is ResourceGroup and scope is null.

Applies to