and receive the token to call the Power BI Admin API. But now I need to migrate to version 2 of the Microsoft Identity Platform (https://login.microsoftonline.com/common/oauth2/v2.0/token). In all documentation I've found there is the only option to acquire the token with client_credentials grant_type where I need to log in with my admin acc. Is there any way how to acquire the access token in version 2 without any user interaction?
Or is the MSAL library capable of this? I've not been familiar with this library yet so if I will need to or not.
I need this solution to regularly download all activity events from my Power BI tenant inside a .NET Core console app.
Let's not talk about the security of this solution. All my secrets will be stored in the Azure Key Vault. I just need to get the access token for my admin acc.