Thank you for posting your query on Microsoft Q&A, from above description I could understand that you are trying to follow canvas app wrap from power Apps but it is failing due to lacking permission for Azure API connection and getting error:
AADSTS650052: The app is trying to access a service fe053c5f-3692-4f14-aef2-ee34fc081cae'(Azure API Connections) that your organization 'xxxx-xxxxx-xxxx-xxxx-ace4-8dd5f92b4c2b' lacks a service principal for.
Please do correct me for any discrepancies by responding in the comments section.
As the error says, seems like Azure API Connections was missing in the My API section of the registered app.
Kindly follow the given steps to have this API added in your Entra ID tenant:
- Install Module Microsoft Graph PowerShell
PS C:\WINDOWS\system32> Install-Module -Name Microsoft.Graph
- Connect Graph and give Application Read.Write permission on your Entra Tenant: A pop up window will appear to login with your admin credentials and seeking consent to add scope
PS C:\WINDOWS\system32> Connect-MgGraph -Scopes "Application.ReadWrite.All", "DelegatedPermissionGrant.ReadWrite.All"
- Now add the Azure API connection service pricipal:
PS C:\WINDOWS\system32> New-MgServicePrincipal -AccountEnabled -AppId fe053c5f-3692-4f14-aef2-ee34fc081cae -DisplayName "Azure API Connections"
***You would see an output like below confirming the API has been added:
- Now Navigate to the Entra ID> Registered Apps > Look for your application name registered for canvas app > API permission > Add permission > API My organization Uses and choose Azure API Connections > Add Permission
- Once Done, you may retry the wrap process.
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.