Skip to content

Commit 622f878

Browse files
author
Larry Franks
committed
tweaks to code snippet per engineering
1 parent 9895ef5 commit 622f878

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/machine-learning/how-to-enable-virtual-network.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ The following code snippet demonstrates how to **create a new AKS cluster**, and
377377

378378
```python
379379
import azureml.core
380+
from azureml.core.compute.aks import AksUpdateConfiguration
380381
from azureml.core.compute import AksCompute, ComputeTarget
381382

382383
# Verify that cluster does not exist already
@@ -403,7 +404,7 @@ except:
403404
aks_target.wait_for_completion(show_output = True)
404405

405406
# Update AKS configuration to use an internal load balancer
406-
update_config = AksUpdateConfiguration(None, "InternalLoadBalancer")
407+
update_config = AksUpdateConfiguration(None, "InternalLoadBalancer", "default")
407408
aks_target.update(update_config)
408409
# Wait for the operation to complete
409410
aks_target.wait_for_completion(show_output = True)

0 commit comments

Comments
 (0)