I'm using Azure DevOps to deploy Synapse Workspace in a release pipeline using 'Synapse workspace deployment' plugin. There's a Spark pool in my source Workspace but the target Workspace deployment fails half way through, when deploying a Spark job definition, with error: "The document creation or update failed because of invalid reference \'sparkpool1\'. Earlier in the logs, it deployed Dedicated SQL pool and SQL scripts successfully.
So I looked at the TemplateForWorkspace.json on the workspace_publish branch on GIT repo. There's no declaration of SparkPool1 as a resource. It is only referred once when it comes to the Spark job definition as "referenceName" in "properties".
It seems like an issue when generating the template when publishing the source Workspace.
Could you please advise on how I can solve this?