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,005 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,847 questions
{count} votes

13 additional answers

Sort by: Most helpful
  1. 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

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

    We are also facing this issue.

    0 comments No comments

  3. kirill.kolesnikov 21 Reputation points
    2022-05-18T11:05:08.887+00:00

    We are also facing the same issue

    0 comments No comments

  4. SethSharp 26 Reputation points
    2022-05-18T19:39:57.827+00:00

    Still getting timeouts with this.

    Any eta for a fix?

    The way the environment is currently set up, I will not be able to release as only the maintenance app reg has permission to upload these files from the ADO pipeline.

    0 comments No comments