Azure API ARM template error: Link already exists between specified Tag and Operation.

Bill Winder 0 Reputation points
2024-10-10T14:59:00.38+00:00

I am doing an ARM template import of an Azure API instance and getting numerous errors like the below:

"Link already exists between specified Tag and Operation".

The API itself was designed in Swagger and imported into Azure API. I then exported from Azure portal using "Export template" and then use "Deploy from a custom template" and use the template create a new Azure API instance in a different resource group. However it results in a multitude of the above error occurring. I can't see any rhyme or reason when I look at the "Microsoft.ApiManagement/service/tags/operationLinks" sections in the json template, and can't see why there would already be an existing link.

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

1 answer

Sort by: Most helpful
  1. Sina Salam 12,086 Reputation points
    2024-10-10T21:38:39.6966667+00:00

    Hello Bill Winder,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having issue with the Azure API ARM template error: Link already exists between specified Tag and Operation.

    To solve this issue, endeavor to do the follosings:

    1. You will need to check thoroughly and update the template syntax in the "Microsoft.ApiManagement/service/tags/operationLinks" check that the section of your JSON template is correct and does not contain any redundant or conflicting entries. Also, for duplicate Tags and Links.
    2. Then, to make sure the changes are applied without affecting existing resources use incremental deployment mode instead of complete mode - https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/quickstart-troubleshoot-arm-deployment
    3. You can perform manual check on the Azure portal for any existing links between tags and operations and remove them if necessary.
    4. Use tools like Visual Studio Code with the Azure Resource Manager Tools extension to validate your template before deployment - https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/common-deployment-errors

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


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.