title: Advanced Application Restart - powershell (Azure CLI)
body: <p>Following on from this question: 
  <a href="https://stackoverflow.com/questions/43810248/powershell-for-an-advanced-application-restart-on-an-azure-web-app?noredirect=1&amp;lq=1">Powershell for an Advanced Application Restart on an Azure Web App</a></p>
  
  <p>My command doesn't have any processes returned from the 3rd call to Get-AzureRmResource. I am using Azure Powershell April 2018 (v5.7.0). The first two calls to Get-AzureRmResource work. I simply get an output of </p>
  
  <pre><code>Going to enumerate all processes on 1c0499509f00dc4dde75497ea121d4d32c850ad32xxxxxxxxxxxxxx instance
  Going to enumerate all processes on 833b0f35d4116cc4392ec0620f22ce7fa355f801be9a8axxxxxxxxxxxx instance.
  </code></pre>
  
  <p>Any ideas why this could be?</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li>Matching the API version or removing that flag altogether</li>
  <li>Referencing the RG name and resource name instead of the ID</li>
  <li>Using a different command to list the processes</li>
  <li>Running in ISE and vanilla powershell</li>
  </ul>
  
  <p>Using the portal or Kudu console does show me processes for each instance.</p>