Skip to content

Commit c2ec485

Browse files
authored
Update Obtain credentials using TokenLibrary.ipynb
1 parent 916c88a commit c2ec485

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Notebooks/Scala/Obtain credentials using TokenLibrary.ipynb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@
5050
],
5151
"attachments": {}
5252
},
53+
{
54+
"cell_type": "code",
55+
"execution_count": null,
56+
"outputs": [],
57+
"metadata": {},
58+
"source": [
59+
"// TokenLibrary can be used for obtaining secrets from AKV using either workspace MSI or user credentials as shown below respectively\n",
60+
"\n",
61+
"val secret: String = TokenLibrary.getSecret(\"<akvName>\", \"<secret>\", \"<akvLinkedService>\")\n",
62+
"val secret: String = TokenLibrary.getSecret(\"<akvName>\", \"<secret>\")\n",
63+
""
64+
],
65+
"attachments": {}
66+
},
5367
{
5468
"cell_type": "code",
5569
"execution_count": null,

0 commit comments

Comments
 (0)