to extend the default timeout for terraform creation you can add the following to that resource:
resource "<resource_name>" "<resource_name>" {
...
timeouts {
create: "1h30m",
update: "2h",
delete: "20m"
}
}
But I have always gone for the create-import option since I don't want to block my build agent for that long. But if the timeout comes from the underlying API:s this will not help and you should file an issue: https://github.com/hashicorp/terraform-provider-azurerm/issues (or search for if anyone else have filed one)
[edit]
https://github.com/hashicorp/terraform-provider-azurerm/issues/17206
(seems like a similar issue, if the timeout solution doesn't help, vote this up/follow it and provide more info if you have)