azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

New-AzureRmResourceGroupDeployment : There were not enough free threads in the ThreadPool to complete the operation.

Open brisebois opened this issue 11 years ago • 13 comments

Got this issue many times while deploying this template https://github.com/brisebois/multi-geo-arm-experiment/blob/master/OnAndOff/Templates/azuredeploy-multi-geo.json

New-AzureRmResourceGroupDeployment : There were not enough free threads in the ThreadPool to complete the operation. At line:4 char:1

  • New-AzureRmResourceGroupDeployment -ResourceGroupName 'geoexperiment' ...
  • - CategoryInfo          : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], InvalidOperationException
    - FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Azure.Commands.Resources.NewAzureResourceGroupDeploymentCommand
    
    

It seems to be a client-side issue because my deployments kept going even after the PowerShell console was stopped by this error message.

brisebois avatar Dec 02 '15 21:12 brisebois

I got this on a custom template where I'm deploying a few VMs and using DSC extension.

wahidsaleemi avatar Jan 08 '16 23:01 wahidsaleemi

Is there any progress on this issue? I have also started experiencing this issue since upgrade to v1.1.0

Vijayaraghavanl avatar Jan 19 '16 15:01 Vijayaraghavanl

Yes, I have the same problem. My template has the DSC extension with an LCM configuration for the Azure pull server.

autocloudarc avatar Jan 27 '16 04:01 autocloudarc

@vivsriaus - Please investigate.

ravbhatnagar avatar Feb 11 '16 19:02 ravbhatnagar

@TianoMS lets see if we can get a repro on this.

ravbhatnagar avatar Apr 29 '16 22:04 ravbhatnagar

@wahidsaleemi @Vijayaraghavanl @unisol14 - Can you please share the template? It will help us investigate this issue? Feel free to omit any sensitive information.

ravbhatnagar avatar May 06 '16 21:05 ravbhatnagar

Closing this due to lack of repro. @wahidsaleemi @Vijayaraghavanl @unisol14 - We have fixed a bunch of related issues recently. If you run into this again using the latest version of Azure PowerShell, please open this issue again.

ravbhatnagar avatar May 19 '16 00:05 ravbhatnagar

What version of Azure PowerShell are you referring to? I just received the same issue while deploying a custom template. This is an intermittent issue.

New-AzureRmResourceGroupDeployment : There were not enough free threads in the ThreadPool to complete the operation. At line:1 char:1

  • new-AzureRmResourceGroupDeployment -ResourceGroupName rg-vm-svrtestXXX...
  • - CategoryInfo          : CloseError: (:) [New-AzureRmResourceGroupDeployment], InvalidOperationException
    - FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupDeploymentCommand
    

bbollard avatar Jun 06 '16 13:06 bbollard

@bbollard - Is it possible for you share the template? Feel free to strip out sensitive information. I was referring to the 1.5.0 module of Azure PowerShell.

Reopening since we might get a repro.

ravbhatnagar avatar Jun 06 '16 21:06 ravbhatnagar

@ravbhatnagar here it is.

NotEnoughThreadsInThreadPoolTemplate.zip

bbollard avatar Jun 07 '16 11:06 bbollard

@ravbhatnagar Please close if this is fixed, or assign to the appropriate milestone, if not.

markcowl avatar Sep 12 '16 19:09 markcowl

@ravbhatnagar can you take a look?

cormacpayne avatar Mar 27 '18 22:03 cormacpayne

Closing since there has been no update since 2016. If this is still a problem, please file a new issue.

markcowl avatar Apr 10 '18 22:04 markcowl