As of March 29th, Microsoft made the decision to publish new VM’s which archived a bunch of Az, Azure, and AzureRM modules.
The side effect of this was that when the deployment API scripts were run in Azure DevOps, it would throw an error when trying to load the Azure.Storage module.
'Azure.Storage' version 4.4.0 or greater is required. At C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\EpiCloud\0.13.15\EpiCloud.psm1:189 char:13 + throw "'Azure.Storage' version 4.4.0 or greater is requir ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: ('Azure.Storage'...er is required.:String) , RuntimeException + FullyQualifiedErrorId : 'Azure.Storage' version 4.4.0 or greater is required.
Until Optimizely (Episerver) puts in a fix to their EpiCloud scripts, I have put a fix into my scripts.
The fix will force install the Azure.Storage module into the scope of the release.
Write-Host "Installing Azure.Storage Powershell Module" Install-Module -Name Azure.Storage -Scope CurrentUser -Repository PSGallery -Force -AllowClobber
This will produce a warning in some situations, which can be ignored. This is quite hard to remove, at the moment. I will keep at it and see if I can make an update later.
My scripts, EpiCloud-Scripts, have been updated with the fix and are ready for use.