Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Query incorrect, remove now and Vikas will get back to us
Browse files Browse the repository at this point in the history
  • Loading branch information
pinyuko authored Mar 26, 2024
1 parent 4f4b323 commit 8b4799d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// Azure Resource Graph Query
// Find all disks that are not encrypted
resources
| where type == "microsoft.compute/disks"
| extend encryptionType = properties.encryption.type
| extend diskState = properties.diskState
| where encryptionType !in ("EncryptionAtRestWithCustomerKey", "EncryptionAtRestWithPlatformAndCustomerKeys", "EncryptionAtRestWithPlatformKey")
| project recommendationId="vm-19", name, id, tags, param1=strcat("encryptionType: " , properties.encryption.type), param2= strcat ("diskstate: ", properties.diskState)
// under-development

0 comments on commit 8b4799d

Please sign in to comment.