I am trying to use CI CD Pipeline to Update or Creating APIs in APIM, So I have created API folder with operations folder with policies but API is created but operations are giving a error. Entity not Found. What should I do to resolve this issue ?

Nikunj Singhania 0 Reputation points
2024-04-01T06:39:51.42+00:00

failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"Entity with specified identifier not found","details":null}}'

User's image

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,764 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,101 Reputation points
    2024-04-09T00:55:14.85+00:00

    Hi @Nikunj Singhania we are sorry to hear you're facing this issue. This error message is common when the API or operation you are trying to reference in your CI/CD pipeline does not exist or cannot be found in Azure API Management (APIM). are you using Azure Resource Manager (ARM) templates to deploy your APIs? if yes, please shared the template you used

    The API identifier used in your CI/CD pipeline code (e.g., ARM template or code snippet) needs to match the actual API name or resource ID in your Azure subscription. You need to review the identifiers used in your API folder and operations folder to make sure it matches exactly with those in APIM. Any discrepancy can lead to this error. also, confirm that the policies you have defined are correctly associated with the operations. If there is a mismatch, it can result in the “Entity not Found” error.

    0 comments No comments