title: How to get client secret from existing Azure service principal
body: <p>I have created a RBAC enabled <a href="https://docs.microsoft.com/en-us/cli/azure/ad/sp?view=azure-cli-latest" rel="noreferrer">service principal</a> in Azure to configure Key Vault access within my OS using environment variables. When you create a service principal, the Azure CLI responds with the service principal details, containing the <code>clientSecret</code> value. Creation command:</p>
  <pre><code>az ad sp create-for-rbac -n &lt;http://my-name&gt; --sdk-auth
  </code></pre>
  <p>I would like to know if and how I can request the <code>clientSecret</code> later on. When I use</p>
  <pre><code>az ad sp show --id &lt;my-service-principal-uuid&gt;
  </code></pre>
  <p>or</p>
  <pre><code>az ad sp credential list --id &lt;my-service-principal-uuid&gt;
  </code></pre>
  <p>the <code>clientSecret</code> is not in the response information.</p>
  <p>Is there any way to retrieve the <code>clientSecret</code> other than at the moment of creation?</p>