Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
VarunPatkar
Microsoft Employee
Microsoft Employee

AI Skill Endpoint not accessible in App Service

I have developed and published an AI Skill to an API endpoint. I'm attempting to access this endpoint from an App Service, but I’m running into an authorization issue.

When accessing the endpoint from my local environment, I can generate a bearer token using the scope https://analysis.windows.net/powerbi/api/user_impersonation through Azure CLI (since I’m logged in locally). However, when I deploy this to App Service, the token generation fails.

  • The App Service’s managed identity does have access to the Fabric workspace.
  • Despite this, I receive an "insufficient permissions" error during deployment.
  • The issue seems to be that user_impersonation is not available under Power BI Service API permissions when configuring API permissions in the App Registration.

I'm looking for a way to:

  1. Generate a valid token in the App Service to authorize the AI Skill.
  2. Implement a backend or frontend method to create this token and authenticate with the AI endpoint.

Is there a known workaround or a specific configuration that allows generating this token for the App Service environment?

1 REPLY 1
danaHa
New Member

Hi @VarunPatkar - did you manage to find solution for this? or how to access the AI Skill from the App service? 

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.