這很重要
Visual Studio App Center 於 2025 年 3 月 31 日淘汰,但分析和診斷功能除外,這些功能將持續支援到 2026 年 6 月 30 日。 瞭解更多資訊。
將 AAD 租用戶連線至 App Center
若要將 App Center 組織連線到 Azure Active Directory,請按兩下您的組織,按兩下 [ 管理],然後按兩下 [ Azure]。 在 [Azure] 頁面上,如果您尚未登入,請按兩下 [ 連線 並登入 Azure Active Directory]。
將會顯示 Azure Active Directory 租用戶的清單。 選取您想要的 ,然後按兩下 [ 連線]。
Azure Active Directory 服務主體
當您將 App Center 帳戶連線到 Azure Active Directory 時,會在您的 AAD 租使用者中建立服務主體,以允許 App Center 讀取您的使用者和安全組。 服務主體會以最少的許可權建立。
檢查App Center服務主體
您可以使用 Microsoft Graph Explorer 檢查服務主體,藉由將 GET 要求提交至 。 (您需要 Directory.Read.All
權限才能查看服務主體。)
您也可以使用 Get-AzADServicePrincipal 來擷取服務主體。
Get-AzADServicePrincipal -DisplayName 'App Center'
範例服務主體
以下是為了將 App Center 連線至範例 Azure AD 租戶所建立的服務主體。
- 屬性
displayName
為 “App Center” - 屬性
appID
為 “6201c56d-46d7-4152-bdb6-e0c77193784b”,這是 Azure Active Directory 中 App Center 的 GUID -
publisherName
是 「Microsoft服務」
{
"id": "3bd7a1a6-a74a-f5ed-9721-51ecxxxxxxxx",
"deletedDateTime": null,
"accountEnabled": true,
"appDisplayName": "App Center",
"appId": "6201c56d-46d7-4152-bdb6-e0c77193784b",
"applicationTemplateId": null,
"appOwnerOrganizationId": "f3cdef31-a31e-c3c9-443a-5f57xxxxxxxx",
"appRoleAssignmentRequired": false,
"displayName": "App Center",
"errorUrl": null,
"homepage": null,
"info": {
"termsOfServiceUrl": null,
"supportUrl": null,
"privacyStatementUrl": null,
"marketingUrl": null,
"logoUrl": null
},
"loginUrl": null,
"logoutUrl": null,
"notificationEmailAddresses": [],
"publishedPermissionScopes": [],
"preferredSingleSignOnMode": null,
"preferredTokenSigningKeyEndDateTime": null,
"preferredTokenSigningKeyThumbprint": null,
"publisherName": "Microsoft Services",
"replyUrls": [],
"samlMetadataUrl": null,
"samlSingleSignOnSettings": null,
"servicePrincipalNames": [
"6201c56d-46d7-4152-bdb6-e0c77193784b",
"https://applicationinsights.azure.com"
],
"signInAudience": "AzureADMultipleOrgs",
"tags": [],
"addIns": [],
"api": {
"resourceSpecificApplicationPermissions": []
},
"appRoles": [],
"keyCredentials": [],
"passwordCredentials": []
}
刪除您的 App Center 帳戶
當您刪除 App Center 帳戶時,服務主體會保留在 Azure Active Directory 租戶中。 若要移除它,您可以執行 Remove-AzADServicePrincipal。
Remove-AzADServicePrincipal -ServicePrincipalName 'App Center'