I've tried numerous times to register an app and connect to in in python:
app_id = '670...'
tenant_id = '065...'
client_secret_value = 'YJr...'
import requests
import msal
authority = f'https://login.microsoftonline.com/{tenant_id}'
scopes = ['https://analysis.microsoft.net/powerbi/api/.default']
app = msal.ConfidentialClientApplication(app_id, authority=authority, client_credential=client_secret_value)
result = None
result = app.acquire_token_for_client(scopes=scopes)
I feel like I've followed this video exactly: https://www.youtube.com/watch?v=3Fu8FjvYvyc&t=577s&ab_channel=JJPowerBI I'm up to minute 8:38.
I'm getting the following error messsage and googling it shows me the tenatid should be the id and not the domain name. I'm not sure why that's happening and what I need to change to get this to work
Edit adding API Permissions I am the owner of the subscription.
Edit2: Looks a little different then the comment, but I enabled this and it says it could take 15 minutes to update.








