in cmd/plan_command.go [173:187]
func (c *PlanCommand) getUserInputResourceType(resourceId string, values []string) string {
c.Ui.Warn(fmt.Sprintf("Couldn't find unique resource type for id: %s\nPossible values are [%s].\nPlease input an azurerm resource type:", resourceId, strings.Join(values, ", ")))
resourceType := ""
for {
reader := bufio.NewReader(os.Stdin)
resourceType, _ = reader.ReadString('\n')
resourceType = strings.Trim(resourceType, "\r\n")
for _, value := range values {
if value == resourceType {
return resourceType
}
}
c.Ui.Warn("Invalid input. Please input an azurerm resource type:")
}
}