Родитель
76193ee7b0
Коммит
516cef4430
|
@ -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
|
|
@ -68,6 +68,7 @@ amlcompute_to_delete=(
|
|||
minimal-example
|
||||
basic-example
|
||||
mycluster
|
||||
mycluster-sa
|
||||
mycluster-msi
|
||||
location-example
|
||||
low-pri-example
|
||||
|
|
Загрузка…
Ссылка в новой задаче