Skip to content

Prepare-Release fails: The variable '$devops_pat' cannot be retrieved because it has not been set. #1379

Closed

Description

D:\github\azure\net [master ≡]> .\eng\common\scripts\Prepare-Release.ps1 Microsoft.Azure.WebJobs.Extensions.EventHubs -ServiceDirectory eventhub
Source directory [ eventhub ]

Assuming release is in February with release date 02/09/2021
Input the new version, or press Enter to use use current project version '5.0.0-beta.1':
Current Version: 5.0.0-beta.1
New Version: 5.0.0-beta.1
Copying data from latest matching [4426] with version 4.2
Creating a release work item for a package release with the following properties:
  Lanuage: .NET
  Version: 5.0
  Package: Microsoft.Azure.WebJobs.Extensions.EventHubs
  AssignedTo: jong@microsoft.com
  PackageDisplayName: WebJobs Extensions - Event Hubs
  ServiceName: WebJobs
  PackageType: client
[7164].NET - Microsoft.Azure.WebJobs.Extensions.EventHubs(5.0) - Created
Marking item [7164].NET - WebJobs Extensions - Event Hubs - 5.0 as 'In Release' for 'Beta'
[7164].NET - Microsoft.Azure.WebJobs.Extensions.EventHubs(5.0) - Updating versions 5.0.0-beta.1
InvalidOperation: D:\github\azure\net\eng\common\scripts\Helpers\DevOps-WorkItem-Helpers.ps1:802
Line |
 802 |    if ($devops_pat)
     |        ~~~~~~~~~~~
     | The variable '$devops_pat' cannot be retrieved because it has not been set.

Invoke-RestMethod: D:\github\azure\net\eng\common\scripts\Helpers\DevOps-WorkItem-Helpers.ps1:813
Line |
 813 |    $response = Invoke-RestMethod -Method PATCH `
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | {"$id":"1","innerException":null,"message":"TF400813: The user '' is not authorized to access this
     | resource.","typeName":"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException,
     | Microsoft.TeamFoundation.Framework.Server","typeKey":"UnauthorizedRequestException","errorCode":0,"eventId":3000}

cc @weshaggard @chidozieononiwu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Central-EngSysThis issue is owned by the Engineering System team.EngSysThis issue is impacting the engineering system.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions