Thanks for reaching out to Microsoft Q&A
You have a diagnostic setting set up for your root management group to collect activity log events, including those for resource group creation/deletion, management group creation, and subscription creation/deletion.
However, you're observing two different log formats for management group creation and subscription creation events. The first format has an operationName
of "Microsoft.Management", while the second format has the expected operationName
with the correct resource provider and operation (e.g., "Microsoft.Subscription/Subscriptions/write").:
In the provided JSON logs, noticed the following differences:
- OperationName: The first log format has an
operationName
of "Microsoft.Management", which is not specific to a particular resource provider. In contrast, the second log format has anoperationName
that includes the resource provider and operation (e.g., "Microsoft.Subscription/Subscriptions/write"). - ResourceId: The first log format has a
resourceId
that points to the subscription, while the second log format has aresourceId
that includes the subscription ID and the event ID. - Properties: The first log format has a
properties
section with anentity
field, while the second log format has a more detailedproperties
section with fields likecaller
,claims
, anddescription
.
It's possible that the Azure Activity Log system is using different log formats for management group and subscription creation events, which are not specific to a particular resource provider. These events might be generated by the Azure management plane, which is responsible for managing Azure resources at a higher level.
When you select the parent management group in the management group dropdown, you're seeing the log format generated by the management plane. However, when you select the subscription, you're seeing the log format generated by the Azure resource provider (in this case, Microsoft.Subscription).
To confirm this
Check the Azure Activity Log documentation to see if there are any specific log formats mentioned for management group and subscription creation events.https://video2.skills-academy.com/en-us/azure/azure-monitor/essentials/activity-log-schema
Verify that your diagnostic setting is correctly configured to collect activity log events for both management group and subscription creation events.
If you're using Azure Monitor or another log analytics tool, check if there are any filtering or processing rules that might be affecting the log format.
Hope this helps. Do let us know if you any further queries.