Freigeben über


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

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(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(ProvisioningContext)

Compile this infrastructure into a set of bicep modules.

GetResources()

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

IsValidIdentifierName(String)

Checks whether an name is a valid bicep identifier name comprised of letters, digits, and 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(ProvisioningContext)

Resolve any resources or properties that were not explicitly specified.

Validate(ProvisioningContext)

Validate the presence of any required members.

ValidateIdentifierName(String, String)

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

Applies to