特定の環境でリリースを開始するためにVSTS用のREST APIを使用しています。私は実際に展開を開始するためにREST呼び出しを行うとき、私は次のエラーメッセージを取得、しかし、環境や、そのような作品を取得:そのことについて興味深い何VSTS Rest API環境IDが正しくありません
[DBG]: PS C:\Users\mmulhe200>>
executeRequest : {"$id":"1","innerException":null,"message":"Environment with ID '16' is not valid. Valid environments have IDs
'1288,1289'. Specify a valid environment and try
again.","typeName":"Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException,
Microsoft.VisualStudio.Services.ReleaseManagement2.Data","typeKey":"InvalidRequestException","errorCode":0,"eventId":3000}
At C:\Users\mmulhe200\Desktop\VSTS release task\test\Untitled1.ps1:58 char:12
+ return executeRequest $request;
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,executeRequest
してリリースを取得するためのREST操作からの応答でありますその環境での定義は次のようになります。
実際、応答全体ではID 1288と1289はどこにも見つかりません。 VSTSが自分の環境IDが16であることを私に知らせる理由は、そのサービスから戻ってきたものの、間違っていますか?