Forum Discussion
Dataset refresh with ADLS Gen2 failing
- 2 years ago
Hi, Victor_V
The access token that Power BI receives from the Azure Storage Account through OAuth is indeed only valid for an hour and then expires. However, there are some ways to extend or refresh the token, depending on your authentication method and settings.
For example, if you are using app-only authentication, you can use a certificate or a client secret to obtain an access token that is not dependent on any user’s account. If you are using a shared access signature (SAS), you can edit the credential and sign in again to update the dataset credential.
powerbi - Power Bi Azure Cost Management - oauth token - Stack Overflow
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Victor_V
The access token that Power BI receives from the Azure Storage Account through OAuth is indeed only valid for an hour and then expires. However, there are some ways to extend or refresh the token, depending on your authentication method and settings.
For example, if you are using app-only authentication, you can use a certificate or a client secret to obtain an access token that is not dependent on any user’s account. If you are using a shared access signature (SAS), you can edit the credential and sign in again to update the dataset credential.
powerbi - Power Bi Azure Cost Management - oauth token - Stack Overflow
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey,
Thank you for the answer. Unfortunately OAuth is the only authentication method that we can use in this case else we go against our security model of the Storage Account.
Is there a way to increase the token lifetime that Power BI receives when it starts the refresh? Or make sure that a refresh token is send along to extend the lifetime in case it expires?
Thanks in advance!
Kind regards,
Victor V.