Skip to content

1 FAQ: VirtualMachine's data disk cannot be updated

Yuwei Zhou edited this page May 13, 2019 · 2 revisions

Till to version v2.8.x, azure_rm_virtualmachine doesn't support data_disk update at all. If user want to modify the data_disk item, use azure_rm_manageddisk to manage it (Named as azure_rm_managed_disk if version less than 2.8.0).

In azure_rm_manageddisk module, the managed_by option can attach/detach the disk to a VM with cache option as attach_caching.

  • If both of this option are not defined, nothing will be changed.
  • If user wants to detach the disk to a VM, explicitly set the managed_by to empty string ''.

Example can be found at: Sample playbook