Appeal from a judgment of the County Court of Greene County (Lalor, J.), rendered August 8, 2003, which revoked defendant’s probation and imposed a sentence of imprisonment.
Defendant pleaded guilty to attempted burglary in the second degree and received the agreed-upon sentence of time served and five years probation. Two months later, defendant was charged with violating the terms of his probation by using drugs and alcohol, being arrested and failing to follow through with recommended treatment. Defendant pleaded guilty to two of six counts of the violation petition. In exchange, the People agreed to recommend a sentence of five years in prison and three years of postrelease supervision, and to decline prosecution of an unrelated pending felony charge and two violations. After County *931Court sentenced him according to the plea agreement, defendant appealed.*
Defendant failed to preserve his claim that he was coerced into pleading guilty to the violation of probation. A motion to withdraw his plea or vacate the judgment of conviction was necessary to preserve that claim (see People v Hughes, 3 AD3d 736, 736 [2004]; People v Banks, 305 AD2d 812, 812 [2003], lv denied 100 NY2d 578 [2003]). Defendant’s remaining contentions are either unpreserved or lack merit.
Mercure, J.P., Crew III, Mugglin and Lahtinen, JJ., concur. Ordered that the judgment is affirmed.
Although defendant’s brief addresses arguments related to the underlying attempted burglary conviction, those issues are not properly before us because he failed to file a notice of appeal from that judgment of conviction (see CPL 450.30 [3]; People v Dabbs, 178 AD2d 848, 849 [1991], lv denied 79 NY2d 946 [1992]).