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 'dukesdriv8lab@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.
189 questions
{count} votes

Accepted answer
  1. Sai Krishna Katakam 520 Reputation points Microsoft Vendor
    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.