Issue related with APIM Email Templates - Not Reflecting Changes Despite Correct Format

Akshat Luthra 0 Reputation points
2025-02-25T06:19:49.4433333+00:00

Hi Team,

I'm facing an issue while updating the azure API Management email template. The HTML Format is correct, verified using multiple formatters, yet the Azure APIM email template still throws the same error.

Additionally, I tried modifying the content within the code, but the updates are still not applied.

Is there a specific process or additional steps required to update APIM email templates ? Do we need to follow certain guidelines while applying the Quota-by-Key policy ? Any insights would be appreciated.

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

1 answer

Sort by: Most helpful
  1. Sampath 750 Reputation points Microsoft External Staff
    2025-03-06T06:42:30.72+00:00

    Hello Akshat Luthra,

    To view and configure a notification template in the Azure API Management (APIM) portal, refer to this Microsoft documentation.

    Troubleshooting APIM Email Template Updates

    If your email template updates are not reflecting, consider the following troubleshooting steps:

    • Ensure XML-Compliant HTML Formatting:
      • Even if your HTML is correctly formatted, Azure APIM requires well-formed, XML-compliant HTML.
      • Avoid using   and any unescaped special characters.
      • Ensure all tags are properly closed.
      • Try a simpler version of your template to isolate the issue.
    • Save and Republish:
      • After making edits, explicitly click Save, then refresh the portal.
      • Republish the API Management instance to apply changes.
    • Check Permissions:
      • Ensure you have the appropriate permissions (Contributor or higher) to modify templates.

    Below is an example of a quota policy in Azure API Management:

    <policies>
        <inbound>
            <base />
            <quota-by-key calls="10000" bandwidth="40000" renewal-period="3600"
                          increment-condition="@(context.Response.StatusCode >= 200 && context.Response.StatusCode < 400)"
                          counter-key="@(context.Request.IpAddress)" />
        </inbound>
        <outbound>
            <base />
        </outbound>
    </policies>
    

    For more details, refer to this Microsoft documentation on setting usage quotas by key in Azure API Management policies.

    Hope this helps!

    If you found this answer helpful, please click Accept Answer and consider upvoting it by clicking Yes.

    Accept Answer

    If you have any further questions, feel free to click Comment.

    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.