In Azure DevOps pipeline, I have written a PowerShell script in variables for storage are defined, those variables will be given while running the pipeline. I need to take those variable show as GB.
Here in below example x,y,z values given in pipeline like 256, 512, 1024. Those values should be considered as 256GB, 512GB, 1024GB in my PowerShell script
In the same code I need to give 3 TB value to variable
$Maxsize
. Did I mentioned in correct format or is there any other format?
PowerShell script:
$sum = $x+$y+$z
$Maxsize = 3 / 1TB