The present invention provides compounds of the formula: which are useful as inhibitors of PHD, pharmaceutical compositions thereof, methods for treatment of conditions associated with HIF, processes for making the compounds and intermediates thereof.