Unable to append the notification email addresses on separate fields in Azure Service principal's SAML certificate notification email field.
I've tried the below; however, it adds to the existing notification email but not on separate notification email fields in Azure.
Notification email fields in Azure
$ServicePrincipalIDs = Get-Content C:\temp\spIds.txt Foreach($ServicePrincipalID in $ServicePrincipalIDs)
{
$SP1 = Get-MgServicePrincipal -ServicePrincipalId "$ServicePrincipalID"
$SPDisplayName = $SP1.AppDisplayName
$SP1NotificationDetails = $SP1.NotificationEmailAddresses += "hello@abc.com"
Update-MgServicePrincipal -ServicePrincipalId "$ServicePrincipalID" -NotificationEmailAddresses "$SP1NotificationDetails"
}
Can you please let me know how do I append the email addresses instead of replacing the emails.