title: How to conditionally do azure pipeline task AzureKeyVault@1 KV lookup with various SecretsFilter variables yet always populate same output variable
body: <p>Given environment specific KV secrets say</p>
  <pre><code>some-dev-write-user
  some-prod-write-user
  </code></pre>
  <p>how can I do a conditional KV lookup to always populate the same output variable name say</p>
  <pre><code>some-write-user
  </code></pre>
  <p>currently I am doing both KV lookups</p>
  <pre><code>- task: AzureKeyVault@1
    displayName: 'some_dev_write_user'
    condition: or(eq(parameters.environment, 'dev'),eq(parameters.environment, 'stg'))
    inputs:
      azureSubscription: $(tf_azure_service_connection)
      KeyVaultName: $(some_akv_name)
      SecretsFilter: 'some-dev-write-user'
      RunAsPreJob: true
  
  - task: AzureKeyVault@1
    displayName: 'some_prod_write_user'
    condition: eq(parameters.environment, 'prod')
    inputs:
      azureSubscription: $(tf_azure_service_connection)
      KeyVaultName: $(some_akv_name)
      SecretsFilter: 'some-prod-write-user'
      RunAsPreJob: true
  </code></pre>
  <p>now I conditionally have available one or the other of these azure variables</p>
  <pre><code>some-dev-write-user
  some-prod-write-user
  </code></pre>
  <p>when I really need a single output azure variable from the conditional KV lookup</p>
  <pre><code>some-write-user
  </code></pre>
  <p>Do I have to resort to doing my own conditional logic downstream to populate a variable based on which variable got populated from my KV steps ?</p>