The following curl command can also help:
curl -H "Metadata:true" http://169.254.169.254/metadata/instance/network?api-version=2023-07-01&format=json