If you kill the end boss of Scarlet Halls without letting him cast Book Burner you can loot the Tome of Ancient Teleport: Dalaran from the shelves, allowing you to teleport to the Dalaran crater at approximately the place where the teleport area in Dalaran is, only without the city there.
Once you own that you can buy the Portal version in regular Dalaran.

If you kill the end boss of Scarlet Halls without letting him cast Book Burner you can loot the Tome of Ancient Teleport: Dalaran from the shelves, allowing you to teleport to the Dalaran crater at approximately the place where the teleport area in Dalaran is, only without the city there.
Once you own that you can buy the Portal version in regular Dalaran.

When you kill the last boss in Scarlet Hall, you can found a clickable book. It loot Teleport: Dalaran's Craters.
Once you learn it, you can go in Dalaran and speak to a magical vendor next to the Alliance sanctuary. The tome of Portail: Dalaran's craters can be acquire in it.

The spells are in your spell book in the General tab.
They are called Teleport: Vale of Eternal Blossoms and Portal: Vale of Eternal Blossoms.
Open your spell book, drag the spell to your bar.

Done? You don't need a macro to do that. A macro is not easier than that. A macro is not a better solution than that if all you want is access to the spells. The macro suggested is directly referencing those 2 spells that are in your spellbook. If you didn't already have those 2 spells in your spellbook then that macro just wouldn't work.

If you already have a 'port macro you use, with keybinds and modifiers, sure edit that. Go nuts. But why make a macro just to replace a spell you already have with nothing more than a "/cast" command?

Spells in your spellbook are arrange in alphabetical order and you have so few active skill that appear in the "general" tab of your spellbook that these spells are present on the very first page, no "searching" is involved
You press P and there they are, right in front of you

I find it much simpler to type /macro than to look through my tab for a certain spell.

Hah, what?

/macro opens the Macro interface. You then need to choose to create a new macro, choose an icon, paste in the code, and then drag that new macro to your bars.
P opens the Spellbook. You then click General and there the spells are on page 1, then drag them to your bars.