What you need to know
Check what a reference names before adding retries to a failed deployment.
Potentially affected
Use this review for the documented identity-reference failure during an ARM deployment. Identify whether the identity is attached to the resource being created and inspect the exact expression. Do not generalize this example to every independently created identity or every resource-not-found error.
DSE recommendation
DSE recommends tracing the failed lookup back to its template expression before adding retries.
Source facts
Microsoft warns that passing a managed identity’s name to reference can cause Resource Manager to resolve it before the resource and identity are deployed. Its guidance is to pass the name of the resource carrying the identity, so deployment occurs before the reference is resolved. Microsoft Learn.
Applicability
Use this review for the documented identity-reference failure during an ARM deployment. Identify whether the identity is attached to the resource being created and inspect the exact expression. Do not generalize this example to every independently created identity or every resource-not-found error.
DSE recommendation
DSE recommends tracing the failed lookup back to its template expression before adding retries. Compare the expression and deployment order with the current source’s example. Have the template owner propose the smallest correction and preserve a copy of the failed deployment’s diagnostics. Test the correction in an isolated deployment with no production role changes.
Verification
Inspect deployment operations to confirm the owning resource exists before the identity value is consumed. Check that the returned identifier belongs to the intended resource, then test the downstream operation that uses it. Retain the expression, relevant operation order and sanitized identifier comparison so the fix is demonstrably more than a successful rerun.
Official references
Review the official source
Resource not found errors - Azure Resource Manager | Microsoft Learn · Verified September 17, 2026
Need help applying this guidance safely?
DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.
Talk with DSE