New-AzureADApplicationKeyCredential - Thumbprint not available issue

Silpa Suresh 0 Reputation points
2024-07-16T10:58:22.2033333+00:00

Hi,

We have noticed that when we try to upload azure self signed certificate to Azure AD App registration from powershell using the cmdlet New-AzureADApplicationKeyCredential, we are not able to see the certificate thumbprint in the portal, App registration > Manage > Certificates and Secrets > Certificates.

It just shows a message "Thumbprint not available" in place of Thumbprint.

Is there any fix to this issue?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,226 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,204 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 103K Reputation points MVP
    2024-07-16T18:45:05.5766667+00:00

    The AzureAD module is not supported anymore, use the Graph SDK for PowerShell and the Add-MgApplicationKey cmdlet: https://video2.skills-academy.com/en-us/powershell/module/microsoft.graph.applications/add-mgapplicationkey?view=graph-powershell-1.0

    As mentioned in the documentation, this method requires "proof of possession", thus it can only be used if there is a credential already registered. Otherwise, use Update-MgApplication.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.