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,11 +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",
@@ -72,7 +73,8 @@
"azdata_cell_guid": "70b9744f-eb59-44e8-9b35-db590ac4651d",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -99,7 +101,8 @@
"azdata_cell_guid": "55bb2f96-6f7f-4aa0-9daf-d0f7f9d9243c",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -137,7 +140,8 @@
"azdata_cell_guid": "dde9388b-f623-4d62-bb74-36a05f5d2ea3",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -162,7 +166,8 @@
],
"metadata": {
"azdata_cell_guid": "19ebeaf4-94c9-4d2b-bd9f-e3c6bf7f2dda",
"tags": []
"tags": [],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -185,7 +190,8 @@
"azdata_cell_guid": "f9e8ddee-aefa-4951-b767-b318d941d2cd",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -212,7 +218,8 @@
"azdata_cell_guid": "6e085676-2cc5-4af8-819c-fa210244e6c3",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -243,7 +250,8 @@
"azdata_cell_guid": "38798c56-b2a0-4af8-b39e-5e26f3c79aeb",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -294,7 +302,8 @@
"azdata_cell_guid": "7ab2b3ec-0832-40b3-98c0-4aa87320e7ce",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -325,7 +334,8 @@
"azdata_cell_guid": "81a86ff6-5a83-48be-8be7-654d152eea89",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -347,7 +357,7 @@
"if ip_address == \"\":\n",
" print('Connect to Azure SQL Edge instance feature not available because device ip address is not provided')\n",
"else:\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>'))"
],
@@ -355,7 +365,8 @@
"azdata_cell_guid": "8bc29cce-96a7-4a78-89af-5c73a6431c24",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -372,7 +383,8 @@
"azdata_cell_guid": "e9d4188e-11c8-4aa5-8320-c3d0f6d023b2",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null