Ngrok is necessary to add a public URL to a locally hosted app (e.g. as a Webhook URL, for MS Teams bots or as in this case for Teams apps).