Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security_profile column in azure_compute_virtual_machine table. Closes #383 #387

Merged
merged 1 commit into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
```