title: Azure Powershell - How to get resource status
body: <p>I have several resources of type Microsoft.ApiManagement/service.  </p>
  
  <p>when I use the find cmdlet below with that resource type, it does not return the state/status of the resource.  I can see the state on the portal but am retrieving resource statuses by resource type to get data for a summary dashboard that can be drilled through.  -ResourceType "microsoft.web/sites"
  works as expected and displays the state of the resource.</p>
  
  <p>I am not sure if I have to do something else for -ResourceType "Microsoft.ApiManagement/service" to make it display the state.
  -ResourceType "Microsoft.Storage/storageAccounts" does not show the state either though in the portal, Primary:Available, Secondary:Available is displayed.
  It seems like each resource type has its set of defined properties and one has to find the documentation to walk that resource type to find what one needs.
  I do not know where to find that information.  </p>
  
  <p>Thanks!</p>
  
  <pre><code>Find-AzureRmResource -ResourceType "microsoft.web/sites"  -ExpandProperties |Sort SiteName
  Find-AzureRmResource -ResourceType "Microsoft.ApiManagement/service"  -ExpandProperties |Sort Name
  Find-AzureRmResource -ResourceType "Microsoft.Storage/storageAccounts"  -ExpandProperties |Sort Name
  </code></pre>