It is advised to apply for a visa as soon as your admission is approved by your provider. Once your admission gets approved by your PhD provider, you will need to book your visa appointment and on the appointed day, you are required to visit the local German embassy and commence the student visa application process.