azure-devops

"Resource file has already set" warning in Azure Devops, and variables unavailable


Today, the Deployment jobs in our Azure Devops pipelines are all showing the warning:

##[warning]Resource file has already set to: D:\a\_tasks\AzureKeyVault_1e244d.........\1.212.0\node_modules\azure-pipelines-tasks-azure-arm-rest-v2\module.json

Additionally, variables passed into the jobs are being passed as empty strings, resulting in failures. - This seems to be resolved as of 3rd November.

Needless to say, we have re-run our pipelines multiple times to no avail, and have reviewed the Azure Devops status page - which shows no issues.

The pipelines were all working normally yesterday (1st November).

The warnings seem to appear for any deployment job referencing a variable group linked to a key vault, e.g.

  - deployment: MyDeployment
    pool:
      vmImage: ubuntu-20.04
    variables:
    - group: MyKeyVaultLinkedVariableGroup


Solution

  • This issue reappeared for us more recently, associated with our AdvancedSecurity-Dependency-Scanning@1 task.

    Adding an environment variable TASKLIB_INPROC_UNITS: 1 seems to have resolved it.

    - task: AdvancedSecurity-Dependency-Scanning@1
      displayName: "Advanced Security Dependency Scanning"
      env:
        TASKLIB_INPROC_UNITS: 1
    
    

    Thanks to HenrikRoosKpa.