ResourceGroupNotFound Azure Origin: Platform & cloud Last updated 13 Oct 2026

ResourceGroupNotFound: Resource group 'x' could not be found

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

Exact message you may see Resource group could not be foundResource group 'rg-app' could not be found
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:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

AnotherOperationInProgress — Conflict: AnotherOperationInProgress — Another operation is in progress on the resource (Azure)AnotherOperationInPro…InvalidTemplateDeployment — ARM/Bicep: DeploymentFailed / InvalidTemplateDeployment / InvalidTemplate (Azure)InvalidTemplateDeploy…LocationNotAvailableForResourceType — LocationNotAvailableForResourceType / InvalidResourceLocation (Azure)LocationNotAvailableF…MissingSubscriptionRegistration — MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.X' (Azure)MissingSubscriptionRe…ResourceNotFound — ResourceNotFound: The Resource 'Microsoft.X/...' under resource group 'y' was not found (Azure)ResourceNotFoundScopeLocked — ScopeLocked: The scope cannot perform write/delete operation because following scope(s) are locked (Azure)ScopeLockedSubscriptionNotFound — SubscriptionNotFound: The subscription 'x' could not be found (Azure)SubscriptionNotFoundResourceG…

Explore the map of this error Full error map →

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

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.