How to get past Unable to Resolve a Refresh Token error during ASDK registration

Michael Clagett 211 Reputation points
2024-09-26T18:59:59.3966667+00:00

Hi --

I got a new server and am trying to install the Azure Stack Development Kit on it. I've never encountered this issue before, but now the Set-AzsRegistration script fails with the following error:

Export-AzRefreshToken : Unable to resolve a refresh token for identity '******@executablemodeling.com' with the

specified properties...

At C:\AzureStack-Tools-az\Registration\RegisterWithAzure.psm1:409 char:26

  • ... eshToken = (Export-AzRefreshToken -Context $AzureContext -Verbose).Ge ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Export-AzRefreshToken

Would anyone have an idea what might be going on here and how I might get beyond this impasse?

Thanks.

Azure Stack Hub
Azure Stack Hub

An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.


Answer accepted by question author
Anonymous
2024-09-27T19:53:56.32+00:00

Hi Michael Clagett,

Based on your latest comment you want to register the ASDK, please refer the below link which guide you to Azure AD App Registration.

https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-how-to-create-an-azure-ad-app-registration/ba-p/811570

If you still face any issue, please let us know in comments. We are happy to assist you.

Thank You.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Oldest

Your answer

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