Infrastructure 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 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.
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.
- configuration
- Configuration
The configuration for the infrastructure.
Applies to
Azure SDK for .NET