SAML2 and Azure troubles

Currently having an issue integrating SAML2 into our dashboard.
We’ve followed the documentation and have run into a dead end:

Our SAML2 settings are mirrored to those in the documentation, so we are unsure what the issue is. When attempting to navigate to https://dashboard.domain.com/saml2/acs it states:

This page isn’t working

dashboard.domain.com is currently unable to handle this request.

HTTP ERROR 500

Anyone have any ideas?

Product: PowerShell Universal
Version: 3.7.14

You will want to check the logs on the server for a more detailed error message. In Azure, you can use the Kudu portal to view logs. Logs are also written to log stream if you enable it.

Thanks Adam,

The logs show:
[ERR] An unhandled exception has occurred while executing the request.
System.Configuration.ConfigurationErrorsException: Unexpected entity id “https://sts.windows.net/..../” found when loading metadata for “https://sts.windows.net/…”.

We have our Azure application settings as such:
Identifier (Entity ID): https://dashboard…/sp
Reply URL (Assertion Consumer Service URL): https://dashboard…/Saml2/acs
App Federation Metadata URL: https://login.microsoftonline.com/..../federationmetadata/2007-06/federationmetadata.xml?appid=
Login URL: https://login.microsoftonline.com/..../saml2
Azure AD ID: https://sts.windows.net/..../
Logout URL: https://login.microsoftonline.com/....2/saml2

We pulled the Metadata Entity ID directly from the XML per the documentation. Could this be a misconfiguration with the Azure application?

In case visuals are easier, here’s a screen cap of the SSO settings page of the Azure application:

Looks like maybe we were impatient and replication hadn’t fully finished, or something. Today the issue is resolved and we’ve no idea why.