From e71d03c5c3b86d1bbe6223208c8cdcce092cef7a Mon Sep 17 00:00:00 2001 From: kekulai-fredchang <134797490+kekulai-fredchang@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:59:54 -0700 Subject: [PATCH] [Azure][Cluster] Only set evictionPolicy to Delete when spot is used (#46959) Signed-off-by: ujjawal-khare --- python/ray/autoscaler/_private/_azure/azure-vm-template.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {