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

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)

  • 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

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 97
  • Comments: 30 (2 by maintainers)

Most upvoted comments

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

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.

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

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

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

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

@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.

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

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.