azure-pipelines-tasks: [BUG]: KUBECTL Azure Devops TASK kubernetes@1, cannot fetch access token for Azure on version 1.241.5

New issue checklist

Task name

kubernetes@1

Task version

1.241.5

Issue Description

Task started to fail on version 1.241.5 with the message:

Reason Could not fetch access token for Azure. Status code: network_error, status message: Network request failed.

It works on prior versions

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

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

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 20.04

Relevant log output

2024-06-27T11:46:04.1785075Z ##[error]Cannot download access profile/kube config file for the cluster xpto. Reason Could not fetch access token for Azure. Status code: network_error, status message: Network request failed.

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 23 (10 by maintainers)

Most upvoted comments

Hi @yolomaniac Could you pls share your org details at v-schhabra@microsoft.com? Becoz the fix has been deployed to few Rings so just wanted to check if the fix is already there on your ring or not?

thx someone from the organization will contact you soon

@v-schhabra I’ve emailed the build and release logs