Harry Potter and his friends never had any interactions with Astoria throughout their school life. I don't think Harry knew who she was until the final epilogue, where he then recognized her only as Draco's wife.