Note about setting location.

@sdgilley Is this update OK? We want to show that location can be set for a new public preview functionality.
This commit is contained in:
Larry Franks
2021-07-09 10:37:21 -04:00
committed by GitHub
parent cb695c91ce
commit 6a145086d8

View File

@@ -28,6 +28,7 @@ try:
cpu_cluster = ComputeTarget(workspace=ws, name=cpu_cluster_name)
print('Found existing cluster, use it.')
except ComputeTargetException:
# To use a different region for the compute, add a location='<region>' parameter
compute_config = AmlCompute.provisioning_configuration(vm_size='STANDARD_D2_V2',
max_nodes=4)
cpu_cluster = ComputeTarget.create(ws, cpu_cluster_name, compute_config)