Open neil-yechenwei opened 5 years ago
Error: azurerm\resource_arm_private_link_service.go:844:19: tags.Expand undefined (type map[string]interface {} has no field or method Expand) azurerm\resource_arm_private_link_service.go:844:27: undefined: t
func expandArmPrivateLinkServicePrivateEndpoint(input []interface{}) *network.PrivateEndpoint { if len(input) == 0 { return nil } v := input[0].(map[string]interface{}) id := v["id"].(string) location := azure.NormalizeLocation(v["location"].(string)) tags := v["tags"].(map[string]interface{}) etag := v["etag"].(string) result := network.PrivateEndpoint{ Etag: utils.String(etag), ID: utils.String(id), Location: utils.String(location), Tags: tags.Expand(t), } return &result }
After checked, we can specify the tags for sub resource "private endpoint" while creating parent resource "private link service". Attached snapshot.
Error: azurerm\resource_arm_private_link_service.go:844:19: tags.Expand undefined (type map[string]interface {} has no field or method Expand) azurerm\resource_arm_private_link_service.go:844:27: undefined: t
func expandArmPrivateLinkServicePrivateEndpoint(input []interface{}) *network.PrivateEndpoint { if len(input) == 0 { return nil } v := input[0].(map[string]interface{}) id := v["id"].(string) location := azure.NormalizeLocation(v["location"].(string)) tags := v["tags"].(map[string]interface{}) etag := v["etag"].(string) result := network.PrivateEndpoint{ Etag: utils.String(etag), ID: utils.String(id), Location: utils.String(location), Tags: tags.Expand(t), } return &result }