Skip to content

VS Code Could not login to Azure #244689

Closed
Closed

Description

@SamTangChina

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.98.2
  • OS Version: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. Click [Sign to Azure]
  2. Popup confirm window[ Azure Resources Wants use ChinaCloud to Login]
  3. Enter email
  4. Got Error: CAA20002, AADSTS65002 Consent between first part application xxxx and first part resource xxxxx must be configured via preauthorization.

Activity

  1. TylerLeonhardt commented on Mar 26, 2025

    @TylerLeonhardt
    Member

    Hmm that's unusual... I will see what is wrong with our app configuration.

  2. added
    bug
    authentication-microsoft
    on Mar 26, 2025
  3. added this to the April 2025 milestone on Mar 26, 2025
  4. SamTangChina commented on Mar 26, 2025

    @SamTangChina
    Author

    Image

    Here is the screen shot

  5. TylerLeonhardt commented on Mar 26, 2025

    @TylerLeonhardt
    Member

    Thanks, I have opened up an internal ticket with the Identity team. We'll figure this out.

  6. jerryzhen11 commented on Mar 26, 2025

    @jerryzhen11

    I am encountering this issue too.It worked yesterday.

  7. fd00989 commented on Mar 26, 2025

    @fd00989

    HI team ,
    Getting this issue

    Image

    this was better

    Image

  8. TylerLeonhardt commented on Mar 26, 2025

    @TylerLeonhardt
    Member

    jerryzhen11 fd00989 are you also signing in the the ChinaCloud instance of Azure? If not, please open a new issue

  9. fd00989 commented on Mar 26, 2025

    @fd00989

    ohk sure

  10. jerryzhen11 commented on Mar 27, 2025

    @jerryzhen11

    @jerryzhen11 @fd00989 are you also signing in the the ChinaCloud instance of Azure? If not, please open a new issue

    TylerLeonhardt
    Hi Tyler yes. I am signing in the china cloud instance.

  11. SamTangChina commented on Mar 27, 2025

    @SamTangChina
    Author

    TylerLeonhardt any update on this? I have tried to uninstall vs code, reinstall vs code, did not solve the problem

  12. TylerLeonhardt commented on Mar 27, 2025

    @TylerLeonhardt
    Member

    This appears to be a server side issue so downgraded does not solve the problem. I am escalating

  13. SamTangChina commented on Mar 28, 2025

    @SamTangChina
    Author

    This appears to be a server side issue so downgraded does not solve the problem. I am escalating

    Thanks for your support, waiting for the result.

  14. SamTangChina commented on Mar 29, 2025

    @SamTangChina
    Author

    TylerLeonhardt Any progress on this issue?

  15. TylerLeonhardt commented on Mar 31, 2025

    @TylerLeonhardt
    Member

    No progress... I am pushing on the owning team as hard as I can. If you have a Microsoft support contract I highly recommend reaching out to them as reports coming directly from customers are handled at higher severity.

  16. DDDDDennis commented on Apr 1, 2025

    @DDDDDennis

    Same happened to me. I cannot log into ChinaCloud Azure in vs code.

  17. LuBu0505 commented on Apr 2, 2025

    @LuBu0505

    There is workaround that change the VS Setting-->Filter by "microsoft account"-> client ID Version ---> "v2", after that. you login successful.

    Image

  18. TylerLeonhardt commented on Apr 2, 2025

    @TylerLeonhardt
    Member

    That setting is about to go away tomorrow. We were going to change VS Code's client id but decided against it.

    The fact that it works is surprising. A true fix is fixing the existing client id. Thanks to some of you for helping push for a fix by going through your support channels. This really helps heighten the priority

  19. DDDDDennis commented on Apr 3, 2025

    @DDDDDennis

    There is workaround that change the VS Setting-->Filter by "microsoft account"-> client ID Version ---> "v2", after that. you login successful.

    Image

    This works!!! Thanks mate

  20. SamTangChina commented on Apr 4, 2025

    @SamTangChina
    Author

    change

    This Works, thanks a lot

  21. TylerLeonhardt commented on Apr 5, 2025

    @TylerLeonhardt
    Member

    I believe we have fixed the issue. Can you all try again?

  22. jerryzhen11 commented on Apr 8, 2025

    @jerryzhen11

    Hi TylerLeonhardt it worked now.
    Thanks so much~

  23. TylerLeonhardt commented on Apr 8, 2025

    @TylerLeonhardt
    Member

    Great! Thanks for confirming.

  24. added
    verified
    on Apr 8, 2025
  25. locked and limited conversation to collaborators on May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

authentication-microsoftbugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions