To run the script ensure the AzureRM powershell module has been installed. It can be installed by running the following command:
Install-Module AzureRM
.
ExtendAzureVMOSDiskSize.ps1 will extend the size of the VM's OS disk. The script is currently set to resize to 1tb. Change RG, Subscription, and VM information and enjoy the modified disk size.