microsoft / vscode-azure-account

Common Azure Login extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account
Other
138 stars 131 forks source link

Azure sign in error "certificate has expired" #989

Closed bpwc closed 2 months ago

bpwc commented 4 months ago

Does this occur consistently? Yes Repro steps: Azure account login. Output console shows

[info] Attempting to reach URL "https://login.microsoftonline.com/"...
[error] certificate has expired

Things I tried: Just about every related solution to this issue that has been posted in this repo including but not limited to:

  1. disabled all extensions and reinstalled MS account and Azure Pipelines extensions
  2. used both of these authentication libraries image
  3. disabled/enabled this setting then restarted VS Code image
  4. disabled/enabled corporate VPN
  5. jiggled the power cord
  6. tapped the floor with my feet 3 times and clapped once, then clapped 3 times and tapped once.
  7. knocked on wood
  8. crossed my fingers
  9. Wore my lucky socks
  10. made a wish and blew out a candle

Note that I'm signed in to my cloud sync account just fine. The issue lies in the Azure sign in. I guess different certificates/IPs/authentication methods for whatever reason are used

Action: azure-account.loginToCloud Error type: AzureLoginError Error Message: Offline

Version: 0.12.0 OS: win32 OS Release: 10.0.22621 Product: Visual Studio Code Product Version: 1.92.0 Language: en

Call Stack
extension.bundle.js:2:2503574extension.bundle.js:2:2503574
alexweininger commented 3 months ago

Which extensions are you trying to use with Azure Account? Most Azure extensions have moved off of Azure Account for authentication, and moved to the built-in VS Code Microsoft authentication provider. The Azure Account extension will be deprecated soon. If you're able, uninstall the Azure Account extension.

If you can, try out the new command you can access from the Azure Resources view: image

AzCode-Bot commented 2 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!