Merge pull request #18 from kgremban/patch-1

Refresh workspace config in section 6
This commit is contained in:
manashgoswami 2020-02-07 18:49:40 -08:00 коммит произвёл GitHub
Родитель bfe176a6c2 908090fe44
Коммит 78afa91b09
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -404,7 +404,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"Create the driver file. Note that the `model.pkl` file in the get_model_path call is referring to a model named `model.pkl` registered under the workspace (what you registered above). It is NOT referenceing the local file." "Create the driver file. Note that the `model.pkl` file in the get_model_path call is referring to a model named `model.pkl` registered under the workspace (what you registered above). It is NOT referencing the local file."
] ]
}, },
{ {
@ -658,7 +658,9 @@
"metadata": {}, "metadata": {},
"source": [ "source": [
"## 6: Deploy container to Azure IoT Edge device\n", "## 6: Deploy container to Azure IoT Edge device\n",
"Create a deployment.json file that contains the modules you want to deploy to the device and the routes. Then push this file to the IoT Hub, which will then send it to the IoT Edge device. The IoT Edge agent will then pull the Docker images and run them." "Create a deployment.json file that contains the modules you want to deploy to the device and the routes. Then push this file to the IoT Hub, which will then send it to the IoT Edge device. The IoT Edge agent will then pull the Docker images and run them.\n",
"\n",
"This section pulls the container registry information from your workspace. Machine Learning workspaces don't automatically provision container registries when they're created, but wait until there's a container image to store. In the case of this tutorial, the container image was created in section 4.2. So in this section, we update the workspace config information. Your container registry still may not be ready by the time you get to this step. Keep running the first cell of this section until it finds the registry information. You can also check to see if the container registry exists yet by viewing the workspace overview page in the Azure portal."
] ]
}, },
{ {
@ -667,6 +669,9 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"# Update the workspace object\n",
"ws = Workspace.from_config()\n",
"\n",
"# Getting your container details\n", "# Getting your container details\n",
"container_reg = ws.get_details()[\"containerRegistry\"]\n", "container_reg = ws.get_details()[\"containerRegistry\"]\n",
"reg_name=container_reg.split(\"/\")[-1]\n", "reg_name=container_reg.split(\"/\")[-1]\n",