You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented the remote backend, and that part seems to be working. The first run of the pipeline creates a VM from an image with no errors. When I run the pipeline a second time (after first deleting the previous VM) I get this error:
2022-11-23T22:13:38.9456834Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mcompute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status= Code="ConflictingUserInput" Message="Disk boot-osdisk already exists in resource group BOOK.RG. Only CreateOption.Attach is supported." Target="/subscriptions/68fab0aa-ab1e-4e09-a325-46ec73e30541/resourceGroups/book.rg/providers/Microsoft.Compute/disks/boot-osdisk"�[0m
This leads to this issue filed against terraform-provider-azurerm:
It looks like Terraform cannot be executed multiple times from an Azure pipeline to recreate a VM, or to create a separate VM each time it is executed.. I need to be able to create multiple VMs from an image. Is Terraform the right approach for this use case?
The text was updated successfully, but these errors were encountered:
I've implemented the remote backend, and that part seems to be working. The first run of the pipeline creates a VM from an image with no errors. When I run the pipeline a second time (after first deleting the previous VM) I get this error:
2022-11-23T22:13:38.9456834Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mcompute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status= Code="ConflictingUserInput" Message="Disk boot-osdisk already exists in resource group BOOK.RG. Only CreateOption.Attach is supported." Target="/subscriptions/68fab0aa-ab1e-4e09-a325-46ec73e30541/resourceGroups/book.rg/providers/Microsoft.Compute/disks/boot-osdisk"�[0m
This leads to this issue filed against terraform-provider-azurerm:
The leads to this issue filed against terrafrom-provider-azuremr
It looks like Terraform cannot be executed multiple times from an Azure pipeline to recreate a VM, or to create a separate VM each time it is executed.. I need to be able to create multiple VMs from an image. Is Terraform the right approach for this use case?
The text was updated successfully, but these errors were encountered: