Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maggie Ma committed Sep 20, 2023
1 parent b2c1bfb commit 8034c5b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 20 additions & 1 deletion cli/deploy-mlcompute-update-to-system-identity.sh
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
az ml compute update --name mycluster --identity-type system_assigned
export COMPUTE_NAME=mycluster-sa

does_compute_exist()
{
if [ -z $(az ml compute show -n $COMPUTE_NAME --query name) ]; then
echo false
else
echo true
fi
}

echo "Checking if compute $COMPUTE_NAME already exists"
if [ "$(does_compute_exist)" == "true" ]; then
echo "Skipping, compute: $COMPUTE_NAME exists"
else
echo "Provisioning compute: $COMPUTE_NAME"
az ml compute create --name "$COMPUTE_NAME" --type amlcompute
fi

az ml compute update --name "$COMPUTE_NAME" --identity-type system_assigned
1 change: 1 addition & 0 deletions infra/bootstrapping/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ amlcompute_to_delete=(
minimal-example
basic-example
mycluster
mycluster-sa
mycluster-msi
location-example
low-pri-example
Expand Down

0 comments on commit 8034c5b

Please sign in to comment.