From 792b6c7820b329a7e28da816d46da2298b3ed06b Mon Sep 17 00:00:00 2001 From: Alexis Opolka <53085471+alexis-opolka@users.noreply.github.com> Date: Tue, 20 Jun 2023 08:54:21 +0200 Subject: [PATCH] Incorrect powershell module locations fix (#18377) (#26074) Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com> --- .../building-and-testing-powershell.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/actions/automating-builds-and-tests/building-and-testing-powershell.md b/content/actions/automating-builds-and-tests/building-and-testing-powershell.md index 88fe3f8ddb..b22b4de348 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-powershell.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-powershell.md @@ -95,6 +95,12 @@ The table below describes the locations for various PowerShell modules in each { {% endrowheaders %} +{% note %} + +**Note:** On Ubuntu runners, Azure PowerShell modules are stored in `/usr/share/` instead of the default location of PowerShell add-on modules (i.e. `/usr/local/share/powershell/Modules/`). + +{% endnote %} + ## Installing dependencies {% data variables.product.prodname_dotcom %}-hosted runners have PowerShell 7 and Pester installed. You can use `Install-Module` to install additional dependencies from the PowerShell Gallery before building and testing your code.