title: Creating Media Service Credentials
body: <p>I'm trying to set up the Azure Media Service. I created the media service from Azure but I don't know where can obtain the account key.</p>
  
  <blockquote>
    <p>client = new CloudMediaContext(new MediaServicesCredentials(accountName, accountKey));</p>
  </blockquote>
  
  <p>I'm following this tutorial: <a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-integrating-applications" rel="nofollow noreferrer">Integrating applications with Azure Active Directory</a></p>
  
  <p>But after get the secret key in step 4 in "<em>To add application credentials, or permissions to access web APIs</em>" doesn't works.</p>