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

0.9.8 ARM: New-AzureResourceGroupDeployment -storageaccountName template locking

Open robplank opened this issue 11 years ago • 3 comments

please remove the lock placed on the template file once it is uploaded to the storage account.

When doing multiple deployments to the same storage account that use the same template file, this results in failed deployments

Error Meesage DeploymentActive: Unable to edit or replace deployment 'DeploymentTemplateFile': previous deployment from '9/28/2015 4:16:21 PM' is still active

Desired Action

the ability to deploy ARM templates in a foreach -parallel loop without errors

Foreach -parallel($VM in $VMs) { $Param = @()

AzureResourceManager\New-AzureResourceGroupDeployment -ResourceGroupName $ResourceGroup -TemplateUri '.\DeploymentTemplateFile.json' -TemplateParameterObject $Params -storageaccountNameFromTemplate $storageAccount

}

robplank avatar Sep 28 '15 16:09 robplank

This should not be an issue in PowerShell 1.0 and beyond. The storage account does not need to be specified now.

ravbhatnagar avatar Dec 11 '15 02:12 ravbhatnagar

Not sure this is fixed. Please see my comment here.

GrahamDSmith avatar Feb 18 '16 23:02 GrahamDSmith

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rthorn17

ghost avatar Aug 14 '19 19:08 ghost