ResourceNotFound: Azure couldn't find the referenced resource
Azure couldn't find the referenced resource. The resource might not exist at the specified scope or might not have been created yet.
What to check
- Verify the resource ID, including the subscription, resource group, type and name. If the template uses
reference, check that its arguments identify the intended resource. - If the deployment creates the resource, check that the operation that refers to it waits for it to exist.
Official reference
Microsoft Learn: Resolve resource references and dependencies