Welcome to Microsoft Q&A Platform, thanks for posting your query here.
For your ask on allowing spot VM's, you can put this under nodearray section inside the slurm template.
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.