Had created a simple hello world Azure Functions QueueTrigger and when tried to deploy using the below command, got the highlighted error
$ sudo func kubernetes deploy --name myfunction --namespace functions-ns --registry myregistry
error: unable to recognize "STDIN": no matches for kind "ScaledObject" in version "keda.k8s.io/v1alpha1"
Running the below command resolved the issue:
func kubernetes install --namespace {a namespace}
More details here.