From 7d8f50b02dbf25d775d0dd84790d511108fdf5be Mon Sep 17 00:00:00 2001 From: Arnab <45350738+c0d3r-arnab@users.noreply.github.com> Date: Wed, 6 Oct 2021 19:54:03 +0530 Subject: [PATCH] Add security_profile column in azure_compute_virtual_machine table. Closes #383 (#387) --- azure/table_azure_compute_virtual_machine.go | 6 ++++++ docs/tables/azure_compute_virtual_machine.md | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/azure/table_azure_compute_virtual_machine.go b/azure/table_azure_compute_virtual_machine.go index c4994667..3e8c93b8 100644 --- a/azure/table_azure_compute_virtual_machine.go +++ b/azure/table_azure_compute_virtual_machine.go @@ -320,6 +320,12 @@ func tableAzureComputeVirtualMachine(_ context.Context) *plugin.Table { Description: "The identity of the virtual machine, if configured.", Type: proto.ColumnType_JSON, }, + { + Name: "security_profile", + Description: "Specifies the security related profile settings for the virtual machine.", + Type: proto.ColumnType_JSON, + Transform: transform.FromField("VirtualMachineProperties.SecurityProfile"), + }, { Name: "win_rm", Description: "Specifies the windows remote management listeners. This enables remote windows powershell.", diff --git a/docs/tables/azure_compute_virtual_machine.md b/docs/tables/azure_compute_virtual_machine.md index 662ae13e..49256f01 100644 --- a/docs/tables/azure_compute_virtual_machine.md +++ b/docs/tables/azure_compute_virtual_machine.md @@ -138,3 +138,14 @@ where trim(elem) = 'UserAssigned' ); ``` + +### List security profile details + +```sql +select + name, + vm_id, + security_profile -> 'encryptionAtHost' as encryption_at_host +from + azure_compute_virtual_machine; +```