How to know our current Azure SQL Database resource API version

Ernest Basamot 5 Reputation points
2024-08-30T02:34:49.6866667+00:00

How do I check on our current Azure SQL Database resource API version? We have received an email from Microsoft Azure saying that "Azure SQL Database 2014-04-01 APIs will be retired on 31 October 2025" and that we must update to a newer version to avoid any problems.

I've taken a look about this online and found running the script below on Azure Resource Graph Explorer will determine if we have such APIs being used, and that if we received a result of "Query is invalid" like the one indicated on the screenshot below, that would mean that we are not using any Azure SQL database APIs and that the email notification we received can be ignored.

HttpIncomingRequests

| where TIMESTAMP > ago(30d)

| where targetResourceProvider == 'MICROSOFT.SQL'

| where subscriptionId == 'update-this-to-your-subid' //make sure you update this

| where apiVersion == "2014-04-01" or apiVersion == "2014-01-01" or apiVersion == "2014-04-01-preview"

User's image We currently have three subscription IDs and ran the said script on all of them, with all having the same result. Is this already good for us to consider on ignoring the email notification we received from MS Azure?

Azure SQL Database
{count} vote

2 answers

Sort by: Most helpful
  1. Stanislav Zhelyazkov 28,186 Reputation points MVP Volunteer Moderator
    2024-08-30T05:35:23.6833333+00:00

    Hi,

    I am not sure from where you've took this query but it seems incorrect to me or at least it is not for Azure Resource Graph. I am not aware of Azure resource graph having table with name HttpIncomingRequests. But back to the questions those APIs versions could be used if you are using automation tools like like Bicep, Azure SDKs, Az PowerShell, Az CLI, Terraform, etc. For most tools you will need to be using some old version of the tool as they do not expose the version directly for you to configure but if you have some Bicep code that code can be configured with that version. So I would check in your organization what tools are being used to automate the deployment of Azure SQL database. If they are too old update them. If you have Bicep you can check directly which API version is used. Most likely the message is general for anyone who has Azure SQL database deployed but it does not necessary says that you are using old API versions.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. RahulRandive 10,486 Reputation points Volunteer Moderator
    2024-08-30T22:35:32.52+00:00

    Hi @Ernest Basamot

    I believe HttpIncomingRequests is a backend query that can be executed by the support agent.

    Below query you can try running in Azure Resource Graph Explorer from Azure portal

    resources

    | where type == 'Microsoft.Sql/servers/databases'

    | project apiVersion

    Let me know if this help!

    Thank You!


Your answer

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