Objective:
The purpose of this documentation is to outline the steps involved in resizing disks for the entire pool of virtual machines (VMs). This process ensures efficient management and scalability while avoiding unnecessary creation of old disks.
Process Overview:
The disk resizing process consists of two main steps: updating the needed or new storage/ disk size in the Workspot Control Database (Control DB) and resizing the disks for the existing VMs in the Azure environment.
Step 1: Update Control DB
Raise a Change Management (CM) request to the Engineering team for updating the pool SKU and disk size parameters in the Workspot Control DB. Ref CM # https://o1works.atlassian.net/browse/CM-3950
Step 2: Resize VM Disks
After completion of Step1, proceed to resize the disks for the existing VMs in Azure. This can be achieved by using PowerShell script (.ps1) or Manually One VM after another.
Manual Resize:
For each VM in the pool, manually resize the disks through the Azure Portal.
Navigate to each VM, select the disk, and adjust the size accordingly.
Automated Resize (using .ps1 script):
Prepare a list of VMs in a text file (e.g., Customer_Pool_VMs.txt).
Execute the provided PowerShell script to automate the disk resizing process.
Step 3: Extend Disks from OS Level
After resizing the disks of all VMs, extend the disks to their maximum capacity within operating system (OS) level.
Connect to each VM and perform the necessary disk extension from within the OS or integrate the disk expansion script with the Resize Disk script and run the Automation script.
Please Note:
Ensure that the VM list is prepared and stored in a text file before executing the PowerShell script. This list should include all VMs that require disk resizing.
Following these steps ensures a seamless process for resizing disks in a pool of VMs, providing flexibility and scalability to accommodate evolving storage requirements.
Copy all the VMs list to a notepad and create .txt file to input to the script.
Upload the VM list file above and the Disk Expansion script to the Azure Cloud Shell.

Process to run this script in the Azure Cloud Shell:
Use the below PowerShell script in the Azure cloud shell to resize the disk “foreach” VM and expand the disk in OS.
Open the below VM-Disk_ReSize.ps1 and make the necessary changes to link the input file and linked scripts (Disk_Expansion_Script.ps1) and run the VM-Disk-Resize.ps1 in the Azure cloud shell.
(This can be done either by running the script file or copy/ paste the script content in the cloud shell directly)

Open the Azure Cloud Shell once login to the Subscription:

Upload the 2 files the vmlist.txt & Disk_Expansion_Script.ps1 by using the Upload/ Download button
Copy the script content of the VM-Disk-ReSize.ps1 and past in the Azure Cloud Shell and execute it by hitting ‘enter’.
The script will ask for the needed size of the disk and provide the new disk size.
Then hit ‘enter’ to execute the complete script at the end.

Now monitor the VM that targeted to resize based on the VM list. The progress will be looks like below:
Once the script/ operation completed, the expected results would be as below as the VM disk has resized to the needed size & it has extended in the OS level as well and show the results with previous and present size.
Executing the provided PowerShell script in the Azure Cloud Shell allows for the efficient resizing of disks for specified VMs. Monitor the progress in the shell to ensure successful execution.