I'm trying to create an Azure spot instance with Terraform. I saw this discussion How do I request azure spot instances using terraform, in a virtual machine scale set?
I still couldn't figure out how provision Azure spot instances with terraform. Then I found this repo https://github.com/terraform-providers/terraform-provider-azurerm/tree/master/examples/vm-scale-set/linux
I used the examples from the repo to come up with my own terraform code. I pushed it to gitlab here's the link..https://gitlab.com/cloud-projectz/azure-spot-terraform.git
Basically what I'm trying to achieve is the creation of a spot instance or spot instances with public ip and ssh access while automating network security rules. When I run terraform apply everything seems to go okay. Then I notice that the public IP is not attached to the spot vm!! I can't figure out how to access the spot vm!! there's also a bash script in the repo that kind of outlines what I attend to accomplish with terraform.
Anybody help me with this? Azure spot vm via terraform with public ip and ssh access?
Thank You