Skip to content

Commit

Permalink
Copy Files From Source Repo (2024-10-25 19:53)
Browse files Browse the repository at this point in the history
  • Loading branch information
olprod committed Oct 26, 2024
1 parent 11c7765 commit db46dd5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Labs/11/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand All @@ -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
az ml compute create --name ${COMPUTE_CLUSTER} --size STANDARD_DS11_V2 --max-instances 2 --type AmlCompute

0 comments on commit db46dd5

Please sign in to comment.