Appeal from a judgment of the County Court of Albany County (Herrick, J), rendered August 22, 2012, convicting defendant upon his plea of guilty of the crime of criminal sale of a controlled substance in the third degree.
Defendant pleaded guilty to criminal sale of a controlled substance in the third degree in full satisfaction of an indictment, a probation violation and an uncharged crime, and waived his right to appeal. Pursuant to the plea agreement, defendant was to be sentenced to four years in prison, to be followed by two years of postrelease supervision. The terms of the plea agreement included the requirement that defendant cooperate with the Probation Department in its preparation of the presentence investigation report, which included answering its inquiries in conformity with his representations during the plea allocution and accepting responsibility for his crime. County Court warned defendant that he could receive an enhanced sentence of up to 12 years in prison if he violated the terms of the plea agreement. At sentencing, defendant acknowledged that he made statements to the Probation Department that were inconsistent with those made during the plea allocution. County Court thereafter found him in violation of the plea agreement and sentenced him, as a second felony offender, to 5V2 years in prison, to be followed by two years of postrelease supervision. Defendant now appeals.
We affirm. Contrary to defendant’s contention, we find that he knowingly, intelligently and voluntarily waived his right to appeal his conviction and sentence, as the record demonstrates that County Court distinguished the right to appeal from the rights automatically forfeited by his guilty plea and defendant
Contrary to defendant’s contention, County Court was justified in imposing an enhanced sentence, inasmuch as defendant admittedly violated an explicit condition of the plea agreement (see People v Coffey, 77 AD3d 1202, 1203-1204 [2010], lv denied 18 NY3d 882 [2012]; People v Faulkner, 54 AD3d 1134, 1135 [2008], lv denied 11 NY3d 854 [2008]). Finally, defendant’s contention that the enhanced sentence is harsh and excessive is precluded by his waiver of the right to appeal, inasmuch as County Court informed him of the plea conditions and the maximum sentence that could be imposed if he violated the plea agreement (see People v Thomas, 81 AD3d 997, 998 [2011], lv denied 16 NY3d 900 [2011]; People v Bove, 64 AD3d 812, 813 [2009], lv denied 13 NY3d 858 [2009]).
Ordered that the judgment is affirmed.