Skip to main content

InvalidResourceReference: Azure couldn't resolve a resource reference

The deployment refers to a resource Azure can't resolve. The reference might point to the wrong resource, or the resource might not have been created yet.

What to check​

  1. Compare the resolved resource ID with the intended subscription, resource group, type and name. For ARM templates, check the arguments passed to reference.
  2. If the deployment creates both resources, make sure Azure deploys the referenced resource before the operation that uses it.

Official reference​

Microsoft Learn: Resolve resource references and dependencies