If you legally changed your name, you will need to obtain a new passport. Once you have obtained a new passport, you can then apply for a visa.