Forum Discussion
How to recognize the correct Enterprise Application
To differentiate between Azure DevOps service connections and their corresponding Enterprise Applications in Azure, try these steps:
1. List All Enterprise Applications
Use Azure CLI to list Enterprise Applications:
az ad sp list --filter "appDisplayName eq '<ApplicationName>'" --query "[].{Name:displayName, ObjectID:objectId, AppID:appId}" -o table
2. Get Details of a Service Connection in Azure DevOps
To get detailed information about a service connection:
Go to Project Settings > Service Connections in Azure DevOps.
Click the service connection and note the resource ID or Service Principal ID.
3. Match Service Connection with Enterprise Application
Use Azure CLI to find the Enterprise Application associated with the Service Principal ID:
az ad sp show --id <ServicePrincipalID>
This command provides details like ObjectID, AppID, and DisplayName.
4. Use Azure Portal
In Azure Active Directory:
Navigate to Enterprise Applications > All Applications.
Search by AppID or ObjectID obtained from Azure CLI to identify the correct application.
Key Identifiers:
AppID: Unique to the application registration.
ObjectID: Unique to the service principal (Enterprise Application).
Service Principal ID: Used by DevOps to authenticate with Azure.
By cross-referencing these IDs, you can accurately identify which Enterprise Application corresponds to each Azure DevOps service connection.