title: Using python code how do i get the disks name and disk state in azure
body: <p>I am unable to get the disks name and disk state details using python:</p>
  
  <pre><code>credentials = ServicePrincipalCredentials( client_id = CLIENT, secret = KEY, tenant = TENANT_ID )
  subscription_id = ''
  compute_client = ComputeManagementClient(credentials, subscription_id)
  rg = 'shuilinux'
  disks = compute_client.disks.list_by_resource_group(rg)
  for disk in disks:
      print disk
  </code></pre>