How to identify usage of Azure SQL Database 2014-04-01 APIs before retirement

McDonald, Matthew 186 Reputation points
2023-12-02T00:12:59.2266667+00:00

I received a notice about retirement of Azure SQL Database 2014-04-01 APIs, what should I do? How do I identify the resources using the old version?

Azure SQL Database 2014-04-01 APIs will be retired on 31 October 2025

You’re receiving this email because you use Azure SQL Database APIs.

To improve performance and security, we’re updating Azure SQL Database APIs. As part of this, all version 2014-04-01 APIs will be retired on 31 October 2025. You’ll need to update your resources, including templates, tools, scripts, and programs, to use a newer API version by then. Any API calls still using the older versions after that date will stop working until you’ve updated them.

Required action 

To avoid potential service disruptions, upgrade [aka.ms] any Azure SQL Database resources that use version 2014-04-01 APIs to a newer stable version by 31 October 2025.

I found a similar question from 2022 that offered an answer with a query that could be run to do this, but I am not sure where to run such a query. I tried Azure Monitor > Logs but it failed to run.

HttpIncomingRequests  
| where TIMESTAMP > ago(1d)  
| where targetResourceProvider == 'MICROSOFT.SQL'  
| where subscriptionId == 'xxxxxxxxxxxx'  
| where apiVersion == "2014-04-01" or apiVersion == "2014-01-01" or apiVersion == "2014-04-01-preview"

I tried running this in Azure monitor but it does not know what HttpIncomingRequests is.

User's image

Azure SQL Database
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 29,382 Reputation points Microsoft Employee
    2023-12-12T01:23:18.3933333+00:00

    Hi, @McDonald, Matthew Thanks for sending the email, I have checked the subscription details which you have shared and I don't see any results It means it's good, no old API calls unless you have an application that ran more than 30 days ago and not at all since then, So if you have some application or pipeline that runs once a year or quarterly, then maybe that might still have issues. But that's very unlikely.

    I hope this information helps.

    Regards

    Geetha


4 additional answers

Sort by: Most helpful
  1. Jovin, Srdjan 20 Reputation points
    2023-12-06T10:25:44.4366667+00:00

    Hello Matthew,

     

    Kusto queries are executed in Azure Resource Graph Explorer. To start it, you can search on the

    Azure platform “ Resource Graph Explorer ”. In the query window you can execute Kusto queries (please see the attached screenshot).

     

    It seems but that there is an issue with the query you found. It fails with the following error message:

    Query is invalid. Please refer to the documentation for the Azure Resource Graph service and fix the error before retrying. (Code:InvalidQuery)

     

    I tried to query just HttpIncomingRequests but I got this message:

    Table HttpIncomingRequests is invalid, unsupported or disallowed.

     

    As it could be a permission problem (I do not have privileges on this table) I took a look at the available Resource Graph tables (Understand the query language - Azure Resource Graph | Microsoft Learn) but the table was not listed. Therefore, I am not sure whether the table, HttpIncomingRequests, is still available.  

     

    Probably I will create a support ticket for the issue.

     

    Regards

    Srdjan

    06-12-2023_11-22-13


  2. Tom Bulsink | Inspiro 6 Reputation points
    2024-08-29T09:56:36.58+00:00

    I'm aware that this is a somewhat older thread, but here https://stackoverflow.com/a/78924072 it is suggested that if this query fails, you probably do not use the Azure SQL database APIs (as is the fact in my case) and that the notification can be ignored.

    0 comments No comments

  3. Caleb Magnon 0 Reputation points
    2024-09-05T16:05:55.65+00:00

    I don't want to create another question here, but we do have an application that connects to the Azure database. How do we go about understanding whether or not we are using API's and if they are going to be depricated?


  4. Mark Fletcher 0 Reputation points
    2024-09-19T16:42:43.8+00:00

    Try this in Azure Resource Graph Explorer - it will at least give you an idea of the api versions installed on your SQL DB's, even if they are not being actively used.

    Resources
    | project name, type, apiVersion
    |where type =~ 'microsoft.sql/servers/databases'
     |where isnotnull(apiVersion)
    |order by type asc
    

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.