Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: AzurePowerShell@5 is failing to find parameter FederatedToken #19874

Open
4 of 7 tasks
cskaggs-ms opened this issue May 15, 2024 · 1 comment
Open
4 of 7 tasks

Comments

@cskaggs-ms
Copy link

New issue checklist

Task name

AzurePowerShell@5

Task version

2.6.0

Issue Description

Background

  • Using the task AzurePowerShell@5
  • azureSubscription is set to a service connection authenticating using a federated credential

Expected Behavior

  • The AzurePowerShell@5 task successfully authenticates

Actual Behavior

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

Azure DevOps Server (Please specify exact version in the textbox below)

Azure DevOps Server Version (if applicable)

msazure.visualstudio.com

Operation system

Windows 11

Relevant log output

##[debug]Connect-AzAccount: D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\5.239.9\ps_modules\VstsAzureHelpers_\InitializeAzModuleFunctions.ps1:438
##[debug]Line |
##[debug] 438 |              & $command @args
##[debug]     |                         ~~~~~
##[debug]     | A parameter cannot be found that matches parameter name 'FederatedToken'.

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Use AzurePowerShell@5 in 2.6.0 with a service connection authenticating using a federated credential
@v-bsanthanak
Copy link
Contributor

@cskaggs-ms - Please share the complete debug logs to proceed with investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants