Feb 19 2021
04:05 AM
- last edited on
May 24 2021
02:37 PM
by
TechCommunityAP
Feb 19 2021
04:05 AM
- last edited on
May 24 2021
02:37 PM
by
TechCommunityAP
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.
https://jrudlin.github.io/2019-08-27-shrink-azure-vm-osdisk/
https://github.com/jrudlin/Azure/blob/master/General/Shrink-AzDisk.ps1
Thanks.
Feb 22 2021 03:37 PM
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!
Feb 26 2021 11:27 PM
Feb 27 2021 01:29 AM