Using Terraform to add a Disk from a different cloud zone to existing Aria Automation VM deployment failed with error "Unable to provision disk as disk and compute storage are not compatible"
search cancel

Using Terraform to add a Disk from a different cloud zone to existing Aria Automation VM deployment failed with error "Unable to provision disk as disk and compute storage are not compatible"

book

Article ID: 403100

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

Using the Aria Automation Terraform provider the aim is to create or update a VM deployment to add a VM with an additional disk.

  • But when adding the disk first, targeted for a different cloud zone then the existing VM, then the disk allocation will fail with error "Unable to provision disk as disk and compute storage are not compatible"
  • When however adding the VM first, also a different cloud zone then the already deployed VM, and then adding an additional disk it works fine

 

Environment

Aria Automation 8.x

Aria Automation Terraform Provider

Cause

The product is working as intended, the reason for this behaviour is that when adding a disk to an existing deployment it will validate the disk placement does match the existing VM placement.

Using out of the box functionality such deployment is not possible and can only be achieved using API or the Aria Automation Terraform provider.

Resolution

To avoid the issue, simply deploy the additional VM first and then add the additional disk to it. This way it the disk allocation does validated the placement for the new VM which should match as otherwise the disk would be unusable.