To add multiple email recipients to an Action Group using the Azure portal:
- Navigate to the Action Groups blade in the Azure portal.
- Click on the Action Group that you want to update.
- In the Email/SMS/Push section, click on the Add New button.
- 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.
- Click on the OK button to save the changes.
To set multiple email recipients using Set-AzActionGroup PowerShell command:
- Open the Azure PowerShell command prompt.
- Authenticate to your Azure account using the login command.
- Use the following command to get the Action Group object:
$ActionGroup = Get-AzActionGroup -ResourceGroupName "YourResourceGroup" -Name "YourActionGroup"
- Use the following command to set the email recipient list for the Action Group:
$ActionGroup.EmailReceivers = "email1@example.com;email2@example.com"
- 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.