SAN FRANCISCO—City officials here are investigating whether a pediatrician illegally gave medical exemptions to parents seeking to not vaccinate their children for school entry, as the U.S. struggles to get control of a growing measles outbreak.

A subpoena by City Attorney Dennis Herrera requests the patient records of Dr. Kenneth Stoller, an outspoken opponent of vaccination requirements. The patients’ names were redacted.

California...