Adding Notification Email to Body of Add-MgServicePrincipalTokenSigningCertificate

Bishka, Alex 1 Reputation point
2022-12-20T23:36:51.12+00:00

Running this tutorial to try to automate SAML SSO to my use case.

I was wondering if it was possible to configure the SAML Certificates section, specifically the Token signing certificate with a notification email parameter. There doesn't seem to be anything in the docs for this. I tried adding it as a parameter to the tutorial code (listed below), but it seemed to do nothing.

Tutorial code:

   Import-Module Microsoft.Graph.Applications  
     
   $params = @{  
   	DisplayName = "CN=AWSContoso"  
   	EndDateTime = [System.DateTime]::Parse("2024-01-25T00:00:00Z")  
   }  
     
   Add-MgServicePrincipalTokenSigningCertificate -ServicePrincipalId $servicePrincipalId -BodyParameter $params  

I am not super familiar with configuring SAML certificates - is this field even necessary for a trust to work? It does not state Optional in the portal like other fields, but rather Missing. This indicates to me that I likely need it. If it is necessary and this cmdlet does not support it, are there alternative solutions to adding this field programmatically?

Again, happy to provide an extra information needed.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,518 questions
{count} votes