An armed man who held police at bay for more than an hour in Melbourne's CBD has been arrested.

The man exited the building in La Trobe Street just after 3pm, holding his hands above his head as police approached.

After receiving treatment for shallow cuts to his hands, he was escorted by police to a waiting ambulance.

Heavily armed police surrounded the Little Ipoh restaurant shortly before 2pm.