@@ -8,7 +8,7 @@ ms.subservice: enterprise-readiness
8
8
ms.reviewer : None
9
9
ms.author : larryfr
10
10
author : Blackmist
11
- ms.date : 04/11 /2024
11
+ ms.date : 08/29 /2024
12
12
ms.topic : how-to
13
13
ms.custom :
14
14
- build-2023
@@ -142,7 +142,7 @@ Before following the steps in this article, make sure you have the following pre
142
142
resource_group = "<RESOURCE_GROUP>"
143
143
144
144
# get a handle to the subscription
145
- ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group)
145
+ ml_client = MLClient(DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name= resource_group)
146
146
```
147
147
148
148
# [Azure portal](#tab/portal)
@@ -294,7 +294,7 @@ To configure a managed VNet that allows internet outbound communications, use th
294
294
295
295
` ` ` python
296
296
# Get the existing workspace
297
- ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, "myworkspace")
297
+ ml_client = MLClient(DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name= resource_group, workspace_name= "myworkspace")
298
298
ws = ml_client.workspaces.get()
299
299
300
300
# Basic managed VNet configuration
@@ -568,7 +568,7 @@ To configure a managed VNet that allows only approved outbound communications, u
568
568
569
569
` ` ` python
570
570
# Get the existing workspace
571
- ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, "myworkspace")
571
+ ml_client = MLClient(DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name= resource_group, workspace_name= "myworkspace")
572
572
ws = ml_client.workspaces.get()
573
573
574
574
# Basic managed VNet configuration
@@ -793,7 +793,7 @@ To enable the [serverless Spark jobs](how-to-submit-spark-jobs.md) for the manag
793
793
794
794
` ` ` python
795
795
# Connect to a workspace named "myworkspace"
796
- ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, workspace_name="myworkspace")
796
+ ml_client = MLClient(DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name= resource_group, workspace_name="myworkspace")
797
797
798
798
# whether to provision Spark vnet as well
799
799
include_spark = True
@@ -839,7 +839,7 @@ The following example shows how to provision a managed VNet:
839
839
840
840
` ` ` python
841
841
# Connect to a workspace named "myworkspace"
842
- ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, workspace_name="myworkspace")
842
+ ml_client = MLClient(DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name= resource_group, workspace_name="myworkspace")
843
843
844
844
# whether to provision Spark vnet as well
845
845
include_spark = True
@@ -889,7 +889,7 @@ resource_group = "<your resource group name>"
889
889
workspace = "<your workspace name>"
890
890
891
891
ml_client = MLClient(
892
- DefaultAzureCredential(), subscription_id, resource_group, workspace
892
+ DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name= resource_group, workspace_name= workspace
893
893
)
894
894
895
895
# Get workspace info
@@ -936,7 +936,7 @@ The following example demonstrates how to manage outbound rules for a workspace
936
936
937
937
` ` ` python
938
938
# Connect to the workspace
939
- ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, workspace_name="myworkspace")
939
+ ml_client = MLClient(DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name= resource_group, workspace_name="myworkspace")
940
940
941
941
# Specify the rule name
942
942
rule_name = "<some-rule-name>"
0 commit comments