This post made me think about this question. What is the criterion on positive integer $a,b$ such that,
$$ax^2+by^2 = z^2$$
can be solved in positive integers $x,y,z$?
(Three broad classes are: 1) $a =\square$; 2) $a+b = \square$; and 3) if the Pell-like eqn $z^2-by^2 = a$ is solvable, but I assume there must be a general approach. This is such a basic question that I'm sure this must have been completely answered already.)
Square factors do not matter, as they can be absorbed into the other two variables. So, $a,b$ are squarefree. At this point, any common factor would make it impossible, so we need $\gcd(a,b) = 1.$ Suppose that, for any odd prime $p|a,$ we have $(b|p) = 1;$ also, for any odd prime $q|b,$ we have $(a|q) = 1;$ then there is an integer solution to $a x^2 + b y^2 = z^2.$
It is not enough to just have Jacobi symbols $(a|b)= (b|a)=1$ when they are composite (and odd, I guess). $$ 5 x^2 + 21 y^2 = z^2 $$ has no integer solutions, because $(5|3)= -1$ and $(5|7)=-1.$
We are ignoring the prime $2.$ The ability to do this is a big theorem. Any indefinite ternary, such as $a x^2 + b y^2 - z^2,$ is anisotropic in $\mathbb Q_r$ for an even number of finite primes $r.$ This is the global relation for the Hilbert Norm Residue symbol, page 46 in Rational Quadratic Forms by Cassels. Lemma 3.4; we are using the fact that our ternary is isotropic in the real numbers.
So, something with a $2$ in it, $$ 14 x^2 + 11 y^2 = z^2. $$ There is a solution because $(14|11)= (3|11) = 1$ and $(11|7) = (4|7) = 1.$
Another with a $2$ in it, $$ 206 x^2 + 107 y^2 = z^2. $$ There is a solution because $(107|103) = (4|103) = 1$ and $(206|107)=(103|107)(2|107)= -1 \cdot -1 = 1.$
Anyway, pages 80-82 in Cassels.
The even/odd thing means that if there were a problem with the prime $2,$ there would also be a problem with an odd prime.
On page 82 of Cassels he gives an explicit bound on a solution (if any) with very small values of $x,y,z,$ for your coefficients it is $$ a x^2 + b y^2 + z^2 < 4ab, $$ which can be re-written as $$ z^2 < 2 a b.$$ This is a really good bound, the absolute value of $z$ no larger than $\sqrt 2$ times the geometric mean of $a,b.$ For $ 206 x^2 + 107 y^2 = z^2 $ there are infinitely many solutions, including infinitely many with $\gcd(x,y,z)=1,$ but the ones satisfying the bound are $(7,1,101),$ $(7,5,113),$ $(14,2,202).$