The First Minister laid a wreath outside Edinburgh city chambers during a ceremony involving veterans and serving personnel.