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:
- Navigate to the Azure Portal and open your API Management instance.
- Click on "Alerts" in the left-hand menu.
- Select the alert rule that is generating the Get Token alerts.
- Click on "Edit" to modify the alert rule.
- In the "Condition" section, click on "Add condition" to add a new condition.
- In the "Add condition" dialog, select "Operation name" as the condition type.
- In the "Operation name" field, enter "!Microsoft.ApiManagement/service/users/token/action" (without the quotes).
- Click on "Done" to save the new condition.
- 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"