I found the answer here.
Run the following in PowerShell.
$DebugPreference='Continue'
Get-AzureResourceGroup
The debug output will start like this:
DEBUG: 5:25:10 PM - GetAzureResourceGroupCommand begin processing with ParameterSet 'GetMultiple'.
DEBUG: 5:25:10 PM - using account id '[email protected]'...
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
POST
Absolute Uri:
https://management.azure.com/subscriptions/12345678-1234-1234-1234-1234567890ab/providers/microsoft.batch/register?api-version=2014-04-01-preview
Inspect the Absolute Uri - the query string parameter is api-version.
- https://management.azure.com/
- subscriptions/
- 12345678-1234-1234-1234-1234567890ab/
- providers/
- microsoft.batch/
- register?
- api-version=2014-04-01-preview
Where you're done, run the following in PowerShell to stop the debug output.
$DebugPreference='SilentlyContinue'