'Azure load test task fails with invalid secret url

I'm trying azure load test config yaml as listed in https://docs.microsoft.com/en-us/azure/load-testing/reference-test-config-yaml.

My yaml looks like below. Changed the values to obscure actual values.

version: v0.1
testName: myloadtest
testPlan: myloadtest_openedit.jmx
description: Load test my web api
engineInstances: 1
configurationFiles:
  - 'loadtestconfig.csv'
failureCriteria:
  - avg(response_time_ms) > 3000
  - percentage(error) > 50

secrets:
  - name: secret_one
    value: https://<resource>.vault.azure.net/secrets/<secret1-id>
  - name: secret_two
    value: https://<resource>.vault.azure.net/secrets/<secret2-id>
keyVaultReferenceIdentity: /subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<identity-name>

The load test task fails with error (invalid secret url) attached

Azure load test task failure



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source