Deploy Marketing Definitions fails with timeout error on Azure Web Apps


Description

An error might occur after a while when deploying the definitions. By default, Azure Web Apps timeout is set to 230 seconds. This causes Azure to abort with a 500 error any request that does not send a response back to the client in the specified time frame. However, even if the request is aborted by Azure, and the error is shown in UI, the process is still running in the background, and there is no easy way to know when it finishes.

Solution

To resolve the issue, consider one of the following options: