Hi @Vaish, Himanshu ,
Based on this related Github issue, it looks like you can configure these SSO settings (including Relay State) by calling Microsoft Graph API directly with az rest (but not with az ad). The instructions to Automate SAML-based SSO configuration are documented here: https://learn.microsoft.com/en-us/graph/application-saml-sso-configure-api?tabs=http%2Cpowershell-script
You should be able to update the relayState under samlSingleSignOnSettings. See Update-MgServicePrincipal
https://learn.microsoft.com/en-us/graph/api/resources/samlsinglesignonsettings?view=graph-rest-1.0
Let me know if this is what you are looking for and meets your requirement. If you provide more details about your use case I would be happy to pass feedback along to the product team. You are also welcome to leave your own feedback in the Ideas portal: https://feedback.azure.com/
-
If the information helped you, please Accept the answer. This will help us and other community members as well.