Can u attach azure vm or you can’t attach disks to a running VM?
No, you cannot attach a data disk to an Azure virtual machine that is running. The VM must be stopped before you can attach or detach a data disk. This is because attaching or detaching a data disk involves making changes to the VM’s storage configuration, which can only be done when the VM is not running.
When you attach a data disk to a VM, Azure creates a new disk LUN (logical unit number) and adds it to the VM’s storage configuration. The VM’s operating system then needs to recognize the new disk and make it available for use. This process cannot be done while the VM is running, as it would require the operating system to lock the disk in order to make the changes.
Similarly, when you detach a data disk from a VM, Azure removes the disk LUN from the VM’s storage configuration. The VM’s operating system then needs to release the lock on the disk and make it unavailable for use. This process also cannot be done while the VM is running, as it would require the operating system to lock the disk in order to release the lock.
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
- Introduction to System Operations (SymOps) - October 30, 2024