Metadata Service URL
Get access tokens from the metadata service
Check if we are inside an Azure VM
Invoke-RestMethod -Headers @{"Metadata"="true"} -Uri "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | fl *Last updated