Another important function used within an ARM template is the resourceId function. Every resource deployed on Azure has a friendly display name and can be used for referencing from both PowerShell and ARM templates. However, this display name is not used by Azure to identify resources.
Instead, Azure generates a unique URI for each deployed resource, which can be retrieved using the resourceIdfunction. Resources can be a parent resource, child resource, or even a child resource of another child resource. They all have unique identifier and can be uniformly identified using the resourceId function.
The format generated by resourceId is shown in the next code snippet. The items in {} brackets are values that are replaced with actual values of resources and its context. Readers will notice that resourceId uses a pattern to generate its unique identifier...