What is the "Secret ID" in the "Certificates & secrets" blade of Azure AD App registration and how can we use this?
I have checked MS docs but there is no direct explanation.
What is the "Secret ID" in the "Certificates & secrets" blade of Azure AD App registration and how can we use this?
I have checked MS docs but there is no direct explanation.
Microsoft defines the Secret ID as:
KeyId : The unique identifier for the password.
Source:
Purpose:
This is used in commands that target a specific client secret. For example: say you want to delete a client secret:
PS C:\> $AppID = (Get-AzureADApplication -Top 1).objectId
PS C:\> $KeyIDs = Get-AzureADApplicationPasswordCredential -ObjectId $AppId
PS C:\> Remove-AzureADApplicationPasswordCredential -ObjectId $AppId -KeyId $KeyIds[0].KeyId
For more examples:
As an aside: Since the documentation is often difficult to find, what I often do is just look for a powershell command that interacts with the object I'm interested in, look for the return type, open that up and view its properties and match them up to the UI based on the values returned.