Share 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.

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.

Compile()

Compile the resource into a set of Bicep statements.

CompileModules(ProvisioningBuildOptions)

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.

IsValidBicepIdentifier(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.

Remove(Provisionable)

Remove a provisionable construct from this Infrastructure.

Resolve(ProvisioningBuildOptions)

Resolve any resources or properties that were not explicitly specified.

Validate(ProvisioningBuildOptions)

Validate the presence of any required members.

ValidateBicepIdentifier(String, String)

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

Applies to