Skip to content

Commit

Permalink
update test (#2658)
Browse files Browse the repository at this point in the history
Co-authored-by: Maggie Ma <[email protected]>
  • Loading branch information
MaggieHust and Maggie Ma authored Sep 22, 2023
1 parent 76193ee commit 516cef4
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 516cef4

Please sign in to comment.