With Azure Net SDK, how to create a Azure Spot VM. I did some research and just found how to create it via Azure Portal or arm template.
You need to create them as you normally would, but specify the eviction policy for the vm. That would be the way to create spot instance