title: How to create ServiceClientCredential to be used with Microsoft.Azure.Management.Compute
body: <p>I am trying to programmatically retrieve the <code>HostedServices</code> from <code>Microsoft.Azure.Management.Compute</code> using C#. This requires <code>ServiceClientCredential</code> and I do not know how to get it.</p>
  <p>How can I instantiate this class?</p>
  <p>I am able to get them using <code>Microsoft.WindowsAzure.Management.Compute</code> but here it returns only the instances under ResourceManager not the classic instances.</p>