ADMX Viewer →

Allow only selected Microsoft Entra tenant IDs

Computer Configuration > Administrative Templates > Dev Tunnels

Computer Policy name RestrictedTenantAccess TunnelsPolicies.admx Dev Tunnels V1.0.0

Registry

Key (computer)HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\DevTunnels
Value nameTenantsRestricted
Supported onTunnel CLI 1.0.1249 or later; Visual Studio: 17.9.3 or later, Preview 17.10.0 or later; VSCode: 1.88.0-insider or later, stable 1.88.0 or later
NamespaceMicrosoft.Policies.DevTunnels

Options

OptionValue writtenType and rangeDefault
Enter Allowed Tenant IDs: (required) AllowedTenantIdList REG_EXPAND_SZ, up to 150 characters none

What each state writes

Computed with the same rules RFF Conformance uses, with the default options. Pick your own options in the builder below.

Enabled

'Enter Allowed Tenant IDs:' is required for 'Allow only selected Microsoft Entra tenant IDs'.

Disabled
HKLM\SOFTWARE\Policies\Microsoft\DevTunnels TenantsRestricted value removed
HKLM\SOFTWARE\Policies\Microsoft\DevTunnels AllowedTenantIdList value removed
Not configured
HKLM\SOFTWARE\Policies\Microsoft\DevTunnels TenantsRestricted value removed
HKLM\SOFTWARE\Policies\Microsoft\DevTunnels AllowedTenantIdList value removed

In Intune

Intune sets third-party templates by importing the ADMX first. In the admin center that is Devices > Configuration > Import ADMX, then a profile from Imported Administrative templates. With a custom (OMA-URI) profile instead, ingest the file once and then set the policy:

1. Ingest the ADMX./Device/Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/DevTunnels/Policy/TunnelsPolicies
String value: the whole contents of TunnelsPolicies.admx. "DevTunnels" is a name you choose; use the same one below.
2. Set it (device)./Device/Vendor/MSFT/Policy/Config/DevTunnels~Policy~DevTunnels/RestrictedTenantAccess
Value to enable<enabled/><data id="DevTunnels_RestrictedTenantAccess_TextBox" value="your enter allowed tenant ids"/>
Value to disable<disabled/>

Path format from Microsoft's ADMX ingestion documentation; the category part comes from this ADMX.

Build it

Choose a state and options. You get the exact writes, a .reg file, a script that applies them, and a script that checks a machine and reports drift. Nothing leaves your browser.

Keep it set across your fleet

Group Policy writes these values once per refresh and never tells you when something changes them back. RFF Conformance reads them from every computer, shows which ones drifted and who changed them, and puts them back on approval, with each change versioned and undoable. It works without a domain controller.

How Conformance works · Your baseline from this site

Source: Dev Tunnels policy templates, version V1.0.0, published by Microsoft 2024-07-15. Policy names and option labels are Microsoft's. Microsoft's full description of this setting: search Microsoft Learn.

ADMX Viewer is open source: github.com/deadarcher/AdmxViewer. Found a wrong registry value, a missing catalog, or a template that won't load? Open an issue, email brian@getrff.com, or use the form below.