Azure API Management Error RequestedSizeExceeded

SvenGlöckner 446 Reputation points
2023-01-24T11:07:02.4233333+00:00

Hi,

I need to import a big swagger file in Azure API Management. Using the Portal fails with a generic error.

Using the AZCLI the request fails with the following error message:

ERROR: (RequestedSizeExceeded) The size of requested exceeded the system limitation.

How to overcome this?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2023-01-24T18:25:05.73+00:00

    @SvenGlöckner Thank you for reaching out to Microsoft Q&A. Based on my understanding, you have encountered RequestedSizeExceeded error via portal as well as Azure CLI but able to use Rest API by specifying specification-url.

    This is due to size limit restrictions when importing specification inline as mentioned in OpenAPI specifications. User's image

    Like you mentioned, you should be able to import swagger file via URL with CLI (--specification-url), and Powershell (-SpecificationUrl) as well.

    If you are in need of this feature, and like to pass feedback to our product team, feel free to submit via https://aka.ms/apimwish hope this helps with your question and feel free to add if you have any further questions. Would be happy to answer. Please Accept as answer if it helped.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SvenGlöckner 446 Reputation points
    2023-01-24T13:44:51.1166667+00:00

    They only solution was to use REST API and specifying specification-url. Then there is no limitation in size

    0 comments No comments

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.