Skip to content

Commit 184af7f

Browse files
authored
Update workspace connection name (Azure#2335)
* Update workspace connection name
1 parent 4cd2c0d commit 184af7f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

sdk/python/resources/connections/connections.ipynb

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {},
67
"source": [
@@ -19,6 +20,7 @@
1920
]
2021
},
2122
{
23+
"attachments": {},
2224
"cell_type": "markdown",
2325
"metadata": {},
2426
"source": [
@@ -43,6 +45,7 @@
4345
]
4446
},
4547
{
48+
"attachments": {},
4649
"cell_type": "markdown",
4750
"metadata": {},
4851
"source": [
@@ -79,6 +82,7 @@
7982
]
8083
},
8184
{
85+
"attachments": {},
8286
"cell_type": "markdown",
8387
"metadata": {},
8488
"source": [
@@ -115,7 +119,7 @@
115119
")\n",
116120
"\n",
117121
"ws_connection = WorkspaceConnection(\n",
118-
" name=\"<connection_name>\",\n",
122+
" name=\"<workspace_connection_name>\",\n",
119123
" target=\"<acr_url>\", # testacr.azurecr.io,\n",
120124
" type=\"container_registry\",\n",
121125
" credentials=credentials,\n",
@@ -125,6 +129,7 @@
125129
]
126130
},
127131
{
132+
"attachments": {},
128133
"cell_type": "markdown",
129134
"metadata": {},
130135
"source": [
@@ -149,13 +154,17 @@
149154
"credentials = PatTokenConfiguration(pat=git_pat)\n",
150155
"\n",
151156
"ws_connection = WorkspaceConnection(\n",
152-
" name=\"<connection_name>\", target=\"<git_url>\", type=\"git\", credentials=credentials\n",
157+
" name=\"<workspace_connection_name>\",\n",
158+
" target=\"<git_url>\",\n",
159+
" type=\"git\",\n",
160+
" credentials=credentials,\n",
153161
")\n",
154162
"\n",
155163
"ml_client.connections.create_or_update(ws_connection)"
156164
]
157165
},
158166
{
167+
"attachments": {},
159168
"cell_type": "markdown",
160169
"metadata": {},
161170
"source": [
@@ -180,7 +189,7 @@
180189
"credentials = SasTokenConfiguration(sas_token=python_feed_sas)\n",
181190
"\n",
182191
"ws_connection = WorkspaceConnection(\n",
183-
" name=\"<connection_name>\",\n",
192+
" name=\"<workspace_connection_namename>\",\n",
184193
" target=\"<python_feed_url>\",\n",
185194
" type=\"python_feed\",\n",
186195
" credentials=credentials,\n",

0 commit comments

Comments
 (0)