"We cannot allow this dangerous disease to make a comeback here in New York City," de Blasio added. "We have to stop it now."
Some Orthodox Jews have resisted vaccines. City health officials said yesterday that yeshivas in Williamsburg that do not comply will face fines and possible closure.
Government pushes for inoculations and public space bans of unvaccinated children have prompted a backlash among anti-vaccination activists, whose misinformation campaigns have led to declines for vaccinations against one of the world's most contagious diseases.
In New York City late last year, the health department ordered yeshivas and childcare centres in the Orthodox Jewish community to keep out unvaccinated students. One school that violated the mandate has been linked to more than 40 cases, the health department said.
"We're making clear that unvaccinated students will not be allowed in schools or day cares," de Blasio said.
Insured adults and children will be covered. Those who are uninsured will pay what they can afford, de Blasio said, and those who cannot afford the vaccination will receive it free.
The outbreak in the area has been tied to a child who had not received the measles, mumps and rubella (MMR) vaccine and contracted the disease during a trip to Israel.
"Since then, there have been additional people from Brooklyn and Queens who were unvaccinated and acquired measles while in Israel," according to the city's health department.
New York has contended with measles outbreaks and the legal challenges that have arisen in efforts to contain them.
An outbreak in Rockland County outside New York City led officials to ban unvaccinated children from public places in mid-March. A state judge overturned that decision 10 days later.