Using references

The reference function is an advanced concept in ARM templates and one of the most important and useful functions. Before going into the reference function any further, let's get a bit deeper into the deployment process of ARM templates.

When an ARM template is submitted to Azure, the entire ARM template is read, parsed, and validated. During parsing, all expressions and functions are evaluated to generate the real values behind them and then use them to configure the resources. There are times when we need a value from a resource to configure another resource. For example, the SQL Server firewall rules require IP addresses of all virtual machines for whitelisting. During ARM template deployment, both virtual machines and ...

Get Azure Resource Manager Templates Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.