Complete the code to create a Spot VM by setting the eviction policy.
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority [1]Setting --priority Spot creates a Spot VM which can be evicted to save costs.
Complete the code to set the eviction policy to delete for the Spot VM.
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority Spot --eviction-policy [1]The eviction policy delete means the VM is deleted when evicted, which is common for Spot VMs.
Fix the error in the code to specify the maximum price for the Spot VM.
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority Spot --max-price [1]Setting --max-price -1 means the Spot VM will use the current on-demand price as max price.
Fill both blanks to configure a Spot VM with eviction policy and max price.
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority [1] --eviction-policy [2]
Use Spot priority and delete eviction policy to create a Spot VM that is deleted on eviction.
Fill all three blanks to create a Spot VM with max price, eviction policy, and priority.
az vm create --resource-group myResourceGroup --name mySpotVM --image UbuntuLTS --priority [1] --eviction-policy [2] --max-price [3]
Setting priority to Spot, eviction policy to delete, and max price to -1 creates a Spot VM with default max price and deletion on eviction.