From d5c9389df1af39503e65938455186ec06aa0439e Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Fri, 7 Jun 2024 10:54:40 -0700 Subject: [PATCH] Updates for feedback --- eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 | 2 +- eng/common/scripts/Validate-Package.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 b/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 index ee55d23274d7..4707517d8cc0 100644 --- a/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 +++ b/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 @@ -9,7 +9,7 @@ function Get-DevOpsRestHeaders() $headerAccessToken = (az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv) if ([System.String]::IsNullOrEmpty($headerAccessToken)) { - throw "Unable to create the DevOpsRestHeader due to access token being null or empy. The calling script needs to be pass an the accessToken value OR the calling script needs to be run in an azure authenticated environment." + throw "Unable to create the DevOpsRestHeader due to access token being null or empty. The caller needs to be logged in with az login to an account with enough permissions to edit work items in the azure-sdk Release team project." } $headers = @{ Authorization = "Bearer $headerAccessToken" } diff --git a/eng/common/scripts/Validate-Package.ps1 b/eng/common/scripts/Validate-Package.ps1 index ee347e5da928..070d7b23db0c 100644 --- a/eng/common/scripts/Validate-Package.ps1 +++ b/eng/common/scripts/Validate-Package.ps1 @@ -25,8 +25,8 @@ Set-StrictMode -Version 3 az account show *> $null if (!$?) { -Write-Host 'Running az login...' -az login *> $null + Write-Host 'Running az login...' + az login *> $null } az extension show -n azure-devops *> $null