From db46dd5f3d74f6dbd39c8a5f703de840faa8d412 Mon Sep 17 00:00:00 2001 From: olprod Date: Fri, 25 Oct 2024 19:53:15 -0700 Subject: [PATCH] Copy Files From Source Repo (2024-10-25 19:53) --- Labs/11/setup.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Labs/11/setup.sh b/Labs/11/setup.sh index f11df11..2ec4309 100644 --- a/Labs/11/setup.sh +++ b/Labs/11/setup.sh @@ -7,16 +7,17 @@ suffix=${suffix:0:18} # Set the necessary variables RESOURCE_GROUP="rg-dp100-l${suffix}" -RESOURCE_PROVIDER="Microsoft.MachineLearning" REGIONS=("eastus" "westus" "centralus" "northeurope" "westeurope") RANDOM_REGION=${REGIONS[$RANDOM % ${#REGIONS[@]}]} WORKSPACE_NAME="mlw-dp100-l${suffix}" COMPUTE_INSTANCE="ci${suffix}" COMPUTE_CLUSTER="aml-cluster" -# Register the Azure Machine Learning resource provider in the subscription -echo "Register the Machine Learning resource provider:" -az provider register --namespace $RESOURCE_PROVIDER +# Register the Azure Machine Learning and additional resource providers in the subscription +echo "Register the required resource providers:" +az provider register --namespace "Microsoft.MachineLearningServices" +az provider register --namespace "Microsoft.PolicyInsights" +az provider register --namespace "Microsoft.Cdn" # Create the resource group and workspace and set to default echo "Create a resource group and set as default:" @@ -33,4 +34,4 @@ az ml compute create --name ${COMPUTE_INSTANCE} --size STANDARD_DS11_V2 --type C # Create compute cluster echo "Creating a compute cluster with name: " $COMPUTE_CLUSTER -az ml compute create --name ${COMPUTE_CLUSTER} --size STANDARD_DS11_V2 --max-instances 2 --type AmlCompute \ No newline at end of file +az ml compute create --name ${COMPUTE_CLUSTER} --size STANDARD_DS11_V2 --max-instances 2 --type AmlCompute