How to fix MissingApiVersionParameter error for a Microsoft Web Certificate

Dirk H Rober 20 Reputation points
2024-03-27T16:33:35.7233333+00:00

I'm encountering a MissingApiVersionParameter configuration error on a Microsoft Web Certificate. As a result, I'm unable to delete the certificate or move the resources to another subscription, which I need to do.

Details:

  • Resource ID: /subscriptions/33cad3e8-257d-491d-8fe8-c447858770ba/resourceGroups/Default-Web-WestEurope/providers/Microsoft.Web/certificates/DDA9B41FC84DAF3112AA26E4467E77FEA9AC5B04#westeuropewebspace
  • API version: 2023-01-01
  • Error message: {"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
762 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshu katara 4,825 Reputation points
    2024-03-27T17:18:29.51+00:00

    Hi ,

    I think maybe the API version you used is not right

    Make sure to replace 2023-01-01 with the 2022-09-01 API version for the action you're trying to perform. You can typically find the supported API versions in this doc https://learn.microsoft.com/en-us/azure/templates/microsoft.web/change-log/certificates

    Kindly accept answer if it helps, Thanks!

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 18,281 Reputation points Microsoft Employee
    2024-03-28T06:18:47.06+00:00

    @Dirk H Rober Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    As @Deepanshu katara mentioned you are using the wrong API version and also the error message says that you are missing the API version to the above shared resourceId at the end of the certificate name.

    If you want to delete the certificate of App service, you can leverage the Certificates-Delete Azure Management Rest API.

    Note :

    • You can move a certificate bound to a web without deleting the TLS bindings, as long as the certificate is moved with all other resources in the resource group.
    • If you are using free managed certificate in app service and if you want to move to another subscription, it is not supported as mentioned in this documentation as well.

    Hope this helps, let me know if you have any further questions on this.

    1 person found this answer helpful.
    0 comments No comments