@MS Techie
Thank you for your post!
I don't believe this feature is possible, and based off our Azure REST API reference documentation, I didn't find any API which could fetch whether an Active Directory group exists within Azure AD. You might be able to leverage our Group resource type MS Graph REST API to get an Azure Active Directory (Azure AD) group, which can be a Microsoft 365 group, or a security group.
However, if you'd like this feature to be implemented, I'd recommend leverage our new User Voice forum and creating a feature request so our engineering team can look into this. I've also added the microsoft-graph-groups
tag to this thread so their community can take a look into this issue as well.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.
----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.