Construct Constructor
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.
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.
The tenant id to use. If not passed in will try to load from AZURE_TENANT_ID environment variable.
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
Azure SDK for .NET