diff --git a/python/ray/autoscaler/_private/_azure/azure-vm-template.json b/python/ray/autoscaler/_private/_azure/azure-vm-template.json index 826255e14774..638729fecc4d 100644 --- a/python/ray/autoscaler/_private/_azure/azure-vm-template.json +++ b/python/ray/autoscaler/_private/_azure/azure-vm-template.json @@ -253,7 +253,7 @@ } }, "priority": "[parameters('priority')]", - "evictionPolicy": "[parameters('evictionPolicy')]", + "evictionPolicy": "[if(equals(parameters('priority'), 'Spot'), parameters('evictionPolicy'), '')]", "billingProfile": "[parameters('billingProfile')]" }, "identity": {