Micro-compression tests were carried out on pillars of 60 µm in diameter, milled by plasma focused ion beam in porous Yttria-Stabilized Zirconia (YSZ) pellets. The fracture properties were determined over a wide range of porosities (33%-63%) for 8YSZ and at a given pore volume fraction of 63% for 3YSZ. The mechanical properties determined from testing were reproducible thanks to the homogeneity of the microstructures. The Young's modulus was estimated as a function of the porosity from the unloading curve of tests stopped before fracture. The experiments conducted until the total rupture allowed measuring the compressive fracture strength, which was found to decrease when increasing the porosity. Specimen tested and unloaded just before the total fracture were cross-sectioned by focused ion beam -scanning electron microscope. A transition was detected from a brittle behavior, with macro-cracks parallel to the direction of solicitation, to a diffuse damage with microcracks, when increasing the porosity.