Synapse doesn't deploy because of spark pool reference
Iam deploying Azure Synapse with Terraform. The problem is deployment fail because of notebook reference. That's normal because in Synapse we can't use a notebook without attaching spark pool. I have the following error (with Terraform, or even when trying to delete the spark pool through the Azure portal).
Error: waiting for the deletion of Spark Pool: (Big Data Pool Name "synsp01" / Workspace Name "X" / Resource Group "rg-X"): Future#WaitForCompletion: the number of retries has been exceeded: StatusCode=400 -- Original Error: Code="DeleteSparkComputeAdfError" Message="The document cannot be deleted since it is referenced by X."`
I know I can create a new spark pool and attach notebooks to the new one. But no the final solution with terraform, I guess the error will come again. What can I do (in Synapse or Terraform) to avoid this error? UPDATE : I deleted all my notebooks and pipelines on Synapse. I published, and I still have the error when deploying with Terraform.