Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 2.56 KB

iot-edge-create-container-registry.md

File metadata and controls

42 lines (28 loc) · 2.56 KB
authorms.servicems.topicms.datems.author
PatAltimore
azure-iot-edge
include
12/30/2019
patricka

Create a container registry

In this tutorial, you use the Azure IoT Edge and Azure IoT Hub extensions to build a module and create a container image from the files. Then you push this image to a registry that stores and manages your images. Finally, you deploy your image from your registry to run on your IoT Edge device.

Important

The Azure IoT Edge Visual Studio Code extension is in maintenance mode.

You can use any Docker-compatible registry to hold your container images. Two popular Docker registry services are Azure Container Registry and Docker Hub. This tutorial uses Azure Container Registry.

If you don't already have a container registry, follow these steps to create a new one in Azure:

  1. In the Azure portal, select Create a resource > Containers > Container Registry.

  2. Provide the following required values to create your container registry:

    FieldValue
    SubscriptionSelect a subscription from the drop-down list.
    Resource groupUse the same resource group for all of the test resources that you create during the IoT Edge quickstarts and tutorials. For example, IoTEdgeResources.
    Registry nameProvide a unique name.
    LocationChoose a location close to you.
    SKUSelect Basic.
  3. Select Review + create, then Create.

  4. Select your new container registry from the Resources section of your Azure portal home page to open it.

  5. In the left pane of your container registry, select Access keys from the menu located under Settings.

    :::image type="content" source="../media/iot-edge-create-container-registry/access-keys.png" alt-text="Screenshot of the Access Keys menu location." lightbox="../media/iot-edge-create-container-registry/access-keys.png":::

  6. Enable Admin user with the toggle button and view the Username and Password for your container registry.

  7. Copy the values for Login server, Username, and password and save them somewhere convenient. You use these values throughout this tutorial to provide access to the container registry.

close