Microsoft Entra Suite Tech Accelerator
Aug 14 2024, 07:00 AM - 09:30 AM (PDT)
Microsoft Tech Community

Powershell script to reduce OS disk size in Azure is safe to run?

Copper Contributor

Hi... I am new at Azure and not familiar with PowerShell scripts. I found following method to reduce the OS disk size via script. I want to know is it safe and secure to run this script? Since the script seems granting some permissions (with admin rights), any possible security, data theft/lost etc or any other issues? I just want to make sure script is COMPLETELY safe and secure to run.

Looking for kind feedback please.


3 Replies

Hi @MSTECH20332,

I'm Mouad, and I'm glad to be able help you.


I did a lookup in the provided script from github, I confirm it is safe, nothing harmful, but you should make a backup, you can go through each line of the script which is well commented, also all operations will depend on the parameters you pass without any external address or something suspicious.


Hope it helps! 

Thanks for your confirmation and help.
It's all my pleasure! Welcome