Azure AD Kerberos Decryption Key Rotation Automation

Ishola 5 Reputation points
2024-01-04T13:27:43.6+00:00

Hello,

I have been trying to Automate the Azure AD Kerberos Decryption Key Rotation.

I have created a service principal account with the Application ID, Tenant ID, Secret ID, and Certificate.

When try to use this cmdlet New-AzureADSSOAuthenticationContext [-Token <string>] [-TenantId <Tenant ID>] [-UserName <Application ID>] and generate a Token or use the secret value, it will look like it worked.

However, when I run this cmd Get-AzureADSSOStatus | ConvertFrom-Json it comes up with an error " Get-AzureADSSOStatus : Retrieving desktopSso configuration failed. Error message: An error occured during authentication process. RequestId: 'f7ef407c-7403-4ba3-81a8-e632aea368a3'"

So, I would like to know how to use my service principal account with New-AzureADSSOAuthenticationContext and what to use for Token.

Thank you,

Adebayo

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,856 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,137 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 14,150 Reputation points MVP
    2024-01-04T23:55:52.0966667+00:00

    Confirm that the Application ID, Secret ID, and Certificate associated with your service principal are all valid and have not expired. The certificate should be trusted by Azure AD.


  2. AnuragSingh-MSFT 21,471 Reputation points
    2024-01-12T06:56:27.03+00:00

    Ishola, thank you for the reply. It appears that service principals or other modes of automation (except using the admin accounts) are not available currently. There was also feedback filed for the same which is currently in backlog. Apologies for the inconvinience.

    Automate Seamless SSO Kerberos decryption key rollover AZUREADSSOACC


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.