VSCode Azure powershell modules compatibility issue

Madhu Rao 140 Reputation points
2024-03-18T08:43:22.1466667+00:00

Hi All,

I am running VSCode on Windows 10.

I am getting the below error when running AZ Modules. These modules work fine in powershellISE.

PS C:\Users\admin> connect-AzAccount

WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.)'

WARNING: Please run 'Connect-AzAccount -DeviceCode' if browser is not supported in this session.

Connect-AzAccount: InteractiveBrowserCredential authentication failed: Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry or by configuring a custom retry policy in ClientOptions.RetryPolicy. (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.)

There was no compatibility issue but it broke 2-3 weeks

Is there a fix for this issue?

VSCode version:

Version: 1.86.2 (system setup)

Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda

Date: 2024-02-13T19:40:56.878Z

Electron: 27.2.3

ElectronBuildId: 26908389

Chromium: 118.0.5993.159

Node.js: 18.17.1

V8: 11.8.172.18-electron.0

OS: Windows_NT x64 10.0.19044

Powershell modules versions:

PS C:\Users\admin> Get-Module -ListAvailable

Directory: C:\program files\powershell\7\Modules

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 42,491 Reputation points
    2024-03-18T09:50:24.1+00:00

    Hi Madhu,

    There was a solution for this issue and can you follow this page here.

    Hope this helps.

    JS

    ==

    Please Accept the answer if the information helped you. This will help us and others in the community as well.


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.