Cloud Policy Details
Supported on: At least Windows 10 Version 1909
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload |
|---|
| Option | Value | Type | Allowed values |
|---|---|---|---|
| Cloud ID (optional): | cloudid | REG_SZ | Text |
| Azure AD Directory ID: | tenantid | REG_SZ | Text |
| Policy GUID: | policyid | REG_SZ | Text |
| Enable firewall protection of Microsoft endpoints | enforceFirewall | REG_DWORD | Checked: 1 (REG_DWORD); unchecked: value deleted |
| Hostnames (optional): | hostnames | REG_MULTI_SZ | Text |
| Subdomain Supported Hostnames (optional): | subdomainSupportedHostnames | REG_MULTI_SZ | Text |
| IP Ranges (optional): | ipRanges | REG_MULTI_SZ | Text |
What it does (vendor explanation)
This setting enables and configures the device-based tenant restrictions feature for Azure Active Directory.
When you enable this setting, compliant applications will be prevented from accessing disallowed tenants, according to a policy set in your Azure AD tenant.
Note: Creation of a policy in your home tenant is required, and additional security measures for managed devices are recommended for best protection. Refer to Azure AD Tenant Restrictions for more details.
https://go.microsoft.com/fwlink/?linkid=2148762
Before enabling firewall protection, ensure that an App Control for Business policy that correctly tags applications has been applied to the target devices. Enabling firewall protection without a corresponding App Control for Business policy will prevent all applications from reaching Microsoft endpoints. This firewall setting is not supported on all versions of Windows - see the following link for more information. For details about setting up WDAC with tenant restrictions, see https://go.microsoft.com/fwlink/?linkid=2155230
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Tenant Restrictions > Cloud Policy Details
PowerShell equivalent (generated from the template)
# Cloud ID (optional):
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'cloudid' -Value <value> -PropertyType String -Force
# Azure AD Directory ID:
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'tenantid' -Value <value> -PropertyType String -Force
# Policy GUID:
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'policyid' -Value <value> -PropertyType String -Force
# Enable firewall protection of Microsoft endpoints
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'enforceFirewall' -Value <value> -PropertyType DWord -ForceGroup Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".