From 3678481b4d24804e5152eb6321a97a44b8495c11 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Fri, 13 Jan 2023 13:11:08 +0100 Subject: [PATCH 1/2] Removed TEMP PS Deployment --- .../sharedScripts/Set-EnvironmentOnAgent.ps1 | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 b/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 index 0162f5ee41..103f871b88 100644 --- a/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 +++ b/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 @@ -248,21 +248,4 @@ function Set-EnvironmentOnAgent { } Write-Verbose ('Install-CustomModule end') -Verbose - - ##################################### - ## TEMP PowerShell installation ## - ##################################### - - # Update the list of packages - sudo apt-get update - # Install pre-requisite packages. - sudo apt-get install -y wget apt-transport-https software-properties-common - # Download the Microsoft repository GPG keys - wget -q "https://packages.microsoft.com/config/ubuntu/`$(lsb_release -rs)/packages-microsoft-prod.deb" - # Register the Microsoft repository GPG keys - sudo dpkg -i packages-microsoft-prod.deb - # Update the list of packages after we added packages.microsoft.com - sudo apt-get update - # Install PowerShell - sudo apt-get install -y powershell } From b90f83e5c433dae9662aedba24daf51d3912dd51 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Thu, 9 Feb 2023 16:59:55 +0100 Subject: [PATCH 2/2] Recovered code in a commented state --- .../sharedScripts/Set-EnvironmentOnAgent.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 b/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 index 103f871b88..86fd778dd5 100644 --- a/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 +++ b/utilities/pipelines/sharedScripts/Set-EnvironmentOnAgent.ps1 @@ -134,6 +134,19 @@ function Set-EnvironmentOnAgent { Write-Verbose 'Powershell version:' -Verbose $PSVersionTable + # # Update the list of packages + # sudo apt-get update + # # Install pre-requisite packages. + # sudo apt-get install -y wget apt-transport-https software-properties-common + # # Download the Microsoft repository GPG keys + # wget -q "https://packages.microsoft.com/config/ubuntu/`$(lsb_release -rs)/packages-microsoft-prod.deb" + # # Register the Microsoft repository GPG keys + # sudo dpkg -i packages-microsoft-prod.deb + # # Update the list of packages after we added packages.microsoft.com + # sudo apt-get update + # # Install PowerShell + # sudo apt-get install -y powershell + ########################### ## Install Azure CLI ## ###########################