Skip to content

Commit

Permalink
Change AKS cluster to CPU and remove region (Azure#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinezgjuan authored Nov 4, 2021
1 parent 6808b71 commit 8358801
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,17 +544,15 @@
"from azureml.exceptions import ComputeTargetException\n",
"\n",
"# Choose a name for your cluster\n",
"aks_name = \"cluster-aks-gpu\"\n",
"aks_name = \"cluster-aks-cpu\"\n",
"# Check to see if the cluster already exists\n",
"try:\n",
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
" print(\"Found existing compute target\")\n",
"except ComputeTargetException:\n",
" print(\"Creating a new compute target...\")\n",
" # Provision AKS cluster with GPU machine\n",
" prov_config = AksCompute.provisioning_configuration(\n",
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
" )\n",
" # Provision AKS cluster with a CPU machine\n",
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
" # Create the cluster\n",
" aks_target = ComputeTarget.create(\n",
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,17 +539,15 @@
"from azureml.exceptions import ComputeTargetException\n",
"\n",
"# Choose a name for your cluster\n",
"aks_name = \"cluster-aks-gpu\"\n",
"aks_name = \"cluster-aks-cpu\"\n",
"# Check to see if the cluster already exists\n",
"try:\n",
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
" print(\"Found existing compute target\")\n",
"except ComputeTargetException:\n",
" print(\"Creating a new compute target...\")\n",
" # Provision AKS cluster with GPU machine\n",
" prov_config = AksCompute.provisioning_configuration(\n",
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
" )\n",
" # Provision AKS cluster with a CPU machine\n",
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
" # Create the cluster\n",
" aks_target = ComputeTarget.create(\n",
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,17 +523,15 @@
"from azureml.exceptions import ComputeTargetException\n",
"\n",
"# Choose a name for your cluster\n",
"aks_name = \"cluster-aks-gpu\"\n",
"aks_name = \"cluster-aks-cpu\"\n",
"# Check to see if the cluster already exists\n",
"try:\n",
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
" print(\"Found existing compute target\")\n",
"except ComputeTargetException:\n",
" print(\"Creating a new compute target...\")\n",
" # Provision AKS cluster with GPU machine\n",
" prov_config = AksCompute.provisioning_configuration(\n",
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
" )\n",
" # Provision AKS cluster with a CPU machine\n",
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
" # Create the cluster\n",
" aks_target = ComputeTarget.create(\n",
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,17 +607,15 @@
"from azureml.exceptions import ComputeTargetException\n",
"\n",
"# Choose a name for your cluster\n",
"aks_name = \"cluster-aks-gpu\"\n",
"aks_name = \"cluster-aks-cpu\"\n",
"# Check to see if the cluster already exists\n",
"try:\n",
" aks_target = ComputeTarget(workspace=ws, name=aks_name)\n",
" print(\"Found existing compute target\")\n",
"except ComputeTargetException:\n",
" print(\"Creating a new compute target...\")\n",
" # Provision AKS cluster with GPU machine\n",
" prov_config = AksCompute.provisioning_configuration(\n",
" vm_size=\"STANDARD_NC6\", location=\"eastus2\"\n",
" )\n",
" # Provision AKS cluster with a CPU machine\n",
" prov_config = AksCompute.provisioning_configuration(vm_size=\"STANDARD_D3_V2\")\n",
" # Create the cluster\n",
" aks_target = ComputeTarget.create(\n",
" workspace=ws, name=aks_name, provisioning_configuration=prov_config\n",
Expand Down

0 comments on commit 8358801

Please sign in to comment.