Hi,
I try to update an existing resource group with the New-AzureResourceGroup powershell command from the Azure Resource Group cmdlet.
I'm using Visual Studio 2016, Azure SDK 2.7 and the 'Resource Group' project template.
When I deploy to an existing resource group, i'm receiving the following error for resources that already exist:
"[ERROR] New-AzureResourceGroup : 18:02:31 - Resource Microsoft.Storage/storageAccounts
18:02:31 - [ERROR] 'someResource' failed with message 'The storage account named
18:02:31 - [ERROR] someResource is already taken.'"
If I understand correct from this documents
"https://azure.microsoft.com/en-gb/documentation/articles/resource-group-overview/" and
"https://azure.microsoft.com/en-gb/documentation/articles/resource-group-template-deploy/"
New-AzureResourceGroup will add the new resources and update existing.
The question is, how can I avoid the error message?
This is a snipped from the ps script that is generated by the VS project and executed:
New-AzureResourceGroup -Name $ResourceGroupName ` -Location $ResourceGroupLocation ` -TemplateFile $TemplateFile ` -TemplateParameterFile $TemplateParametersFile ` @OptionalParameters ` -Force -Verbose
Thanks