Power BI Desktop caches credentials per URL on your machine. The service stores them separately on the dataset settings. After publishing, you have to re-enter the user name and access token in Dataset → Settings → Data source credentials. See Schedule refresh in Power BI service.
Why do I get 401 from the Power BI service after a successful Desktop refresh?
< 1 min read