@itay4 Thank you for reaching out to us, As I understand you are trying to call Azure Management Rest API with permissions of user_impersonation scope.
Refer to this Stack Overflow post - https://stackoverflow.com/questions/76367644/call-azure-management-rest-api-through-client-credential-flow where one of my colleague answered it in detailed with the screenshots.
Let me know if you have any further questions, feel free to post back.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.