Unable to access my Student subscription

D. Eugene ward 0 Reputation points
2025-01-08T19:23:11.5433333+00:00

I was following along with a lab on using AZCopy. After getting to the point of signing in to Azure Storage AzCopy I received an error about my account needing to be an external user to access. I tried making some changes to my account, and now I am unable to see my subscription or my resources when I log into Azure. One of the errors I get when I try to access is, "

{
  "sessionId": "6a343464f76949ae9c589074225c8753",
  "errors": [
    {
      "errorMessage": "interaction_required: AADSTS160021: Application requested a user session which does not exist. Trace ID: 2ff3e52f-a572-4dfa-ab3f-30ef6b112b00 Correlation ID: 28f05445-92f0-4eca-8fec-c4afe11a679d Timestamp: 2025-01-08 19:15:55Z",
      "clientId": "631d36ba-ddbd-4e88-807a-b8cd54f9b390",
      "scopes": [
        "https://graph.windows.net//.default"
      ]
    }
  ]
}

}
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,809 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vidya Viraktamath 235 Reputation points Microsoft Employee
    2025-01-08T19:28:33.63+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    The issue is related to Azure Active Directory (AAD) authentication, specifically the error AADSTS160021: Application requested a user session which does not exist. This error typically occurs when there is a problem with the user session or authentication context.

    Try below steps:

    1. Clear Browser Cache: Clear your browser cache and cookies.
    2. Use Incognito Mode: Try signing in using an incognito/private browsing window.
    3. Re-authenticate: Sign out of all Azure accounts and sign back in.
    4. Check Permissions: Ensure your account has the necessary permissions.
    5. Verify External User Access: Confirm your account is correctly added as a guest user.
    6. Review Policies: Check Azure AD Conditional Access policies.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful


  2. Vidya Viraktamath 235 Reputation points Microsoft Employee
    2025-01-08T19:55:40.2466667+00:00

    The issue you're experiencing could be due to changes in your Azure directory or user sign-in settings. Here are a few potential causes and steps to resolve them:

    Potential Causes

    Directory Change:

    • If you switched directories (tenants) in Azure, you might not have the necessary permissions in the new directory to view your subscriptions and resources.

    User Sign-In Changes:

      - Changes to your user account, such as being added as an external user or changes in your role assignments, could affect your access to subscriptions and resources.
      
    

    Steps to Resolve

    Verify Directory:

    • Ensure you are signed into the correct Azure directory. You can switch directories by clicking on your account name in the top-right corner of the Azure portal and selecting the appropriate directory.

    Check Permissions:

      - Verify that your user account has the necessary permissions to access the subscriptions and resources. You might need to contact your Azure administrator to check and update your role assignments.
      
      **Re-authenticate**:
      
         - Sign out of all Azure accounts and sign back in to refresh your authentication tokens.
         
         **Review External User Access**:
         
            - If your account needs to be an external user, ensure that it is correctly added as a guest user in the tenant. The tenant admin can verify and re-invite you if necessary.
            
            **Clear Browser Cache**:
            
               - Clear your browser cache and cookies to remove any stale session data that might be causing issues.
               
    
    1. Use Incognito Mode:
      • Try accessing the Azure portal in an incognito or private browsing window to ensure no old session data is being used.The issue you're experiencing could be due to changes in your Azure directory or user sign-in settings. Here are a few potential causes and steps to resolve them: Potential Causes
      1. Directory Change:
        • If you switched directories (tenants) in Azure, you might not have the necessary permissions in the new directory to view your subscriptions and resources.
      2. User Sign-In Changes:
        • Changes to your user account, such as being added as an external user or changes in your role assignments, could affect your access to subscriptions and resources.
      Steps to Resolve
      1. Verify Directory:
        • Ensure you are signed into the correct Azure directory. You can switch directories by clicking on your account name in the top-right corner of the Azure portal and selecting the appropriate directory.
      2. Check Permissions:
        • Verify that your user account has the necessary permissions to access the subscriptions and resources. You might need to contact your Azure administrator to check and update your role assignments.
      3. Re-authenticate:
        • Sign out of all Azure accounts and sign back in to refresh your authentication tokens.
      4. Review External User Access:
        • If your account needs to be an external user, ensure that it is correctly added as a guest user in the tenant. The tenant admin can verify and re-invite you if necessary.
      5. Clear Browser Cache:
        • Clear your browser cache and cookies to remove any stale session data that might be causing issues.
      6. Use Incognito Mode:
        • Try accessing the Azure portal in an incognito or private browsing window to ensure no old session data is being used.

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.