Azure Directory B2C Custom Policy DevOps (504) Gateway Timeout

Khalid Usman 56 Reputation points
2022-05-13T10:04:12.273+00:00

Hi,

I have AD B2C custom ploicy release pipeline in Azure DevOps. Everythig was working fine but recentlty my pipeline is failing due to (504) Gateway Timeout.

The error I'm getting is below;

Invoke-RestMethod : The remote server returned an error: (504) Gateway Timeout.
At D:\a\1\s\custom-scripts\custom-policies-test-deployment-script.ps1:50 char:17

  • ... $response = Invoke-RestMethod -Uri $graphuri -Method Put -Body $polic ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
    eption
  • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,004 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,829 questions
{count} votes

13 additional answers

Sort by: Oldest
  1. SethSharp 26 Reputation points
    2022-05-13T11:48:46.537+00:00

    I am also experiencing the same issue with the custom policy upload powershell task.

    When I run this script locally it is very intermittent, frequent 504 timeouts and occasional successful policy uploads.

    In the release pipeline it always gives the 504 error. It was working before without issue. Started seeing error, when trying to deploy yesterday.


  2. j.purr 1 Reputation point
    2022-05-13T17:47:27.56+00:00

    We have this problem as well

    0 comments No comments

  3. Rets 21 Reputation points
    2022-05-16T20:08:12.187+00:00

    We are also facing the same issue. @AmanpreetSingh-MSFT Could you please help us out here? Also, I have noticed the portal is also very slow today and sometimes is not responding on IEF.

    0 comments No comments

  4. Sameer Salunke 91 Reputation points
    2022-05-16T20:14:49.683+00:00

    We are also facing this issue.

    0 comments No comments