-
Notifications
You must be signed in to change notification settings - Fork 18
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 support for VHD (Virtual Hard Disks) encryption check. closes #50 #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see comment, thanks!
@@ -237,6 +237,12 @@ func tableAzureComputeVirtualMachine(_ context.Context) *plugin.Table { | |||
Type: proto.ColumnType_BOOL, | |||
Transform: transform.FromField("VirtualMachineProperties.AdditionalCapabilities.UltraSSDEnabled"), | |||
}, | |||
{ | |||
Name: "vhd_uri", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sayan133 @LalitTurbot What is our strategy here on determining the column name? It seems like VirtualMachineProperties
has different properties with different depths. In this case, for vhd_uri
, Terraform has a field for it, but others like require_guest_provision_signal
don't. Another example is for linux_configuration_ssh_public_keys
, we include linux_configuration_ssh
, but for provision_vm_agent
we don't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For provision_vm_agent
we should have prefix linux_configuration_ssh
In Azure properties are deeply nested - in the case of properties inside the OsProfile
key -- the description of the column explains generally attribute clearly(for this reason avoided os_profile - prefix)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see suggested column name change
@@ -237,6 +237,12 @@ func tableAzureComputeVirtualMachine(_ context.Context) *plugin.Table { | |||
Type: proto.ColumnType_BOOL, | |||
Transform: transform.FromField("VirtualMachineProperties.AdditionalCapabilities.UltraSSDEnabled"), | |||
}, | |||
{ | |||
Name: "vhd_uri", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name: "vhd_uri", | |
Name: "os_disk_vhd_uri", |
Integration test logs
Logs
Example query results
Results
Virtual machine VHD info
We can fetch the storage account name from the VHD URI & from that storage account name, we can check the encryption status for the storage account containing the VHD blob