Avallon is a subprefecture of the Yonne department, the capital of the "arrondissement" of Avallon and the administrative centre () of the canton Avallon formed by 27 "communes", with 14,851 inhabitants .