Sending Email to multipe Api users through Azure Portal

Nutan Kumari 6 Reputation points
2022-01-26T16:00:04.747+00:00

I have an API with multiple users. I would like to send an update message to all the users who are using this API. Currently I am doing it by manually copying all users email address to outlook and sending mails. However it will really save my time if there is an option of doing it from the azure portal, be it template of powershell.

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-01-27T13:33:21.13+00:00

    @Nutan Kumari You can try exploring the Notifications and email templates in Azure API Management if this is something that can help with your business requirement which trigger when a specific event occurred.

    If in general, you want to send emails to all your user then you need to build your own solution. You can leverage the Get all User for APIM Instance PowerShell command that returns all user and their properties. Now you can iterate through the result set to get only the email IDs or as per your requirement. Once you have the list of user email IDs you can further automate it using the Send-MailMessage command. This workflow is only for reference and you can leverage the Management REST, etc in whichever way you are comfortable with.

    1 person found this answer 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.