Hello @Sanal Kumar Parakkad ,
Thanks for the ask and using the Microsoft Q&A platform .
When you create a Azure function , the deployment process creates a app id . You can see the same
Now navigate to the AAD search with the app name .
Please use the application ID In the resource id and it should work . I just tested that on my side .
Please do let me know how it goes .
Thanks
Himanshu
Please do consider clicking on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members