curl -X POST "https://login.microsoftonline.com/YOURSUBSCRIPTIONID/oauth2/token" -F grant_type=client_credentials -F resource=https://management.core.windows.net/ -F client_id="CLIENTSECRETID" -F client_secret="CLIENTSECRETVALUE" curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer ACCESSTOKENSTRING" -H "Host: management.azure.com" https://management.azure.com/subscriptions/YOURSUBSCRIPTIONID/providers/Microsoft.Compute/virtualMachines?api-version=2024-07-01