title: The client with object id does not have authorization to perform action 'Microsoft.Web/serverfarms/read' over scope
body: <p>I am using Azure app service api to view server details like worker process and region etc. for management purpose. After generating token from <strong>AuthenticationContext.AcquireTokenAsync</strong> method, I am requesting following URL for server details <strong><a href="https://management.azure.com/subscriptions/&lt;sub" rel="noreferrer">https://management.azure.com/subscriptions/&lt;sub</a> ID&gt;/resourceGroups/&lt;resource group name&gt;/providers/Microsoft.Web/serverfarms/?api-version=2018-02-01</strong></p>
  
  <p>In the response I am getting <strong>AuthorizationFailed</strong> error code with the detail given bellow:</p>
  
  <blockquote>
    <p>The client does not have authorization to perform action 'Microsoft.Web/serverfarms/read' over scope '/subscriptions/xxxxxxxx-xxxxxxx-xxxx/resourceGroups/xxxxxxxxxxx/providers/Microsoft.Web/serverfarms/xxxx' or the scope is invalid. If access was recently granted, please refresh your credentials.</p>
  </blockquote>
  
  <p>But when I try the same verification using <strong><a href="https://docs.microsoft.com/en-us/rest/api/appservice/appserviceenvironments/get" rel="noreferrer">https://docs.microsoft.com/en-us/rest/api/appservice/appserviceenvironments/get</a></strong> portal where I can try the APIs for testing, the request is returning expected results.</p>
  
  <p>So, is there any other way to authenticate or should I have to define some permissions to achieve the functionality?</p>