title: Unable to obtain azure key vault secret in ansible
body: <p>I try to get a secret from azure key vault in my ansible 4 playbook using <a href="https://galaxy.ansible.com/azure/azcollection" rel="nofollow noreferrer">azcollection</a> 1.9.0.</p>
  <pre class="lang-yaml prettyprint-override"><code>- name: Get secret value
    azure_rm_keyvaultsecret_info:
      vault_uri: https://my-vault.vault.azure.net/
    register: kvSecret
  </code></pre>
  <p>According to the <a href="https://docs.ansible.com/ansible/latest/collections/azure/azcollection/azure_rm_keyvaultsecret_info_module.html#return-secrets/secret" rel="nofollow noreferrer">docs</a> the result should contain a list of secrets with a property called <code>secret</code> containing the secret value.</p>
  <p>However, this property is not present on the result set. This is the result I get:</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;changed&quot;: False,
      &quot;secrets&quot;: [
          {
              &quot;sid&quot;: &quot;https: //my-vault.vault.azure.net/secrets/ssh-user-username&quot;,
              &quot;version&quot;: &quot;&quot;,
              &quot;tags&quot;: {},
              &quot;attributes&quot;: {
                  &quot;enabled&quot;: True,
                  &quot;not_before&quot;: None,
                  &quot;expires&quot;: None,
                  &quot;created&quot;: &quot;2021-09-05T14:32:10+00:00&quot;,
                  &quot;updated&quot;: &quot;2021-09-05T14:32:10+00:00&quot;,
                  &quot;recovery_level&quot;: &quot;Recoverable+Purgeable&quot;
              }
          }
      ],
      &quot;failed&quot;: False
  }
  </code></pre>
  <p>If I try to get this exact secret using the <code>name</code> option I get an empty result set.</p>
  <p>My vault contains this secret, it has a value and the service principal has access to my key vault through IAM with the roles <code>Key Vault Reader</code> and <code>Key Vault Secrets User</code>.</p>