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 built a custom Ubuntu VHD on blob storage using Packer and I'm trying to boot a VM using it but am getting this error:
* azurerm_virtual_machine.bastion: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="Cannot specify user image overrides for a disk already defined in the specified image reference."
Terraform Version
Terraform v0.11.5
Affected Resource(s)
Please list the resources as a list, for example:
azurerm_virtual_machine
.
Terraform Configuration Files
resource"azurerm_virtual_machine""bastion" {
name="bastion"location="${var.location}"resource_group_name="${var.name}"network_interface_ids=["${azurerm_network_interface.bastion.id}"]
vm_size="Standard_DS1_v2"# Uncomment this line to delete the OS disk automatically when deleting the VMdelete_os_disk_on_termination=true# Uncomment this line to delete the data disks automatically when deleting the VMdelete_data_disks_on_termination=truestorage_os_disk {
name="bastionosdisk"vhd_uri="https://acstackimages.blob.core.windows.net/system/Microsoft.Compute/Images/acs-vhds/acstack-1522124889-osDisk.8d0e099c-0ed0-483e-9d53-053057eb13b0.vhd"caching="ReadWrite"create_option="FromImage"
}
os_profile {
computer_name="bastion"admin_username="ubuntu"admin_password="Kangaroo-jeremiah-thereon1!"
}
os_profile_linux_config {
disable_password_authentication=truessh_keys=[{
path ="/home/ubuntu/.ssh/authorized_keys"
key_data ="${data.template_file.ssh-pub-key.rendered}"
}]
}
boot_diagnostics {
enabled="true"storage_uri="${var.storage_endpoint}"
}
connection {
host="${azurerm_public_ip.bastion.ip_address}"user="ubuntu"type="ssh"private_key="${data.template_file.ssh-private-key.rendered}"timeout="2m"agent=true
}
provisioner"remote-exec" {
inline=[
"sudo docker run -d -p 8080:80 nginx",
]
}
tags {
environment="staging"
}
}
Expected Behavior
Created an VM from an VHD on blob storage
Actual Behavior
* azurerm_virtual_machine.bastion: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameter" Message="Cannot specify user image overrides for a disk already defined in the specified image reference."
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered:
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
Mar 25, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've built a custom Ubuntu VHD on blob storage using Packer and I'm trying to boot a VM using it but am getting this error:
Terraform Version
Terraform v0.11.5
Affected Resource(s)
Please list the resources as a list, for example:
.
Terraform Configuration Files
Expected Behavior
Created an VM from an VHD on blob storage
Actual Behavior
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: