diff --git a/sdk/python/jobs/spark/submit_spark_standalone_jobs_managed_vnet.ipynb b/sdk/python/jobs/spark/submit_spark_standalone_jobs_managed_vnet.ipynb index c43de23c26..515ea84b65 100644 --- a/sdk/python/jobs/spark/submit_spark_standalone_jobs_managed_vnet.ipynb +++ b/sdk/python/jobs/spark/submit_spark_standalone_jobs_managed_vnet.ipynb @@ -123,7 +123,9 @@ " tags=dict(purpose=\"demo\"),\n", ")\n", "\n", - "ws_mvnet.managed_network = ManagedNetwork(IsolationMode.ALLOW_INTERNET_OUTBOUND)\n", + "ws_mvnet.managed_network = ManagedNetwork(\n", + " isolation_mode=IsolationMode.ALLOW_INTERNET_OUTBOUND\n", + ")\n", "\n", "rule_name = \"\"\n", "service_resource_id = f\"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Storage/storageAccounts/{blob_storage_account}\"\n", @@ -263,7 +265,7 @@ "outputs": [], "source": [ "# List outbound rules for a workspace\n", - "rule_list = ml_client._workspace_outbound_rules.list(resource_group, ws_name)\n", + "rule_list = ml_client._workspace_outbound_rules.list(ws_name)\n", "print([r._to_dict() for r in rule_list])" ] }, @@ -302,7 +304,7 @@ "outputs": [], "source": [ "# Get details of an outbound rule by name\n", - "rule = ml_client._workspace_outbound_rules.get(resource_group, ws_name, rule_name)\n", + "rule = ml_client._workspace_outbound_rules.get(ws_name, rule_name)\n", "print(rule)\n", "print(rule._to_dict())" ] @@ -648,7 +650,7 @@ "outputs": [], "source": [ "# List outbound rules for a workspace\n", - "rule_list = ml_client._workspace_outbound_rules.list(resource_group, ws_name)\n", + "rule_list = ml_client._workspace_outbound_rules.list(ws_name)\n", "print([r._to_dict() for r in rule_list])" ] }, @@ -820,13 +822,11 @@ }, "outputs": [], "source": [ - "# Delete anoutbound rule from a workspace\n", - "ml_client._workspace_outbound_rules.begin_remove(\n", - " resource_group, ws_name, rule_name\n", - ").result()\n", + "# Delete an outbound rule from a workspace\n", + "ml_client._workspace_outbound_rules.begin_remove(ws_name, rule_name).result()\n", "\n", "# List outbound rules for the workspace\n", - "rule_list = ml_client._workspace_outbound_rules.list(resource_group, ws_name)\n", + "rule_list = ml_client._workspace_outbound_rules.list(ws_name)\n", "print([r._to_dict() for r in rule_list])" ] },