The directed movement of microcin B17, a bactericidal peptide (antibiotic) produced by some enteric bacteria, into, out of or within a cell, or between cells, by means of some agent such as a transporter or pore.