Function in ARM templates that fetches a resource's runtime state and implies a dependency on it. It cannot be used to supply a resource ID to dependsOn.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains reference() in context, with comparison tables and the common traps.
Terms in this definition
- FUNCTION
Registered models count as functions in Unity Catalog, so this securable type governs them too: access is given through
GRANT ... ON FUNCTION, and REST calls passFUNCTIONassecurable_type. - ARM
Short for Azure Resource Manager, the control plane Azure uses for deploying and managing resources.
- State
A parameter in OAuth that carries custom data through the authorisation flow and back, as with the "Support state parameter" option in APIM.
- Dependency
Anything the design needs that is provided by a different team, vendor or system and lies outside its control, for example corporate DNS and NTP, a witness site or jumbo frames end to end. Each should be confirmed and tracked, since a dependency that may not arrive is a risk.
- Resource ID
The unique path that identifies an Azure resource, shaped like /subscriptions/.../resourceGroups/.../providers/.... Moving the resource to a different resource group or subscription gives it a new ID.
- dependsOn
In an ARM template, the list of resource names or IDs (commonly built with resourceId()) to deploy before this resource. It controls sequencing only and provides no iteration.