Skip to content

Commit bf321c0

Browse files
author
Goutham Bandapati
committed
adding AVS Key Encyrption Method
1 parent 73d993a commit bf321c0

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
// cannot-be-validated-with-arg
1+
// Azure Resource Graph Query
2+
// This query will return if the encryptionType is Customer-managed key or Microsoft-Managed key. If it is Customer-managed key, the query displays the keyName and keyVaultId
3+
Resources
4+
| where type =~ "microsoft.avs/privateclouds"
5+
| extend keyName = tostring(properties.encryption.keyVaultProperties.keyName)
6+
| extend encryptionType = case(
7+
isnull(keyName) or keyName == "", "Microsoft-managed keys",
8+
"Customer-managed keys"
9+
)
10+
| project subscriptionId, resourceGroup, name, encryptionType,
11+
keyVaultId = tostring(properties.encryption.keyVaultProperties.keyVaultId),
12+
keyName

0 commit comments

Comments
 (0)