Skip to content

Intrinsic Functions

The Azure Resource Manager lexicon provides 9 intrinsic functions.

Tag? shows how an intrinsic is authored: a genuine tagged template (Sub\…`) or a plain function call (Ref(…)). **Folds?** shows whether [folding](/chant/concepts/typescript-as-data/#folded-vs-run) — the default chant build path — can reduce a use of this intrinsic today, without running the file — generated directly from this lexicon's registration, not restated by hand. A tagged template folds once it is registered. A plain call folds only where this lexicon has opted that intrinsic in one at a time (foldsAsCall), so a No` in this column means this intrinsic has not been opted in, not that calls in general cannot fold.

FunctionDescriptionOutput KeyTag?Folds?
ResourceIdGenerate a resource ID for an Azure resourceResourceIdNoYes
ReferenceGet the runtime state of a deployed resourceReferenceNoYes
ConcatConcatenate multiple string valuesConcatNoYes
ResourceGroupGet the current resource group objectResourceGroupNoYes
SubscriptionGet the current subscription objectSubscriptionNoYes
UniqueStringGenerate a deterministic hash stringUniqueStringNoYes
FormatFormat a string with argumentsFormatNoYes
IfConditional expressionIfNoYes
ListKeysList access keys for a resourceListKeysNoYes