Skip to content

Commit a76ed28

Browse files
committed
Update TokenLibrary sample
1 parent 8a007cf commit a76ed28

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

Notebooks/Scala/Obtain credentials using TokenLibrary.ipynb

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,6 @@
5151
],
5252
"attachments": {}
5353
},
54-
{
55-
"cell_type": "code",
56-
"execution_count": null,
57-
"outputs": [],
58-
"metadata": {},
59-
"source": [
60-
"// Synapse has inbuilt integration of linked services with CosmosDB via TokenLibrary\n",
61-
"// For CosmosDB, linkedServiceName can be supplied through config\n",
62-
"// Direct invokation of TokenLibrary is not required for obtaining credentials and connection info\n",
63-
"\n",
64-
"config = {\n",
65-
"\"spark.cosmos.synapse.linkedService\" : \"<linkedServiceName>\",\n",
66-
"\"spark.cosmos.region\" : \"<region>\",\n",
67-
"\"spark.cosmos.container\" : \"<containerName>\"\n",
68-
"}\n",
69-
"\n",
70-
"val df = spark.read.format(\"cosmos.olap\").options(**config).load()"
71-
],
72-
"attachments": {}
73-
},
7454
{
7555
"cell_type": "code",
7656
"execution_count": null,
@@ -95,7 +75,9 @@
9575
"execution_count": null,
9676
"outputs": [],
9777
"metadata": {},
98-
"source": [],
78+
"source": [
79+
""
80+
],
9981
"attachments": {}
10082
}
10183
]

0 commit comments

Comments
 (0)