ResourceNotFound 🔷 Azure

ResourceNotFound: The Resource 'Microsoft.X/...' under resource group 'y' was not found

The specific resource doesn’t exist in that resource group/subscription — wrong name, group or subscription, or it was deleted.

Seen on: Azure

Meaning

Commands with --name/--resource-group or IDs from another environment fail. In templates, references to existing resources (existing keyword) must point at the right scope.

Common causes

  • Wrong name or resource group
  • Wrong subscription
  • Resource deleted or not yet created
  • Template references existing resource in another scope

⚡ Quick fix

  1. List resources in the group to confirm the name
  2. Set the correct subscription
  3. Use the full resource ID

Detailed fix by platform

Azure CLI

  1. az resource list -g rg-app --query "[].{name:name,type:type}" -o table

How to diagnose

  1. Scope — Subscription and group
  2. Name — Exact resource name/type

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.