Create Device Update for IoT Hub resources
To get started with Device Update, create a Device Update account and instance, and then set access control roles.
A Device Update account is a resource in your Azure subscription. A Device Update instance is a logical container within an account that is associated with a specific IoT hub. An instance contains updates and deployments associated with its IoT hub. You can create multiple instances within an account. For more information, see Device Update resources.
Create an account and instance
In the Azure portal, select Create a Resource and search for "Device Update for IoT Hub"
Select Create > Device Update for IoT Hub
On the Basics tab, provide the following information for your Device Update account and instance:
- Subscription: The Azure subscription to be associated with your Device Update account.
- Resource group: An existing or new resource group.
- Name: A name for your account.
- Location: The Azure region where your account will be located. For information about which regions support Device Update for IoT Hub, see Azure Products-by-region page.
- Check the box to assign the Device Update administrator role to yourself. You can also use the steps listed in the Configure access control roles section to provide a combination of roles to users and applications for the right level of access. You need to have Owner or User Access Administrator permissions in your subscription to manage roles.
- Instance Name: A name for your instance.
- IoT Hub Name: Select the IoT Hub you want to link to your Device Update instance
- Check the box to grant the right access to Azure Device Update service principal in the IoT Hub to set up and operate the Device Update Service. You need to have the right permissions to add access.
If you are unable to grant access to Azure Device Update service principal during resource creation, refer to configure the access control for users and Azure Device Update service principal . If this access is not set you will not be able to run deployment, device management and diagnostic operations. Learn more about the Azure Device Update service principal access.
Select Next: Diagnostics. Enabling Microsoft diagnostics, gives Microsoft permission to collect, store, and analyze diagnostic log files from your devices when they encounter an update failure. In order to enable remote log collection for diagnostics, you need to link your Device Update instance to your Azure Blob storage account. Selecting the Azure Storage account will automatically update the storage details.
On the Networking tab, to continue creating Device Update account and instance. Choose the endpoints that devices can use to connect to your Device Update instance. Accept the default setting, Public access, for this example.
Select Next: Review + Create. After validation, select Create.
You'll see that your deployment is in progress. The deployment status will change to "complete" in a few minutes. When it does, select Go to resource
Once you have created your Device Update resources, configure the access control for users and Azure Device Update service principal.