ResourceGroupNotFound: Resource group 'x' could not be found
The resource group doesn’t exist in the subscription the command or deployment is using.
Resource group could not be foundResource group 'rg-app' could not be found 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
- az account show / az account set --subscription
- az group list to find the name
- Create the group before deploying
Detailed fix by platform
Azure CLI
- bash
az account show --query name az account set --subscription "Production" az group create -n rg-app -l westeurope
How to diagnose
- Subscription — Active one
- Name — Exact group name
- 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:
Similar errors
- AnotherOperationInProgress Conflict: AnotherOperationInProgress — Another operation is in progress on the resource
- InvalidTemplateDeployment ARM/Bicep: DeploymentFailed / InvalidTemplateDeployment / InvalidTemplate
- LocationNotAvailableForResourceType LocationNotAvailableForResourceType / InvalidResourceLocation
Most viewed in Azure
- AADSTS50053 AADSTS50053: Your account is locked (Smart Lockout) / sign-in blocked due to suspicious activity
- AuthorizationFailed Azure: AuthorizationFailed — The client does not have authorization to perform action
- 40615 Azure SQL: Cannot open server 'x' requested by the login. Client with IP address 'y' is not allowed to access the server (Error 40615)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 13 Oct 2026