Dela via


Infrastructure Class

Definition

Collect resources and other constructs like parameters together.

public class Infrastructure : Azure.Provisioning.Primitives.Provisionable
type Infrastructure = class
    inherit Provisionable
Public Class Infrastructure
Inherits Provisionable
Inheritance
Infrastructure

Constructors

Infrastructure(String)

Collect resources and other constructs like parameters together.

Properties

BicepName

A friendly name that can also be used as a file name if compiling to a module.

Name

A friendly name that can also be used if compiling to a module.

TargetScope

Optional target scope for the infrastructure. If left empty, then ResourceGroup is assumed.

Methods

Add(Provisionable)

Adds a provisionable construct to this Infrastructure.

Build(ProvisioningBuildOptions)

Compose all the resources into a concrete ProvisioningPlan that can be compiled into Bicep, deployed, etc.

Build(ProvisioningContext)

Compose all the resources into a concrete ProvisioningPlan that can be compiled into Bicep, deployed, etc.

Compile()

Compile the resource into a set of Bicep statements.

CompileModules(ProvisioningBuildOptions)

Compile this infrastructure into a set of bicep modules.

CompileModules(ProvisioningContext)

Compile this infrastructure into a set of bicep modules.

GetProvisionableResources()

Get any resources represented by this object. This will typically only be the object itself for everything but Infrastructure.

GetProvisionableResources()

Get any resources represented by this object. This will typically only be the object itself for everything but Infrastructure.

(Inherited from Provisionable)
GetResources()

Get any resources represented by this object. This will typically only be the object itself for everything but Infrastructure.

GetResources()

Get any resources represented by this object. This will typically only be the object itself for everything but Infrastructure.

(Inherited from Provisionable)
IsValidBicepIdentifier(String)

Checks whether an name is a valid bicep identifier name comprised of letters, digits, and underscores.

IsValidIdentifierName(String)

Checks whether an name is a valid bicep identifier name comprised of letters, digits, and underscores.

NormalizeBicepIdentifier(String)

Normalizes a proposed bicep identifier name. Any invalid characters will be replaced with underscores.

NormalizeIdentifierName(String)

Normalizes a proposed bicep identifier name. Any invalid characters will be replaced with underscores.

Remove(Provisionable)

Remove a provisionable construct from this Infrastructure.

Resolve(ProvisioningBuildOptions)

Resolve any resources or properties that were not explicitly specified.

Resolve(ProvisioningBuildOptions)

Resolve any resources or properties that were not explicitly specified.

(Inherited from Provisionable)
Resolve(ProvisioningContext)

Resolve any resources or properties that were not explicitly specified.

Resolve(ProvisioningContext)

Resolve any resources or properties that were not explicitly specified.

(Inherited from Provisionable)
Validate(ProvisioningBuildOptions)

Validate the presence of any required members.

Validate(ProvisioningBuildOptions)

Validate the presence of any required members.

(Inherited from Provisionable)
Validate(ProvisioningContext)

Validate the presence of any required members.

Validate(ProvisioningContext)

Validate the presence of any required members.

(Inherited from Provisionable)
ValidateBicepIdentifier(String, String)

Validates whether a given bicep identifier name is correctly formed of letters, numbers, and underscores.

ValidateIdentifierName(String, String)

Validates whether a given bicep identifier name is correctly formed of letters, numbers, and underscores.

Applies to