curl -s -H Metadata:true http://169.254.169.254/metadata/instance?api-version=2021-02-01 | jq -r '.network.interface | .[] | .ipv4.ipAddress | .[] | .publicIpAddress'
#output
13.70.193.102
Get a list of remote desktop sessions via Command Line
qwinsta # or query session
0 Comments