microsoft / AzureAutomation-Account-Modules-Update

An Azure Automation runbook that updates Azure modules imported into an Azure Automation account with module versions available on the PowerShell Gallery.
MIT License
75 stars 155 forks source link

this has been abandoned - Microsoft has left us no way to update our modules. #47

Open ghost opened 2 years ago

ghost commented 2 years ago

this fails to run, also the built in UI fails to update all AZ modules, we need AZ.accounts to be updated to install other modules, but we can't update it.

ghost commented 2 years ago

Invoke-WebRequest: C:\Temp\ii5glueu.hmc\9a8655eb-2d9a-4593-9def-25c136e69f6d.ps1:423 Line | 423 | … ofileURL = (Invoke-WebRequest -Uri $ModuleContentUrl -MaximumRedirect … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Object moved Object moved to here. MethodInvocationException: C:\Temp\ii5glueu.hmc\9a8655eb-2d9a-4593-9def-25c136e69f6d.ps1:425 Line | 425 | $WebClient.DownloadFile($ProfileURL, $ProfilePath) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Exception calling "DownloadFile" with "2" argument(s): "Value cannot be | null. (Parameter 'address')" Invoke-WebRequest: C:\Temp\ii5glueu.hmc\9a8655eb-2d9a-4593-9def-25c136e69f6d.ps1:429 Line | 429 | … ationURL = (Invoke-WebRequest -Uri $ModuleContentUrl -MaximumRedirect … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Object moved Object moved to here. MethodInvocationException: C:\Temp\ii5glueu.hmc\9a8655eb-2d9a-4593-9def-25c136e69f6d.ps1:431 Line | 431 | $WebClient.DownloadFile($AutomationURL, $AutomationPath) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Exception calling "DownloadFile" with "2" argument(s): "Value cannot be | null. (Parameter 'address')" Expand-Archive: C:\Temp\ii5glueu.hmc\9a8655eb-2d9a-4593-9def-25c136e69f6d.ps1:439 Line | 439 | Expand-Archive -Path $ProfilePath -DestinationPath $ProfileUnzipP … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | The path 'C:\Users\Client\Temp\Az.Accounts.zip' either does not exist or | is not a valid file system path. Expand-Archive: C:\Temp\ii5glueu.hmc\9a8655eb-2d9a-4593-9def-25c136e69f6d.ps1:441 Line | 441 | Expand-Archive -Path $AutomationPath -DestinationPath $Automation … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | The path 'C:\Users\Client\Temp\Az.Automation.zip' either does not exist | or is not a valid file system path. Import-Module: C:\Temp\ii5glueu.hmc\9a8655eb-2d9a-4593-9def-25c136e69f6d.ps1:444 Line | 444 | Import-Module (Join-Path $ProfileUnzipPath ($ProfileModuleName + …