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