To reduce the size of the active disk from 127 GB to 256 GB in Azure, you will need to follow these steps:
Stop the virtual machine that uses the disk you want to resize. You can do this through the Azure Portal or using Azure PowerShell.
Once the virtual machine has been stopped, go to the "Disks" section of the virtual machine and select the disk you want to resize.
Click on "Size + performance" to bring up the disk properties.
In the "Size (GiB)" field, enter the new size you want to resize the disk to (in this case, 256 GB).
Click on "Save" to resize the disk.
Start the virtual machine again.
Note that when you resize a disk, any data on the disk is preserved. However, it's always a good practice to back up your data before making any changes to disk sizes.
Regarding the warning message you received, it means that you need to either stop the virtual machine or detach the disk from the virtual machine before you can resize the disk. Once you stop the virtual machine, you will be able to resize the disk.
connect with me on blog