Article 7
Competence to issue visas to third-country nationals legally present within the territory of a Member State
Third-country nationals who are legally present in the territory of a Member State and who are required to hold a visa to enter the territory of one or more other Member States shall apply for a visa at the consulate of the Member State that is competent in accordance with Article 5(1) or (2).