Skip to content

[New-AzResourceGroupDeployment] request canceled due to the configured HttpClient.Timeout of 100 seconds elapsing #22003

Open
@wsmelton

Description

@wsmelton

Description

Run New-AzResourceGroupDeployment with Bicep deployment and receive the errors with no error code provided.

Issue script & Debug output

If someone wants to provide a private file upload link, I can provide debug output...it's too much for me to try and anonymize.

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

Get-Module Az*

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.12.3                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     6.7.0                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}

Error output

HistoryId: 3

Message        : The deployment validation failed
StackTrace     :    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException)
                    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : System.InvalidOperationException
InvocationInfo : {New-AzResourceGroupDeployment}
Line           :                 $ResourceGroupDeployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$WhatIfPreference
                 
Position       : At C:\Users\smelton\OneDrive - redacted\Documents\PowerShell\Modules\BicepFlex\5.3.2\BicepFlex.psm1:1035 char:44
                 + … eployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$Wha …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 3

Message        : 8:15:19 AM - Error: Code=; Message=A task was canceled.
                 
StackTrace     : 
Exception      : System.Exception
InvocationInfo : {New-AzResourceGroupDeployment}
Line           :                 $ResourceGroupDeployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$WhatIfPreference
                 
Position       : At C:\Users\smelton\OneDrive - redacted\Documents\PowerShell\Modules\BicepFlex\5.3.2\BicepFlex.psm1:1035 char:44
                 + … eployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$Wha …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 3

Message        : 8:15:19 AM - Error: Code=; Message=A task was canceled.
                 
StackTrace     : 
Exception      : System.Exception
InvocationInfo : {New-AzResourceGroupDeployment}
Line           :                 $ResourceGroupDeployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$WhatIfPreference
                 
Position       : At C:\Users\smelton\OneDrive - redacted\Documents\PowerShell\Modules\BicepFlex\5.3.2\BicepFlex.psm1:1035 char:44
                 + … eployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$Wha …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 3

Message        : 8:15:18 AM - Error: Code=; Message=The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
                 
StackTrace     : 
Exception      : System.Exception
InvocationInfo : {New-AzResourceGroupDeployment}
Line           :                 $ResourceGroupDeployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$WhatIfPreference
                 
Position       : At C:\Users\smelton\OneDrive - redacted\Documents\PowerShell\Modules\BicepFlex\5.3.2\BicepFlex.psm1:1035 char:44
                 + … eployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$Wha …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 3


Message        : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
StackTrace     :    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException)
                    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : System.Threading.Tasks.TaskCanceledException
InvocationInfo : {New-AzResourceGroupDeployment}
Line           :                 $ResourceGroupDeployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$WhatIfPreference
                 
Position       : At C:\Users\smelton\OneDrive - redacted\Documents\PowerShell\Modules\BicepFlex\5.3.2\BicepFlex.psm1:1035 char:44
                 + … eployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$Wha …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 2

Message        : A task was canceled.
StackTrace     : 
Exception      : System.TimeoutException
InvocationInfo : {New-AzResourceGroupDeployment}
Line           :                 $ResourceGroupDeployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$WhatIfPreference
                 
Position       : At C:\Users\smelton\OneDrive - redacted\Documents\PowerShell\Modules\BicepFlex\5.3.2\BicepFlex.psm1:1035 char:44
                 + … eployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$Wha …
                 +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 2

Message        : A task was canceled.
StackTrace     :    at System.Net.Http.HttpConnectionResponseContent.<SerializeToStreamAsync>g__Impl|6_0(Stream stream, TransportContext context, CancellationToken cancellationToken)
                    at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
                    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
Exception      : System.Threading.Tasks.TaskCanceledException
InvocationInfo : {New-AzResourceGroupDeployment}
Line           :                 $ResourceGroupDeployment = New-AzResourceGroupDeployment @Deploy -Force -WhatIf:$WhatIfPreference

Metadata

Metadata

Labels

ARM - TemplatesService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions