Reader small image

You're reading from  The Azure IoT Handbook

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781837633616
Edition1st Edition
Right arrow
Author (1)
Dan Clark
Dan Clark
author image
Dan Clark

Dan Clark is a senior developer and data engineer specializing in Microsoft technologies. He is focused on learning new AI and data technologies and training others on how to best implement those technologies. He has worked as an Azure Technical Trainer (ATT)for Microsoft and has over 25 years of experience as a Microsoft Certified Trainer. Dan has published several books and numerous articles on Microsoft technologies. He is a regular speaker at various developer and database conferences and user group meetings and enjoys interacting with the Microsoft communities.
Read more about Dan Clark

Right arrow

Allocation policies in DPS

Allocation policies in DPS determine how devices are assigned to IoT Hub. There are four policies you can choose from:

  • Evenly weighted distribution: The policy uses a weighted hash where all IoT hubs have the same weight assigned to them. You can adjust the weighted hash of a hub so that it gets more or fewer devices allocated to it.
  • Lowest latency: Devices are assigned according to the shortest communication time with the IoT device.
  • Static configuration: Devices are provisioned to a hub specified in the enrolment.
  • Custom, using an Azure function: This option provides any type of policy in a function that uses a custom webhook that gets called when provisioning the device.

The default policy is Evenly weighted distribution. The following figure shows how to set the allocation policy in the portal:

Figure 3.4 – Setting the allocation policy

A common practice when working with IoT devices is the need...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
The Azure IoT Handbook
Published in: Dec 2023Publisher: PacktISBN-13: 9781837633616

Author (1)

author image
Dan Clark

Dan Clark is a senior developer and data engineer specializing in Microsoft technologies. He is focused on learning new AI and data technologies and training others on how to best implement those technologies. He has worked as an Azure Technical Trainer (ATT)for Microsoft and has over 25 years of experience as a Microsoft Certified Trainer. Dan has published several books and numerous articles on Microsoft technologies. He is a regular speaker at various developer and database conferences and user group meetings and enjoys interacting with the Microsoft communities.
Read more about Dan Clark