Skip to content

Commit

Permalink
Add security_profile column in azure_compute_virtual_machine table. C…
Browse files Browse the repository at this point in the history
…loses #383 (#387)
  • Loading branch information
c0d3r-arnab authored Oct 6, 2021
1 parent 02a28ce commit 7d8f50b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azure/table_azure_compute_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
11 changes: 11 additions & 0 deletions docs/tables/azure_compute_virtual_machine.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```

0 comments on commit 7d8f50b

Please sign in to comment.