title: How to get key from Azure KeyVault as a plain text?
body: <p>I have created key in Key Vault and manually imported private key in it. Now I want to retrieve using shell programing.</p>
  <p>I have followed <a href="https://docs.microsoft.com/en-us/rest/api/keyvault/getkey/getkey" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/keyvault/getkey/getkey</a> and trying to retrieve the plain text but I am getting below error</p>
  <pre><code>curl https://test-poc-kv-31.vault.azure.net/keys/sftp/ec8368364d1844c908234396e8f50344e68?api-version=7.1
  {&quot;error&quot;:{&quot;code&quot;:&quot;Unauthorized&quot;,&quot;message&quot;:&quot;Request is missing a Bearer or PoP token.&quot;}}
  </code></pre>
  <p>Not sure how to get the Bearer token for my URL?</p>