Using outputs between ARM templates
One of the important aspects that can easily be overlooked while using linked templates is that there might be resource dependencies within linked templates. For example, a SQL Server resource might be in a linked template that is different to that of a virtual machine resource. If we want to open the SQL Server firewall for the virtual machine IP address, then we should be able to dynamically pass this information to the SQL Server firewall resource after provisioning the virtual machine.
This could be done using the simple method of referring to the IP address resource using the REFERENCES
function if the SQL Server and virtual machine resources are in the same template.
It becomes slightly more complex in the case of linked templates if we want to share runtime property values from one resource to another when they are in different templates.
ARM templates provide an outputs
configuration, which is responsible for generating outputs from...