Azure / Azure-Lighthouse-samples

Provide samples for understanding managed service solutions
MIT License
286 stars 289 forks source link

API not retrieving tenant actions #124

Open alchemytechgroup0n123 opened 1 year ago

alchemytechgroup0n123 commented 1 year ago

What happened with the API to get the tenant-level registration and unregistration data?

The specific user querying the API can get see the directory data within the Azure Portal, but loading either the API for:

"https://management.azure.com/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01&`$filter=eventTimestamp ge '$($dateFormatForQuery)'"

, or the query that the Azure Portal is using:

https://management.azure.com/providers/microsoft.insights/eventtypes/management/values?api-version=2015-04-01&1$filter=eventTimestamp ge '$($dateFormatForQuery)' and eventTimestamp le '$($dateFormatForQueryHigher)'and eventChannels eq 'Admin, Operation' and resourceProvider eq 'Microsoft.Resources'

Return information, but NOT the specific registration and unregistration data.

Is this expected?