Where do you get TM Flamethrower on Pokemon Diamond?

East of Floaroma Town, surf off the left side of the bridge on route 205 until you reach Fuego Ironworks. Go in and find your way to the center of the maze of floor tiles and next to the furnace you'll find the TM. You can also buy it from the Gamecorner exchange for 10,100 coins.