Manage public network access for your IoT Device Provisioning Service

To restrict access to a private endpoint for DPS in your virtual network, disable public network access. To do so, use the Azure portal or the publicNetworkAccess API. You can also allow public access by using the portal or the publicNetworkAccess API.

Turn off public network access using the Azure portal

To turn off public network access:

  1. Sign in to the Azure portal.

  2. From either the portal menu or the portal page, select All resources.

  3. Select your Device Provisioning Service instance.

  4. From the service menu, under Settings, select Networking.

  5. From the working pane, under Public network access, select Disabled

  6. Select Save.

    Screenshot that shows how to disable public network access for an IoT DPS instance in the Azure portal.

To turn on public network access:

  1. Select All networks.
  2. Select Save.

Disable public network access limitations

Note the following limitations when public network access is disabled:

DPS endpoint, IP address, and ports after disabling public network access

DPS is a multitenant Platform-as-a-Service (PaaS), where different customers share the same pool of compute, networking, and storage hardware resources. DPS's hostnames map to a public endpoint with a publicly routable IP address over the internet. Different customers share this DPS public endpoint, and IoT devices in wide-area networks and on-premises networks can all access it.

Disabling public network access is enforced on a specific DPS resource, ensuring isolation. To keep the service active for other customer resources using the public path, its public endpoint remains resolvable, IP addresses discoverable, and ports remain open. This discoverability isn't a cause for concern as Azure integrates multiple layers of security to ensure complete isolation between tenants. To learn more, see Isolation in the Azure Public Cloud.

IP Filter

If public network access is disabled, all IP filter rules are ignored. This behavior occurs because all IPs from the public internet are blocked. To use IP filtering, select the Selected IP ranges option.

Turn on all network ranges

To turn on all network ranges:

  1. Sign in to the Azure portal.
  2. From either the portal menu or the portal page, select All resources.
  3. Select your Device Provisioning Service instance.
  4. From the service menu, under Settings, select Networking.
  5. From the working pane, under Public network access, select All networks
  6. Select Save.