Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

當您嘗試更新 Microsoft Azure 美國政府定域機組中的資源時,您可能會收到下列錯誤,因為啟動 Team Foundation 伺服器上使用版本的部署可能會失敗。

無法在 Azure 上提取存取權杖。

無法取得 Json Web 語彙基元 (JWT) 服務的主要識別碼 'ServicePrincipalID'。 例外狀況訊息: AADSTS90038: 機密的用戶端不支援跨定域機組要求中。

原因

Azure 美國政府定域機組的 AAD 授權 URL 已經從登入 us.microsoftonline.com變更為login.microsoftonline.us。 部署期間,發行會嘗試擷取來驗證更新程式的存取權杖。 內建的部署工作查詢舊的 URL 存取權杖和失敗。

解決方案

若要修正這個問題,請依照下列步驟執行:

  1. 依此下載的 Azure 的擴充功能的 VSIX 檔:

  2. 以系統管理認證執行命令提示字元使用 TFS 的系統管理員帳戶,然後上載到 Team Foundation 伺服器擴充功能,適當地使用下列命令:

    • TFS 2017

      "C:\Program 必要 Team Foundation Server 15.0\Tools\TfsConfig.exe"publishextension /vsixfilepath:"< Azure VSIX 檔案路徑 >"

    • TFS 2018

      "C:\Program 必要 Team Foundation Server 2018\Tools\TfsConfig.exe"publishextension /vsixfilepath:"< Azure VSIX 檔案路徑 >"

附註沒有任何 Team Foundation 伺服器或電腦重新啟動之後要在套用延伸。 

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×