Forum Discussion

FabricUser101's avatar
FabricUser101
New Member
1 year ago
Solved

Can't add dataset application perms for Power BI Azure integration?

I'm trying to let a Service Principal account refresh my Power BI semantic model from a Python script. I've registered the app through Azure. I've done: Added the Service Principal account to the w...
  • V-yubandi-msft's avatar
    1 year ago

    Hi FabricUser101 ,

    Thank you for reaching out. I understand you’re trying to refresh a Power BI semantic model using a Service Principal and a Python script, but you’re encountering issues because you can’t find the Dataset.ReadWrite.All application permission in Azure, and your script likely fails with a permissions error.

     

    In addition to Akash_Varuna & tackytechtom  responses.

     

    Since you’ve already enabled  Allow service principals to use Fabric APIs,  let’s add your Service Principal to an allowed group. Confirm Allow service principals to use Fabric APIs  is enabled, select Specific security groups, and add your PowerBI ServicePrincipals group.
     Automate Power BI Premium workspace and semantic model tasks with service principals - Power BI | Microsoft Learn

     

    You’ve added the Service Principal to the workspace, but let's make sure it has the correct role. Verify that your Service Principal (its security group) has at least the Contributor role (Admin is also acceptable). This role allows it to refresh the semantic model.

    Roles in workspaces in Power BI - Power BI | Microsoft Learn

    Regards,

    Yugandhar.