Closed AskeHolst closed 7 months ago
You are right that the error is out of our hands, but I will improve the error message. Also, I will set
$ProgressPreference = "SilentlyContinue"
Which might prevent the error message altogether.
The "funny" thing is that the function failing is New-AzStorageContext - why in earth would that need a percentage complete indicator????
Yeah, seems it was already found and fixed https://github.com/Azure/azure-powershell/issues/20489 and here https://github.com/Azure/azure-powershell/issues/17743 But if the old buggy version is used, that is of course still a problem.
In both of these bugs, it is setting the blob that makes the percentage go beyond 100. In your sample, it was creating the context... - but I guess there is similar code behind...
I get the error below in the Deliver step, but when rerunning it delivers correctly. So there is some randomness to it. The error given to the user "Error: StorageContext secret is malformed..." is a red herring, I guess you just catch all errors and assume it was a problem with the StorageContext.
Note the part "Error was: Cannot set percent because PercentComplete cannot be greater than 100. Parameter name: value Actual value was 101."
Not a big issue, we can just rerun if it happens again, more to let you know about a potential bug lurking somewhere, but maybe that is Az.Storage?