Ask Your Question
2

How can I add multiple email recipients to an Action Group or set them using Set-AzActionGroup?

asked 2022-01-07 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-02-28 05:00:00 +0000

ladyg gravatar image

To add multiple email recipients to an Action Group using the Azure portal:

  1. Navigate to the Action Groups blade in the Azure portal.
  2. Click on the Action Group that you want to update.
  3. In the Email/SMS/Push section, click on the Add New button.
  4. Enter the email addresses of the recipients that you want to add, separated by a semicolon. You can also add phone numbers for SMS notifications or push notifications for mobile devices.
  5. Click on the OK button to save the changes.

To set multiple email recipients using Set-AzActionGroup PowerShell command:

  1. Open the Azure PowerShell command prompt.
  2. Authenticate to your Azure account using the login command.
  3. Use the following command to get the Action Group object:
$ActionGroup = Get-AzActionGroup -ResourceGroupName "YourResourceGroup" -Name "YourActionGroup"
  1. Use the following command to set the email recipient list for the Action Group:
$ActionGroup.EmailReceivers = "email1@example.com;email2@example.com"
  1. Use the following command to update the Action Group:
Set-AzActionGroup -ActionGroup $ActionGroup

Note: You can also use the PowerShell command to set other properties of the Action Group, such as SMSReceivers or VoiceReceivers.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-07 11:00:00 +0000

Seen: 8 times

Last updated: Feb 28 '23