SQL DB not Found

Shabir jan 21 Reputation points
2025-04-28T08:46:47.8233333+00:00

Hi,

I have created SQL Server with multiple SQL Database in it, but when I try to click the Database in the Azure Portal, it says Resource Not Found, I can connect to the same database in the SQL Server Management Studio, I have also tried getting the usage of the server by running the Azure CLI command

az sql db list-usages --name 'db-name' --resource-group 'rg-dev' --server 'sqlserver-weu-nonprod'

And I am getting this in the terminal.

(ResourceNotFound) The Resource 'Microsoft.Sql/servers/sqlserver-weu-nonprod/databases/dbwtest' under resource group 'rg--weu-dev' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

Code: ResourceNotFound

Message: The Resource 'Microsoft.Sql/servers/sqlserver--weu-nonprod/databases/dbtest' under resource group 'rg-dev' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

SQL Server Database Engine
0 comments No comments

Answer recommended by moderator
Anonymous
2026-05-27T05:06:40.04+00:00

Hi @Shabir jan

Thanks to the super user for the detailed troubleshooting guidance.

Since the database is accessible from SSMS, the SQL engine itself appears to be working correctly. This points more toward an Azure resource/metadata issue rather than a connectivity problem.

One additional check would be to run:

az sql db list --resource-group rg-dev --server sqlserver-weu-nonprod

to confirm whether the database appears under the expected Azure resource.

If the database is still accessible in SSMS but does not appear in Azure Portal or CLI results, it may require an Azure support ticket to investigate a possible backend ARM metadata inconsistency.

Thanks,
Akhil.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Newest
  1. Deepesh Dhake 1,165 Reputation points
    2026-05-22T00:38:35.4766667+00:00

    This usually means one of these situations is happening:

    1. Wrong resource group
    2. Wrong subscription
    3. Database was restored/imported differently
    4. Portal cache/desync issue
    5. Typo/case mismatch in server or DB Name

    The important clue is "You can connect successfully from SQL Server Management Studio".

    That means:

    1. Logical SQL endpoint is reachable
    2. database with that name is responding via the SQL engine
    3. connectivity/authentication is working

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.