title: Data refresh of Cosmos DB in PowerBI portal
body: <p>Is there a simple solution to automatically refresh data in a report produced using Cosmos DB in Power BI after the report is published?</p>
  
  <p>Right now I can use Power BI Desktop to import data from Power BI, transform it and make a report. Then I can publish it.
  The challenge is that data in a Cosmos DB instance updated quite regularly and I want to present it to others through app.powerbi.com without a need to open the initial file in Power BI Desktop and click refresh and publish just so others can see updated data.</p>
  
  <p>The only solution I found so far is <a href="https://github.com/Azure/azure-cosmosdb-spark/wiki/Configuring-Power-BI-Direct-Query-to-Azure-Cosmos-DB-via-Apache-Spark-(HDI)" rel="nofollow noreferrer">https://github.com/Azure/azure-cosmosdb-spark/wiki/Configuring-Power-BI-Direct-Query-to-Azure-Cosmos-DB-via-Apache-Spark-(HDI)</a> but this is not a simple solution.</p>