update samples from Release-53 as a part of 1.19.0 SDK stable release

This commit is contained in:
amlrelsa-ms
2020-12-07 18:55:07 +00:00
parent 41366a4af0
commit 48e3e7b510
39 changed files with 371 additions and 279 deletions

View File

@@ -280,6 +280,7 @@
"\n",
"aks_name = \"my-aks\"\n",
"\n",
"creating_compute = False\n",
"try:\n",
" aks_target = ComputeTarget(ws, aks_name)\n",
" print(\"Using existing AKS cluster {}.\".format(aks_name))\n",
@@ -290,7 +291,8 @@
" prov_config = AksCompute.provisioning_configuration()\n",
" aks_target = ComputeTarget.create(workspace=ws,\n",
" name=aks_name,\n",
" provisioning_configuration=prov_config)"
" provisioning_configuration=prov_config)\n",
" creating_compute = True"
]
},
{
@@ -300,7 +302,7 @@
"outputs": [],
"source": [
"%%time\n",
"if aks_target.provisioning_state != \"Succeeded\":\n",
"if creating_compute:\n",
" aks_target.wait_for_completion(show_output=True)"
]
},