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.
978 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,664 questions
{count} votes

13 additional answers

Sort by: Most helpful
  1. Nelum Weerakoon 11 Reputation points
    2022-05-20T02:32:24.203+00:00

    We are also facing the same. Do we have any updates on a solution?

    2 people found this answer helpful.
    0 comments No comments

  2. Sameer Salunke 91 Reputation points
    2022-05-16T22:47:38.013+00:00

    Just got an update from Microsoft, their product group team working on it. No ETA.

    1 person found this answer helpful.

  3. 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.


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

    We have this problem as well

    0 comments No comments