microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.49k stars 2.61k forks source link

[BUG]: Getting warnining Task 'Azure Key Vault' version 1 (AzureKeyVault@1) is deprecated while using library linked with keyvault #20302

Closed venkatest closed 1 month ago

venkatest commented 2 months ago

New issue checklist

Task name

Azure Key Vault

Task version

1

Issue Description

We are not using the Azure Key Vault task directly in our pipeline however we are using library linked with keyvault. when the build runs, pipeline automatically adds prejob to Download secrets. Since last couple of days, we are getting the warning - The AzureKeyVault@1 task is deprecated, please use the latest version of the AzureKeyVault task

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

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

Starting: Initialize job
Agent name: '****************'
Agent machine name: '****************'
Current agent version: '3.243.0'
Agent running as: '*****'
Prepare build directory.
Set build variables.
Download all required tasks.
Downloading task: AzureKeyVault (1.244.1)
##[warning]Task 'Azure Key Vault' version 1 (AzureKeyVault@1) is deprecated.
##[warning]The AzureKeyVault@1 task is deprecated, please use the latest version of the AzureKeyVault task
Downloading task: Bash (3.241.1)
Downloading task: PublishBuildArtifacts (1.238.1)

Full task logs with system.debug enabled

na

Repro steps

na
basvo commented 2 months ago

We are encountering the same issue.

roospa commented 2 months ago

Encountering the same issue running self-hosted agents on Windows Server. This only seems to appear when using yaml pipelines, classic pipelines report the use of Azure Key Vault task version 2.243.3.

jflieben commented 2 months ago

+1

Frettarix commented 2 months ago

+1

slavizh commented 2 months ago

+1

mrlnstpn commented 2 months ago

+1

epernst commented 2 months ago

+1

Liszet commented 2 months ago

+1

damu9618 commented 2 months ago

+1

stefankaufmann commented 2 months ago

+1

sandstreampop commented 2 months ago

+1

davisowb commented 2 months ago

Pretty please stop adding '+1' comments as we all get spammed with emails and instead add a thumbs up to the original post, if you want updates hit subscribe on the right.

venkatest commented 2 months ago

I see the same issue is reported in ms community, added my comments there and also adding the community link here for reference https://developercommunity.visualstudio.com/t/Task-Azure-Key-Vault-version-1-AzureK/10722590?q=Keyvault&sort=newest

rvairavelu commented 2 months ago

Azure Key Vault' version 1 (AzureKeyVault@1) is deprecated, We will work on the fixes when the pipeline uses the library linked with keyfault. Will keep this thread updated once the fixes are done cc @manolerazvan @PhilipsonJoseph @v-bsanthanak

chumster commented 2 months ago

+1 We run nightly pipelines. After reviewing the logs, started seeing this issue on Friday of last week (August 16th, 2024)

PeterConijn commented 2 months ago

Same with self-hosted agents on Azure VM

akoeplinger commented 2 months ago

@rvairavelu can you please disable the deprecation warning in the meantime until the fix is implemented?

TonyNets commented 2 months ago

It's been over a week since this issue was opened, and it is disappointing to note that no one from the support team has acknowledged or addressed the problem yet. Is there any update or at least a temporary workaround that can be applied? Hoping for a quick resolution.

ngcdev commented 2 months ago

Yeah, very unfortunate timing of this bug. We're in the middle of "cleaning up" warnings in over 100 pipelines and we started facing these, which we cannot do anything about.

Deekshitha981 commented 2 months ago

Hi team, we are actively working on this issue, will provide the fix asap.

weshaggard commented 2 months ago

@aleksandrlevochkin should we revert your change https://github.com/microsoft/azure-pipelines-tasks/pull/20222 until this issue can be resolved? These warnings are causing a lot of noise and there isn't anything we can to do resolve it.

Deekshitha981 commented 2 months ago

Hi, we are working on deploying the changes. The fix should be available by the mid of September.

sushovan commented 1 month ago

We are facing the same issue in Azure Pipelines agents also, so we are waiting for the changes.

aavdberg commented 1 month ago

We have the same also using the Pipeline - Library to get values from the keyvault and this injects the ##[warning]Task 'Azure Key Vault' version 1 (AzureKeyVault@1) is deprecated in our pipeline.

@Deekshitha981 what is the status of this and how can this short of things prevented in the feature?

katerynafiroozi commented 1 month ago

We encounter the same issue with Microsoft hosted build agents.

RolfMoleman commented 1 month ago

@JasonDonnelly @cmdmescall just in case you get asked about this

Deekshitha981 commented 1 month ago

Hi all, the fix got rolledout. Hope this resolves the issue.

telmen87 commented 1 month ago

Hi all, the fix got rolledout. Hope this resolves the issue.

Thanks, it works fine now.

venkatest commented 1 month ago

Thanks, it works good. warnings are not shown now.

DanFrei64 commented 1 month ago

This appears to have fixed my pipelines as well. Thank you.