SQL DB missing from portal
Hi,
I'm hoping someone can help me with what is most likely an admin problem rather than tech. We don't use Azure very much but have an SQL DB running for a piece of software used across out company.
Last week we noticed that the DB is missing from the Azure Portal. All none-default directories have gone too. Essentially the Portal looks brand new as though nothing has ever happened there. However, the application that my colleagues use is still functioning - it is still accessing that DB. Although the Portal looks blank as far as DB's etc. are concerned, the billing info still shows correctly - we're being billed!!
In a nutshell, the app is still working so has access to the DB. We are being billed for the DB.
... we just can't see it in the portal and only have the "default" directory visible.
Can anyone help or point me in the right direction to get access back?
Azure SQL Database
-
TP • 118.8K Reputation points • Moderator
2025-05-06T09:58:32.7866667+00:00 Hi,
I'm assuming you are Global Administrator in your Entra ID tenant. If my assumption is correct, please follow instructions in article below to elevate access:
Elevate access for a Global Administrator
Once your user has elevated access, sign out and sign-in again for the change to take effect.
Next navigate to subscription in Azure portal, then on left click Access control (IAM) blade.
Click Add -- Add role assignment, next click Privileged administrator roles tab, select Owner, click Next, click Select members, search for and Select your account, click Next, on Conditions tab select Allow user to assign all roles (highly privileged), click Review + assign, Review + assign.
Sign out and back in again for above change to take effect, and then check to see if Azure SQL Database and logical server shows up.
NOTE: It is possible there is another subscription that contains your SQL Database, so check for that and assign yourself Owner role on it, sign out/in, etc.
After you are finished please remember to toggle the elevated access back to off.
Please reply back here with your results, whether positive or negative.
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP
-
Vijayalaxmi Kattimani • 2,235 Reputation points • Microsoft External Staff • Moderator
2025-05-06T10:17:03.7233333+00:00 Hi Spectra,
Greetings!
In addition to the response provided by @TP, I would like to add the following information.
As we understand that, you are facing an issue where your SQL Database seems to have vanished from the Azure Portal, even though your application is still working and you are still getting billed.
Here are some insights and potential steps to resolve the problem:
- Check Directory and Subscription: Make sure you are logged into the correct Azure directory and subscription where the SQL Database was created. Sometimes, users may switch accounts or subscriptions, which can cause resources to not appear.
- Verify Permissions: Confirm that your account has the necessary permissions to view the SQL Database resources. If your permissions have changed, you might not be able to see certain resources. You should have at least Contributor or SQL Database Contributor roles to manage databases.
- Use the Search Function: In the Azure Portal, try using the search bar at the top to search for your SQL Database by name. If it doesn’t show up, it may still be listed under a different resource group than you expect.
- Check for Filters: Sometimes, the portal dashboard can have filters set that hide certain resources. Make sure there are no active filters on your Azure SQL resource listings.
- Access via Azure CLI or PowerShell: If the portal isn’t being cooperative, you can also check for your SQL Database using Azure CLI or PowerShell. This might give you another viewpoint on whether the database exists.
If none of these step's help, could you please provide the requested details via private message as it will help us conduct a more thorough investigation?
I hope this information helps. Please do let us know if you have any further queries.
-
Spectra • 0 Reputation points
2025-05-06T13:01:23.6266667+00:00 Hi TP,
Thanks for your reply. Although the issue is not resolved, it is very helpful as we're now pretty sure there is some issue around the account setup. As mentioned, we rarely use Azure and we just have this one DB (which wasn't in the default directory). I've never logged into or via Entra before. Once logged in (using my standard MS credentials) I can see I'm labelled as "Global Admin". The only Subscriptions showing though are for billing. When trying to add a subscription, there's only myself to select and I already have full access (of the 3 levels selectable - all of which seem to be focused around billing).
I don't suppose you have any other pointers that may help us uncover the DB?
-
TP • 118.8K Reputation points • Moderator
2025-05-06T13:30:12.0566667+00:00 You appear to be describing access to Cost Management + Billing or Cost Management, which is important, and you should have Owner role there, but I'm referring to Subscription.
Please navigate to list of subscriptions in portal using below link (I'm assuming your account is still elevated as I described above):
https://portal.azure.com/#view/Microsoft_Azure_Billing/SubscriptionsBladeV2
Click on your subscription. If you have multiple, repeat below steps for each one.
On left, click on Access control (IAM).
Click on View my access button
On right, does it show you as having Owner role assignment?
-
Spectra • 0 Reputation points
2025-05-06T13:43:55.1566667+00:00 Hi TP
There are no subscriptions listed, this is the problem that we have (I may not have explained it properly previously).
I am a global administrator.
-
TP • 118.8K Reputation points • Moderator
2025-05-06T15:14:08.1733333+00:00 There are no subscriptions listed, this is the problem that we have (I may not have explained it properly previously). I am a global administrator.
Okay. Were you able to elevate your access as described in the article I linked to above?If you click gear icon in upper right corner of Azure portal, is there only one directory listed, or are there any others you can switch to?
If there are other people that have Global Administrator, you can have them try to elevate, sign out/sign in, and see if they can see subscription(s) as well.
-
Spectra • 0 Reputation points
2025-05-07T08:20:01.0933333+00:00 Thanks TP
I am the only global administrator and there is only one directory listed, the default directory.
I believe I have elevated access
However, I am unsure if I have done this correctly as the IAM page is completely different to the help guide and shows me as the owner, not user access administrator.
-
TP • 118.8K Reputation points • Moderator
2025-05-07T10:14:52.1533333+00:00 I am the only global administrator and there is only one directory listed, the default directory. I believe I have elevated access
Yes, it appears you have elevated your access correctly. Thanks for the screenshot. From the details provided so far it doesn't appear that you have access to the subscription.
In Cost Management + Billing -- Invoices, do you see invoices where you are being billed for the database? If you click on one of the invoices and then click on Subscriptions tab, does it show a subscription?
When looking at invoice pdf itself (you need to download pdf) Azure SQL Database will typically just show under Databases, so not very specific. If you click Prepare usage file button and then download the .csv file once it is ready, you will be able to see fine-grained details.
It is best to open the usage file in Excel or Google Sheets or similar. In the file you will see details of the charges along with subscription id, which will be helpful when contacting support to track down the subscription. Idea is to look at the file and confirm which subscription id corresponds to your software's Azure SQL Database it is using.
Have you opened Billing support case yet?
-
Spectra • 0 Reputation points
2025-05-07T11:46:18.2866667+00:00 Hi TP
I can see the subscription ID etc so have opened a billing support case as I am guessing something has gone awry.
I am sure I have seen on one page some about me not having Roll Based Access, but I find this very strange as I set up the account and I am the only one who has ever had admin access.
Thanks for all your help, it is appreciated.
-
TP • 118.8K Reputation points • Moderator
2025-05-07T12:13:09.79+00:00 I can see the subscription ID etc so have opened a billing support case as I am guessing something has gone awry. I am sure I have seen on one page some about me not having Roll Based Access, but I find this very strange as I set up the account and I am the only one who has ever had admin access. Thanks for all your help, it is appreciated.
You are welcome. One potential is your account was a Classic Administrator and those were finally removed from your account. There were notifications that went out to grant yourself Owner to the subscription via Role Based Access Control (RBAC), which is what I was describing above with the Access control (IAM) on the subscription.I'm not saying the above is what actually happened to you, just that it is one possible explanation. I've not had one of my clients lose Classic Administrator without having RBAC assigned on the subscription so I'm unsure what the actual real-world effects are.
Another potential is you had access to subscription via another directory and for some reason that access was removed. I believe billing support should be able to look things up and at very least point you in correct direction.
-
Spectra • 0 Reputation points
2025-05-07T14:45:44.5966667+00:00 I can only hope the Microsoft guys are even half as helpful as you are, so far, the response in 4 to 8 hours has been considerably longer......so maybe not lol
Lifes rich pattern. :)
-
Mihir Saxena • 0 Reputation points • Microsoft External Staff • Moderator
2025-05-08T04:39:57.77+00:00 Hi @Spectra
I have shared my findings with you over private message, instead of comment section as it contains sensitive data about your environment. Kindly check and respond there at your earliest convenience.
Thanks
Sign in to comment