Skip to content

Commit eafdc9e

Browse files
committed
corrected Schema from storage account and event hubs
1 parent b2635d0 commit eafdc9e

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

articles/azure-monitor/essentials/activity-log-schema.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ Following is an example of an event using this schema:
832832
"records": [
833833
{
834834
"time": "2019-01-21T22:14:26.9792776Z",
835-
"resourceId": "/subscriptions/s1/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841",
835+
"resourceId": "/subscriptions/s1/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/123456112305841",
836836
"operationName": "microsoft.support/supporttickets/write",
837837
"category": "Write",
838838
"resultType": "Success",
@@ -841,32 +841,37 @@ Following is an example of an event using this schema:
841841
"callerIpAddress": "111.111.111.11",
842842
"correlationId": "c776f9f4-36e5-4e0e-809b-c9b3c3fb62a8",
843843
"identity": {
844-
"authorization": {
845-
"scope": "/subscriptions/s1/resourceGroups/MSSupportGroup/providers/microsoft.support/supporttickets/115012112305841",
846-
"action": "microsoft.support/supporttickets/write",
847-
"evidence": {
848-
"role": "Subscription Admin"
849-
}
850-
},
844+
"authorization": {
845+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-001/providers/Microsoft.Storage/storageAccounts/ msftstorageaccount",
846+
"action": "Microsoft.Storage/storageAccounts/listAccountSas/action",
847+
"evidence": {
848+
"role": "Azure Eventhubs Service Role",
849+
"roleAssignmentScope": "/subscriptions/00000000-0000-0000-0000-000000000000",
850+
"roleAssignmentId": "123abc2a6c314b0ab03a891259123abc",
851+
"roleDefinitionId": "123456789de042a6a64b29b123456789",
852+
"principalId": "abcdef038c6444c18f1c31311fabcdef",
853+
"principalType": "ServicePrincipal"
854+
}
855+
},
851856
"claims": {
852857
"aud": "https://management.core.windows.net/",
853-
"iss": "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/",
858+
"iss": "https://sts.windows.net/abcde123-86f1-41af-91ab-abcde1234567/",
854859
"iat": "1421876371",
855860
"nbf": "1421876371",
856861
"exp": "1421880271",
857862
"ver": "1.0",
858863
"http://schemas.microsoft.com/identity/claims/tenantid": "00000000-0000-0000-0000-000000000000",
859864
"http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd",
860-
"http://schemas.microsoft.com/identity/claims/objectidentifier": "2468adf0-8211-44e3-95xq-85137af64708",
865+
"http://schemas.microsoft.com/identity/claims/objectidentifier": "123abc45-8211-44e3-95xq-85137af64708",
861866
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "[email protected]",
862867
"puid": "20030000801A118C",
863-
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9vckmEGF7zDKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM",
868+
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "9876543210DKk1YzIY8k0t1_EAPaXoeHyPRn6f413zM",
864869
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "John",
865870
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Smith",
866871
"name": "John Smith",
867-
"groups": "cacfe77c-e058-4712-83qw-f9b08849fd60,7f71d11d-4c41-4b23-99d2-d32ce7aa621c,31522864-0578-4ea0-9gdc-e66cc564d18c",
872+
"groups": "12345678-cacfe77c-e058-4712-83qw-f9b08849fd60,12345678-4c41-4b23-99d2-d32ce7aa621c,12345678-0578-4ea0-9gdc-e66cc564d18c",
868873
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": " [email protected]",
869-
"appid": "c44b4083-3bq0-49c1-b47d-974e53cbdf3c",
874+
"appid": "12345678-3bq0-49c1-b47d-974e53cbdf3c",
870875
"appidacr": "2",
871876
"http://schemas.microsoft.com/identity/claims/scope": "user_impersonation",
872877
"http://schemas.microsoft.com/claims/authnclassreference": "1"
@@ -876,7 +881,7 @@ Following is an example of an event using this schema:
876881
"location": "global",
877882
"properties": {
878883
"statusCode": "Created",
879-
"serviceRequestId": "50d5cddb-8ca0-47ad-9b80-6cde2207f97c"
884+
"serviceRequestId": "12345678-8ca0-47ad-9b80-6cde2207f97c"
880885
}
881886
}
882887
]
@@ -885,8 +890,6 @@ Following is an example of an event using this schema:
885890

886891

887892

888-
889-
890893
## Next steps
891894
* [Learn more about the Activity Log](./platform-logs-overview.md)
892895
* [Create a diagnostic setting to send Activity Log to Log Analytics workspace, Azure storage, or event hubs](./diagnostic-settings.md)

0 commit comments

Comments
 (0)