Create a YouTube encoder event
Open YouTube Studio › Go Live and configure the event for an encoder. Set visibility to Unlisted for the rehearsal if that fits your account, then copy the Stream URL and Stream key. Check the channel name before copying either value.