Skip to content

Commit 14f99ee

Browse files
[Doc-A-THon] Updating Code Block for output.
1 parent 5fde1ab commit 14f99ee

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

articles/virtual-machines/linux/detach-disk.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dmesg | grep SCSI
4141

4242
The output is similar to the following example:
4343

44-
```bash
44+
```output
4545
[ 0.294784] SCSI subsystem initialized
4646
[ 0.573458] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
4747
[ 7.110271] sd 2:0:0:0: [sda] Attached SCSI disk
@@ -89,10 +89,7 @@ sudo umount /dev/sdc1 /datadrive
8989
This example detaches the *myDataDisk* disk from VM named *myVM* in *myResourceGroup*.
9090

9191
```azurecli
92-
az vm disk detach \
93-
-g myResourceGroup \
94-
--vm-name myVm \
95-
-n myDataDisk
92+
az vm disk detach -g myResourceGroup --vm-name myVm -n myDataDisk
9693
```
9794

9895
The disk stays in storage but is no longer attached to a virtual machine.
@@ -116,4 +113,4 @@ The disk stays in storage but is no longer attached to a virtual machine. The di
116113
## Next steps
117114
If you want to reuse the data disk, you can just [attach it to another VM](add-disk.md).
118115

119-
If you want to delete the disk, so that you no longer incur storage costs, see [Find and delete unattached Azure managed and unmanaged disks - Azure portal](../disks-find-unattached-portal.md).
116+
If you want to delete the disk, so that you no longer incur storage costs, see [Find and delete unattached Azure managed and unmanaged disks - Azure portal](../disks-find-unattached-portal.md).

0 commit comments

Comments
 (0)