Share via


Infrastructure Class

Definition

A class representing a set of IConstruct that make up the Azure infrastructure.

public abstract class Infrastructure : Azure.Provisioning.Construct
type Infrastructure = class
    inherit Construct
Public MustInherit Class Infrastructure
Inherits Construct
Inheritance
Infrastructure

Constructors

Infrastructure(ConstructScope, Nullable<Guid>, Nullable<Guid>, String, Configuration)

Initializes a new instance of the Infrastructure class.

Properties

Configuration

Gets the configuration for the construct.

(Inherited from Construct)
ConstructScope

Gets the ConstructScope scope.

(Inherited from Construct)
EnvironmentName

Gets the environment name of the construct.

(Inherited from Construct)
Name

Gets the name of the construct.

(Inherited from Construct)
ResourceGroup

Gets the ResourceGroup for the construct.

(Inherited from Construct)
Root

Gets the Tenant for the construct."/>.

(Inherited from Construct)
Scope

Gets the parent of the construct.

(Inherited from Construct)
Subscription

Gets the Subscription for the construct.

(Inherited from Construct)

Methods

AddConstruct(IConstruct)

Adds a child construct to the construct.

(Inherited from Construct)
AddOutput(Output)

Adds an output to the construct.

(Inherited from Construct)
AddParameter(Parameter)

Adds a parameter to the construct.

(Inherited from Construct)
AddResource(Resource)

Adds a resource to the construct.

(Inherited from Construct)
Build(String)

Converts the infrastructure to Bicep files.

GetConstructs(Boolean)

Gets all child constructs in the construct.

(Inherited from Construct)
GetOutputs(Boolean)

Gets all outputs in the construct.

(Inherited from Construct)
GetParameters(Boolean)

Gets all parameters in the construct.

(Inherited from Construct)
GetResources(Boolean)

Gets all resources in the construct.

(Inherited from Construct)
UseExistingResource<T>(T, Func<T>)

Registers an existing resource with this construct that will be used by other resources in the construct.

(Inherited from Construct)

Extension Methods

AddAppConfigurationStore(IConstruct, String)

Adds a AppConfigurationStore to the construct.

AddKeyVault(IConstruct, ResourceGroup, String)

Adds a KeyVault to the construct.

GetSecrets(IConstruct)

Gets all of the KeyVaultSecret in the construct.

GetSingleResource<T>(IConstruct)

Gets the single resource of type T in the construct or its ancestors.

GetSingleResourceInScope<T>(IConstruct)

Gets the single resource of type T in the construct or its childresources.

AddResourceGroup(IConstruct)

Adds a resource group to the construct.

GetOrAddResourceGroup(IConstruct)

Gets or adds the resource group of the construct.

GetOrCreateSubscription(IConstruct, Nullable<Guid>)

Gets or adds a subscription to the construct.

AddBlobService(IConstruct)

Adds a BlobService to the construct.

AddStorageAccount(IConstruct, StorageKind, StorageSkuName, ResourceGroup, String)

Adds a StorageAccount to the construct.

Applies to