Authentication Error: Resource Principal https://fabric.microsoft.com Not Found in Azure AD Tenant

Tigor Sinuraja 0 Reputation points
2025-08-10T08:11:32.1233333+00:00

I am trying to access REST-API in a Fabric notebook. Provided necessary tenant_id. service

principle and secret value. But getting error that Fabric sp https://fabric.microsoft.com does not exist in my tenant.


url = f"https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token"

payload = {
    "client_id": client_id,
    "client_secret": client_secret,
    "grant_type": "client_credentials",
    "scope": scope
}

response = requests.post(url, data=payload)
token = response.json().get("access_token")

if token:
    print("✅ Token acquired", token)
else:
    print("❌ Failed to get token:", response.json())

access_token = token


# ---- Step 2: Call Fabric Catalog API to list items ----
headers = {
    "Authorization": f"Bearer {access_token}"
}

# You can filter by type: notebook, lakehouse, dataset, report, etc.
api_url = "https://api.fabric.microsoft.com/v1/catalog/items"

response = requests.get(api_url, headers=headers)

Failed to get token: {'error': 'invalid_resource', 'error_description': 'AADSTS500011: The resource principal named https://fabric.microsoft.com was not found in the tenant named General. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Swaroop Kolli 3,505 Reputation points Microsoft External Staff Moderator
    2025-08-11T04:40:06.5066667+00:00

    Hello @Tigor Sinuraja,

    Can you please let me know if the API permissions under Application Permissions are added and the consent is granted for the tenant. This error can also occur if the required API permissions are not consented for the specific scope.

    Also, try to fetch the token using the below scope-

    scope = "https://api.fabric.microsoft.com/.default"
    
    

    And also, can you look for the application based on {client-id}. You can do this by looking in the Enterprise Apps. Ensure Application Type is set to All and click Apply. Search for the app if it exists under Enterprise applications.

    I am also sending you a private message for further troubleshooting if the above did not work. Please revert back in the private message so that we can troubleshoot further.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.