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",
@@ -65,7 +66,8 @@
"azdata_cell_guid": "6196300e-f896-489b-8dca-b2c42eda2d6d",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -90,7 +92,8 @@
"azdata_cell_guid": "26170d1b-4332-4383-bcc4-1d97030daffc",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -127,7 +130,8 @@
"azdata_cell_guid": "93cb0147-7bf6-4630-b796-3811dfd1354b",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -151,7 +155,8 @@
"azdata_cell_guid": "7b102447-3198-488f-a995-982ae1fc8555",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -182,7 +187,8 @@
"azdata_cell_guid": "82f27460-88eb-4484-92ee-40305e650d70",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -206,7 +212,8 @@
"azdata_cell_guid": "211ee198-f1d1-4781-9daa-8497c2665de6",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -225,7 +232,7 @@
"cell_type": "code",
"source": [
"from IPython.display import *\n",
"connectionParameter = '{\"serverName\":\"localhost,' + sql_port + '\",\"providerName\":\"MSSQL\",\"authenticationType\":\"SqlLogin\",\"userName\":\"sa\",\"password\":' + json.dumps(sql_password) + '}'\n",
"connectionParameter = '{\"serverName\":\"localhost,' + sql_port + '\",\"providerName\":\"MSSQL\",\"authenticationType\":\"SqlLogin\",\"userName\":\"sa\",\"password\":' + json.dumps(sql_password) + ',\"options\": {\"trustServerCertificate\":true}}'\n",
"display(HTML('<br/><a href=\"command:azdata.connect?' + html.escape(connectionParameter)+'\"><font size=\"3\">Click here to connect to SQL Server</font></a><br/>'))\n",
"display(HTML('<br/><span style=\"color:red\"><font size=\"2\">NOTE: The SQL Server password is included in this link, you may want to clear the results of this code cell before saving the notebook.</font></span>'))"
],
@@ -233,7 +240,8 @@
"azdata_cell_guid": "4bc64915-c5ae-4507-8fb0-9e413ccc2fd0",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
@@ -260,10 +268,11 @@
"azdata_cell_guid": "f9e0f1ad-ba6e-4c17-84ea-cc5dceb1289b",
"tags": [
"hide_input"
]
],
"language": "python"
},
"outputs": [],
"execution_count": null
}
]
}
}