Enumeration using HTTP requests

Using HTTP requests

## Getting token for authorization
$Token = (Get-AzAccessToken).Token
 
## API endpoint for getting the resource group
$URI = 'https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups?api-version=2021-04-01'
 
## Actual API request 
(Invoke-RestMethod -Method GET -Uri $URI -Headers @{'Authorization' = "Bearer $Token"}).value

potential HTTP calls

If no SignInName only ObjectIDs do this through HTTP calls.

$token = 'eyJ0eX..'
$URI = 'https://management.azure.com/subscriptions?api-version=2020-01-01'
 
$RequestParams = @{
	Method = 'GET'
	Uri = $URI
	Headers = @{
		'Authorization' = "Bearer $token"
	}
}
(Invoke-RestMethod @RequestParams).value