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