NetSuite redirect fails with bad SAML request on Azure
<p>I have setup SSO with Netsuite and Azure using the following instructions:</p>

<blockquote>
  <p><a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-saas-netsuite-tutorial/" rel="nofollow">https://azure.microsoft.com/en-us/documentation/articles/active-directory-saas-netsuite-tutorial/</a>.</p>
</blockquote>

<p>The SSO works for users from Office 365 to NetSuite, however if a user clicks on a NetSuite link in an email they receive an invalid SAML protocol message from Azure during authentication.</p>

<p>For example:
Email Link is </p>

<blockquote>
  <p>"https:\system.netsuite.com/app/accounting/transactions/purchord.nl?id=167770&amp;c={ACCOUNT_ID}"</p>
</blockquote>

<p>Get redirected to (by NetSuite)</p>

<blockquote>
  <p>"https:\login.windows.net/9621cdc8-e1c4-4a3c-849e-35be6db5a45e/saml2"</p>
</blockquote>

<p>which then redirects to :</p>

<blockquote>
  <p>"https:\login.microsoftonline.com/9621cdc8-e1c4-4a3c-849e-35be6db5a45e/saml2?RelayState=https%3A%2F%2Fsystem.netsuite.com%2Fapp%2Faccounting%2Ftransactions%2Fpurchord.nl%3Fid%3D167770%26c%3D{ACCOUNT_ID}"</p>
</blockquote>

<p>which generates error:</p>

<p>Sign In
Sorry, but we’re having trouble signing you in.
We received a bad request.</p>

<p>Additional technical information:
Correlation ID: a8ceee9f-8507-4f55-aa56-e65266bf7d92
Timestamp: 2016-04-13 05:18:07Z
AADSTS75005: The request is not a valid Saml2 protocol message.</p>

<p>Does anyone have any ideas how to get further details on the error, or fix it?</p>