Operation name - Microsoft.ApiManagement/service/users/token/action

Aryaa Kotian 0 Reputation points
2024-10-25T06:00:29.7333333+00:00

I have set Alerts in API management and now since there are multiple APIs updated by me, I am continuously receiving alerts which I am assuming that it is coming because the APIM is checking each API, upon checking Activity logs of APIM I can see many Get Token Alerts generated but I only want alerts for Create API or Update API. Is it not possible to turn off Get Token Alerts.
Operation name - Microsoft.ApiManagement/service/users/token/action

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,337 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,193 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pavan Minukuri 520 Reputation points Microsoft Vendor
    2024-11-15T19:29:47.6566667+00:00

    Hi Aryaa Kotian,
    Welcome to Microsoft Q&A Forum, Thanks for asking question here...!

    Yes, it is possible to turn off Get Token alerts in Azure API Management. To do this, you can modify the alert rule that is generating the alerts to exclude the "Microsoft.ApiManagement/service/users/token/action" operation name.

    Here are the steps to modify the alert rule:

    1. Navigate to the Azure Portal and open your API Management instance.
    2. Click on "Alerts" in the left-hand menu.
    3. Select the alert rule that is generating the Get Token alerts.
    4. Click on "Edit" to modify the alert rule.
    5. In the "Condition" section, click on "Add condition" to add a new condition.
    6. In the "Add condition" dialog, select "Operation name" as the condition type.
    7. In the "Operation name" field, enter "!Microsoft.ApiManagement/service/users/token/action" (without the quotes).
    8. Click on "Done" to save the new condition.
    9. Click on "Save" to save the modified alert rule.

    By adding the new condition to the alert rule, you are excluding the "Microsoft.ApiManagement/service/users/token/action" operation name from the alert. This should prevent you from receiving Get Token alerts while still allowing you to receive alerts for Create API or Update API operations.

    I hope this helps! Let me know if you have any other questions.
    If the answer was helpful, please click "Accept Answer " and Click "Upvote"


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.