title: Azure Service Management API for .Net
body: <p>I wanted to get the properties of the Role instances in a cloud service.</p>
  
  <p>I am able to get the instance properties via REST Api call as mentioned <a href="http://msdn.microsoft.com/en-us/library/azure/ee460804.aspx" rel="nofollow">here.</a></p>
  
  <p>This is the API I used,</p>
  
  <blockquote>
    <p><a href="https://management.core.windows.net/subscription-id/services/hostedservices/cloudservice-name/deployments/deployment-name" rel="nofollow">https://management.core.windows.net/subscription-id/services/hostedservices/cloudservice-name/deployments/deployment-name</a></p>
  </blockquote>
  
  <p>But I am not able to find the .Net equivalent of that. I tried the following class,</p>
  
  <blockquote>
    <p><a href="http://msdn.microsoft.com/en-us/library/azure/dn155810.aspx" rel="nofollow">RoleInstanceDiagnosticManager</a></p>
  </blockquote>
  
  <p>But it asks me for a connection string , deployment id and other stuffs which the REST API doesn't ask for. The REST API works well with cloudservice name and deployment name.How do I achieve this in .Net without giving connection string and other stuffs?</p>
  
  <p>Is there any clear documentation to use Service Management API for .net with examples?</p>