I have a VM in zone 1 and 2 and a disk in zone 1, but when I run my script it fails with the following message:
AttachVolume.Attach failed for volume "disk-name" : rpc error: code = Unknown desc =
Attach volume /subscriptions/subscription-id/resourceGroups/xxxxx_westeurope/providers/Microsoft.Compute/disks/disk-name to instance virtual-machine-name failed with Retriable: false, RetryAfter: 0s, HTTPStatusCode: 400,
RawError: {
"error": {
"code": "BadRequest",
"message": "Disk /subscriptions/subscription-id/resourceGroups/xxxxx_westeurope/providers/Microsoft.Compute/disks/disk-name cannot be attached to the VM because it is not in the same zone as the VM. VM zone: '2'. Disk zone: '1'."
}
}
I've kind of tried everything now and have no idea how to solve this. Are there issues with machines running in multiple zones and disks running in a single zone?
[Edit]
It has worked until now, and now it fails. I solved the same issue the other day by setting the scale of the k8s deployment to 0 and restarting, but it's not working now