Hi @Mohamed Bougharriou , your error "The operation 'read' on resource type 'environments/apps' is disallowed." means you just need to change the permissions on your resource. To grant the required permissions to your application in Azure Active Directory, follow these steps:
- Sign in to the Azure portal.
- Navigate to Azure Active Directory.
- Select App registrations from the left-hand menu.
- Find and select your application from the list.
- In the application's overview page, click on API permissions from the left-hand menu.
- Click on Add a permission.
- In the Request API permissions panel, select the appropriate API (e.g., Power Apps) and the required permissions (e.g., read access to environments/apps).
- Click on Add permissions to save your changes. After granting the permissions, you may need to wait for a few minutes for the changes to propagate. Then, try your API call again.
If you still encounter issues, please let me know, and I'll be happy to help further.
If this answer helped you please mark it as "Verified" so other users can reference it.
Thank you,
James