From b806dad271324bc35bf80dcbbda1a3b3e93ef4ae Mon Sep 17 00:00:00 2001 From: Itai Yankelevsky Date: Mon, 6 Jul 2020 17:23:13 +0300 Subject: [PATCH 1/2] Add subscriptionId field to AzureResource entity --- .../preview/2019-01-01-preview/SecurityInsights.json | 5 +++++ .../examples/entities/GetAzureResourceEntityById.json | 1 + 2 files changed, 6 insertions(+) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json index 0bfdb0305304..b31e37a057d8 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json @@ -4061,6 +4061,11 @@ "description": "The azure resource id of the resource", "readOnly": true, "type": "string" + }, + "subscriptionId": { + "description": "The subscription id of the resource", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json index d630c9f4f3ec..5e941ea0b3da 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json @@ -17,6 +17,7 @@ "properties": { "friendlyName": "vm1", "resourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1" + "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0" } } } From df2c0e46f6bba632ef8b09b43301e951ea3e2639 Mon Sep 17 00:00:00 2001 From: Itai Yankelevsky Date: Mon, 6 Jul 2020 17:25:39 +0300 Subject: [PATCH 2/2] wip --- .../examples/entities/GetAzureResourceEntityById.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json index 5e941ea0b3da..e4e589b66489 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/examples/entities/GetAzureResourceEntityById.json @@ -16,7 +16,7 @@ "kind": "AzureResource", "properties": { "friendlyName": "vm1", - "resourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1" + "resourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1", "subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0" } }