An Azure relational database service.
Are you using the wizard, also for execution? Better don't do that, the wizard do have a command timeout of 30 seconds and if the execution exceed this timeout, it fails.
Always use script in query windows, that has no default timeout. For this follow the wizard uo to last step. Instead of let it execution, generate the scrip with the button on to left.