Capture AKS details from C#

Hello All,

I am writing with a request here, and It would be great if someone can share your thoughts about it from your experience.
Scenario - Consider we have a node as part of an AKS cluster and there are about three pods running on that node. There is an app deployed on all three pods.
I am looking for C# code snippet that can give you details of the Pod Name or Pod ID, Node Name or Node Id that it is running on. Basically the hierarchical details of all the elements that the code is running on in AKS cluster.
Thanks in advance.