ResourceGroupNotFound 🔷 Azure

ResourceGroupNotFound: Resource group 'x' could not be found

The resource group doesn’t exist in the subscription the command or deployment is using.

Seen on: Azure

Meaning

The active subscription in Azure CLI/PowerShell is often not the one you expect. Typos, groups deleted or not yet created in a pipeline are other causes.

Common causes

  • Wrong active subscription
  • Typo in the resource group name
  • Group not created yet / deleted
  • Service principal without access to that subscription

⚡ Quick fix

  1. az account show / az account set --subscription
  2. az group list to find the name
  3. Create the group before deploying

Detailed fix by platform

Azure CLI

  1. bash
    az account show --query name
    az account set --subscription "Production"
    az group create -n rg-app -l westeurope

How to diagnose

  1. Subscription — Active one
  2. Name — Exact group name
  3. Access — Can the identity see it?

🔧 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.