title: Retrieving current version in ARM template for secret
body: <p>I got this secret named "StorageConnectionString" that gets inserted in my Key Vault from ARM:</p>
  
  <pre><code>{
    "type": "Microsoft.KeyVault/vaults/secrets",
    "name": "[concat(variables('keyVaultName-v'),'/','StorageConnectionString')]",
    "apiVersion": "2018-02-14",
    "properties": {
      "contentType": "text/plain",
      "value": "OmittedStorageConntionString"
    },
    "dependsOn": [
      "[resourceId('Microsoft.KeyVault/vaults', variables('keyVaultName-v'))]"
    ]
  }
  </code></pre>
  
  <p>Is there any way that I can reference and get the url of current version (or just version id) of the inserted secret, from ARM? I want to reference it from an environment variable like mentioned here: <a href="https://azure.microsoft.com/en-us/blog/simplifying-security-for-serverless-and-web-apps-with-azure-functions-and-app-service/" rel="nofollow noreferrer">https://azure.microsoft.com/en-us/blog/simplifying-security-for-serverless-and-web-apps-with-azure-functions-and-app-service/</a> under the section "Sourcing Application Settings from Key Vault". I want to set an environment setting <code>@Microsoft.KeyVault(SecretUri=secret_uri_with_version)</code> in my Azure Function.</p>
  
  <p>If this isnt possible, is there another way to set the connectionstring? </p>