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
Trying to attach an existing disk on VM being provisioned on Azure, getting error as such:
* azurerm_virtual_machine.kafka_vm: compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=409 Code="PropertyChangeNotAllowed" Message="Changing property 'dataDisk.name' is not allowed."
I tried to provide ""for the name, but it errored out telling me that I must provide name. Any pointers on what am I doing wrong? Could it be that a problem is related to #85
Thanks!!
The text was updated successfully, but these errors were encountered:
Answering my own question: It looks like if disk_size_gb is provided wrong (i.e., existing disk_size_gb = 20, but provided in terraform plan the number is wrong - example 30 ), then Terraform errors out with this obscure message. The problem is not in disk name, but in disk size, however reported message references the name of the disk
Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 --
Original Error: autorest/azure: Service returned an error. Status=<nil> Code="PropertyChangeNotAllowed" Message="Changing property 'dataDisk.createOption' is not allowed." Target="dataDisk.createOption"
on modules/ApplicationServer/main.tf line 25, in resource "azurerm_virtual_machine" "main-rg__appvm":
25: resource azurerm_virtual_machine main-rg__appvm {
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Feb 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Greetings,
Environment:
Problem:
Trying to attach an existing disk on VM being provisioned on Azure, getting error as such:
Here is vm.tf snippet:
..where
managed_disk_id
is a variable (i.e.,$var.kafka_data_image_id
) defined with a full path to the existing disk. Example:I tried to provide
""
for the name, but it errored out telling me that I must provide name. Any pointers on what am I doing wrong? Could it be that a problem is related to #85Thanks!!
The text was updated successfully, but these errors were encountered: