From 16689de07268aeff55cb91917f6e83888445c8f8 Mon Sep 17 00:00:00 2001 From: magodo Date: Tue, 19 Jul 2022 10:36:29 +0800 Subject: [PATCH] Support data plane only resource: azurerm_synapse_linked_service --- README.md | 1 + tool/aztft-crosscheck/main.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7aaaa6a..f2dfaaa 100644 --- a/README.md +++ b/README.md @@ -22,5 +22,6 @@ In most cases, `aztft` accepts Azure management plane resource ID as input. For |`azurerm_storage_share_directory` | `/subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/account1/fileServices/default/shares/share1/directories/path1`|For path that is more than one level, use `:` as separator. E.g. `path1` can be `dir1:dir2`| |`azurerm_storage_share_file` | `/subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/account1/fileServices/default/shares/share1/files/path1`|Note: For path that is more than one level, use `:` as separator. E.g. `path1` can be `dir1:file1`| |`azurerm_storage_table_entity` | `/subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/account1/tableServices/default/tables/table1/partitionKeys/pk1/rowkeys/rk1`|| +|`azurerm_synapse_linked_service` | `/subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Synapse/workspaces/ws1/linkedServices/service1`|| |`azurerm_synapse_role_assignment` | `/subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Synapse/workspaces/ws1/roleAssignments/role1`|| diff --git a/tool/aztft-crosscheck/main.go b/tool/aztft-crosscheck/main.go index 729cc89..d333de0 100644 --- a/tool/aztft-crosscheck/main.go +++ b/tool/aztft-crosscheck/main.go @@ -741,7 +741,8 @@ func isVerified(rt string) bool { "azurerm_subscription_policy_exemption", // the scope is sub "azurerm_management_group_policy_remediation", // the variant segment is fixed to be Microsoft.Management "azurerm_role_definition", // the scope is any - "azurerm_dev_test_schedule": + "azurerm_dev_test_schedule", + "azurerm_synapse_linked_service": // terraform used a pesudo mgmt plane like id return true // Deprecated