Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pakrym opened this issue Feb 8, 2021 · 1 comment · Fixed by #1386
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Comments

@pakrym
Copy link
Contributor

pakrym commented Feb 8, 2021

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

@pakrym pakrym added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Feb 8, 2021
@weshaggard weshaggard self-assigned this Feb 9, 2021
@weshaggard
Copy link
Member

Thanks for reporting @pakrym I'll investigate, you can work around it by setting $devops_pat = "".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants