From 9fb54860474ee25f0fa127d2f6e3f4724d987be7 Mon Sep 17 00:00:00 2001
From: SeokJin Han <4353157+dem108@users.noreply.github.com>
Date: Tue, 14 May 2024 09:55:50 -0700
Subject: [PATCH] add section for disabling profile (#3182)
* add section for disabling profile
* fix typo
---
cli/deploy-moe-autoscale.sh | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/cli/deploy-moe-autoscale.sh b/cli/deploy-moe-autoscale.sh
index cc06cc62ad9..320ed95c95c 100644
--- a/cli/deploy-moe-autoscale.sh
+++ b/cli/deploy-moe-autoscale.sh
@@ -57,7 +57,7 @@ az monitor autoscale rule create \
--resource $ENDPOINT_RESOURCE_ID
#
-#create weekend profile: scale to 2 nodes in weekend
+# create weekend profile: scale to 2 nodes in weekend
#
az monitor autoscale profile create \
--name weekend-profile \
@@ -66,10 +66,17 @@ az monitor autoscale profile create \
--recurrence week sat sun --timezone "Pacific Standard Time"
#
+# disable the autoscale profile
+#
+az monitor autoscale update \
+ --autoscale-name $AUTOSCALE_SETTINGS_NAME \
+ --enabled false
+#
+
#
# delete the autoscaling profile
az monitor autoscale delete -n "$AUTOSCALE_SETTINGS_NAME"
# delete the endpoint
az ml online-endpoint delete --name $ENDPOINT_NAME --yes --no-wait
-#
\ No newline at end of file
+#