Skip to content

Unable to login when enable-AzPSSession is enabled #30

Description

@JasonTheDeveloper

When I try logging in with enable-AzPSSession: true I get the following output:

Legal docs and information: aka.ms/AzureCliLegal


You have 2 updates available. Consider updating your CLI installation with 'https://aka.ms/installazurecliwindows'. Detailed instructions can be found at https://aka.ms/doc/UpdateAzureCliMsi

Please let us know how we are doing: https://aka.ms/clihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
Running Azure PS Login
C:\Program Files\PowerShell\7\pwsh.exe -Command "try ***
            $ErrorActionPreference = \"Stop\"
            $WarningPreference = \"SilentlyContinue\"
            $output = @***
            $data = Get-Module -Name Az.Accounts -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1
            $output['AzVersion'] = $data.Version.ToString()
            $output['Success'] = \"true\"
        ***
        catch ***
            $output['Error'] = $_.exception.Message
        ***
        return ConvertTo-Json $output"
##[error]Azure PowerShell Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"
##[error]Error: There was an error when attempting to execute the process 'C:\Program'. This may indicate the process failed to start. Error: spawn C:\Program ENOENT

However, if I set enable-AzPSSession: false it logs in fine.

Note: I'm using windows-latest as the runner.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions