DeploymentContext interface

Inherited environment that flows down the component tree.

Remarks

Each node may attach a local contribution via ProvisioningComponent._localDeploymentContext (today, only Stack and ResourceGroup do). When a Resource reads the effective context, the framework walks ancestors and resolves each field:

  • location: nearest ancestor with a value wins.
  • namingPolicy: nearest ancestor with a value wins.
  • tags: flat-merged across all ancestors; innermost wins on key conflict.

Per-resource Bicep scope: is not part of this — a resource's deployment scope is determined by which file or module it lands in, which in turn is determined by the ProvisioningComponent tree (the nearest ResourceGroup/Stack ancestor).

The same interface describes both a node's local contribution and the fully-resolved view returned by ProvisioningComponent.deploymentContext.

Property Details

location

location?: ExpressionOrValue<string>

Property Value

namingPolicy

namingPolicy?: NamingPolicy

Property Value

tags

tags?: Record<string, ExpressionOrValue<string>>

Property Value

Record<string, ExpressionOrValue<string>>