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
Am trying to add some tags to an existing VM resource but get the below error. I've tried ignoring changes on OS Profile, OS Profile_Windows_Config and additional_unattend_config without sucess.
azurerm_virtual_machine.session1: compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=409 Code="PropertyChangeNotAllowed" Message="Changing property 'windowsConfiguration.additionalUnattendContent.content' is not allowed."
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered:
Hi jsw1993, please check if you use the latest version of the terraform azurerm provider. The error you experience is likely what has been fixed in #377. The fix is included in version >= 0.3.0.
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 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Apr 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi.
Am trying to add some tags to an existing VM resource but get the below error. I've tried ignoring changes on OS Profile, OS Profile_Windows_Config and additional_unattend_config without sucess.
Any help would be appreciated.
Terraform Version
Tested on Terraform v0.10.2 and v0.10.7
Affected Resource(s)
azurerm_virtual_machine
Terraform Files
resource "azurerm_virtual_machine" "session1" {
name = "${var.prefix}SESSION01"
location = "${var.location}"
resource_group_name = "${azurerm_resource_group.main.name}"
network_interface_ids = ["${azurerm_network_interface.session1-1.id}"]
vm_size = "${var.sh1size}"
storage_image_reference {
publisher = "MicrosoftWindowsServer"
offer = "WindowsServer"
sku = "2016-Datacenter"
version = "latest"
}
storage_os_disk {
name = "${var.prefix}SESSION01-OS"
caching = "ReadWrite"
create_option = "FromImage"
managed_disk_type = "Standard_LRS"
}
os_profile {
computer_name = "${var.prefix}SESSION01"
admin_username = "${var.ladminusername}"
admin_password = "${var.ladminpassword}"
custom_data = "${base64encode("Param ${file("ConfigureWinRM.PS1")}")}"
}
os_profile_windows_config {
provision_vm_agent = "true"
enable_automatic_upgrades = "false"
additional_unattend_config {
pass = "oobeSystem"
component = "Microsoft-Windows-Shell-Setup"
setting_name = "AutoLogon"
content = "${var.ladminpassword}true1${var.ladminusername}"
}
additional_unattend_config {
pass = "oobeSystem"
component = "Microsoft-Windows-Shell-Setup"
setting_name = "FirstLogonCommands"
content = "${file("FirstLogonCommands.xml")}"
}
}
tags {
}
}
Expected Behavior
Tag should be added to VM
Actual Behavior
Error applying plan:
1 error(s) occurred:
azurerm_virtual_machine.session1: 1 error(s) occurred:
azurerm_virtual_machine.session1: compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=409 Code="PropertyChangeNotAllowed" Message="Changing property 'windowsConfiguration.additionalUnattendContent.content' is not allowed."
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: