title: PowerBI.com Dataset Refresh for Azure Data Lake with OAuth2
body: <p><strong>Situation:</strong> I have a Power BI desktop workbook with a data source connection to Azure Data Lake storage. I can query the storage and get to the datasets without any problem. I've created my visuals and published the workbook to PowerBI.com.</p>
  
  <p><strong>Next:</strong> I want to schedule the refresh of the dataset so the reports hit my Azure Data Lake files and get updated. However the OAuth2 popup and dialogue don't seem to work and after completing the login prompts I just get an endless spinning circle that never returns. As below.</p>
  
  <p><a href="https://i.stack.imgur.com/bG74e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bG74e.png" alt="enter image description here"></a></p>
  
  <p><strong>Additional things:</strong> I've followed several different sets of instructions to register a new app in my Azure AD, granting it PowerBI API services. Assigning the app permissions to the storage etc. But without success. Tried native and web/API apps. Instructions here...</p>
  
  <p><a href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-authenticate-a-client-app/" rel="nofollow noreferrer">https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-authenticate-a-client-app/</a></p>
  
  <p>I've testing using various URLs for the data lake storage as my Power BI workbook source. Including ADL://... webhdfs://... and https://... All result in the same situation.</p>
  
  <p>I can confirm my Power BI logins are my Microsoft "Work" accounts. As is my Azure Data Lake storage all connected up correctly with Office 365 and Azure AD.</p>
  
  <p><strong>Questions:</strong> What am I missing? I wish there was even an error message to work from. But it gives me nothing. If this were a .Net app giving it the client ID etc would make sense. But Power BI.com just asks for my login details.</p>
  
  <p>Does the Power BI preview connector for Azure Data Lake even work once published to PowerBI.com? I can't find any example out there of anybody else doing this.</p>
  
  <p>Many thanks for your time and assistance friends.</p>