The application for a temporary or permanent residence permit is processed in about 30 calendar days. The law does not require you to be physically present in Armenia. However, in practice, you are requested to be in Armenia at the time of application. Moreover, in the absolute majority of cases there is an in-person interview within the first two weeks following the application and a second interview at the Immigration Office is also possible. In other words, it is recommended that you stay in Armenia until you get the residence permit or at least make sure that you can come to Armenia on a very short notice in order to be interviewed.