fix resource deployment notebooks (#21096)

This commit is contained in:
Alan Ren
2022-11-03 13:12:07 -07:00
committed by GitHub
parent d268b9948b
commit 5f16251ca7
9 changed files with 312 additions and 224 deletions

View File

@@ -2,12 +2,12 @@
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python"
},
"language_info": {
"name": "python",
"version": "3.6.6",
"version": "3.8.10",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
@@ -75,7 +75,8 @@
"azdata_cell_guid": "70b9744f-eb59-44e8-9b35-db590ac4651d",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -102,7 +103,8 @@
"azdata_cell_guid": "55bb2f96-6f7f-4aa0-9daf-d0f7f9d9243c",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -145,7 +147,8 @@
"azdata_cell_guid": "dde9388b-f623-4d62-bb74-36a05f5d2ea3",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -177,7 +180,8 @@
"azdata_cell_guid": "19ebeaf4-94c9-4d2b-bd9f-e3c6bf7f2dda",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -200,7 +204,8 @@
"azdata_cell_guid": "f9e8ddee-aefa-4951-b767-b318d941d2cd",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -227,7 +232,8 @@
"azdata_cell_guid": "6e085676-2cc5-4af8-819c-fa210244e6c3",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -255,7 +261,8 @@
"azdata_cell_guid": "f29b439e-cf05-4c35-aa47-1482ccd653bf",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -283,7 +290,8 @@
"azdata_cell_guid": "f9f5e4ec-82a5-45df-a408-ddb0fb21847c",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -334,7 +342,8 @@
"azdata_cell_guid": "7ab2b3ec-0832-40b3-98c0-4aa87320e7ce",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -364,7 +373,8 @@
"azdata_cell_guid": "c183c3e3-8699-4f29-993b-07bf848336e3",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -402,7 +412,8 @@
"azdata_cell_guid": "c8590c65-b274-460d-9659-97e81d2fd3ea",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -433,7 +444,8 @@
"azdata_cell_guid": "81a86ff6-5a83-48be-8be7-654d152eea89",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -452,7 +464,7 @@
"cell_type": "code",
"source": [
"from IPython.display import *\n",
"connectionParameter = '{\"serverName\":\"' + f'{ip_address},{sql_port}' + '\",\"providerName\":\"MSSQL\",\"authenticationType\":\"SqlLogin\",\"userName\": \"sa\",\"password\":' + json.dumps(sa_password) + '}'\n",
"connectionParameter = '{\"serverName\":\"' + f'{ip_address},{sql_port}' + '\",\"providerName\":\"MSSQL\",\"authenticationType\":\"SqlLogin\",\"userName\": \"sa\",\"password\":' + json.dumps(sa_password) + ',\"options\": {\"trustServerCertificate\":true}}'\n",
"display(HTML('<br/><a href=\"command:azdata.connect?' + html.escape(connectionParameter)+'\"><font size=\"3\">Click here to connect to the Azure SQL Edge instance</font></a><br/>'))\n",
"display(HTML('<br/><span style=\"color:red\"><font size=\"2\">NOTE: The Azure SQL Edge instance password is included in this link, you may want to clear the results of this code cell before saving the notebook.</font></span>'))"
],
@@ -460,7 +472,8 @@
"azdata_cell_guid": "8bc29cce-96a7-4a78-89af-5c73a6431c24",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -477,7 +490,8 @@
"azdata_cell_guid": "8b74ac43-a871-4d28-832d-e6da586f6d3a",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null