arcus-azure / arcus.scripting

Scripting with Microsoft Azure in a breeze.
https://scripting.arcus-azure.net/
MIT License
9 stars 11 forks source link

fix: Linux Powershell update #420

Closed pim-simons closed 7 months ago

pim-simons commented 7 months ago

Add Import-Module Microsoft.PowerShell.Management -Force to fix the linux powershell update task in the pipeline.

netlify[bot] commented 7 months ago

Deploy Preview for arcus-scripting canceled.

Name Link
Latest commit d25d1f67fdf740e4c646b62c89dc32f2fba862ca
Latest deploy log https://app.netlify.com/sites/arcus-scripting/deploys/655c5ffd073cc500082aabf4
pim-simons commented 7 months ago

Strange that we need this, is this a breaking change on the DevOps machine?

Indeed strange, since earlier this week we are getting this error:

Test-Path: /home/vsts/work/_temp/459fcf8a-2715-48a9-9f20-a0cb1acad4bc.ps1:4 Line | 4 | if (!(Test-Path -LiteralPath variable:LASTEXITCODE)) { | ~~~~~ | The 'Test-Path' command was found in the module | 'Microsoft.PowerShell.Management', but the module could not be loaded. | For more information, run 'Import-Module | Microsoft.PowerShell.Management'.

Haven't changed anything in the pipelines, but this PR should fix it 👍🏻