Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

[Intune] Missing resource for AppControl For Business?

Open 1Dimitri opened this issue 6 months ago • 5 comments

In the current Intune portal, there are 2 tabs for the AppControl for business part:

  1. Policies
  2. Managed Installer

Manager Installer corresponds to the

Image

IntuneManagedInstallerPolicyWindows10 resource, but I fail to see which resource maps the 'policies' part.

Any idea?

1Dimitri avatar May 15 '26 13:05 1Dimitri

@1Dimitri That's the resource IntuneAppControlForBusinessPolicyWindows10 which is responsible for this policy type.

FabienTschanz avatar May 15 '26 19:05 FabienTschanz

There's no resource found of this kind in my test tenants for that. When I look at the code it uses Get-MgBetaDeviceManagementConfigurationPolicy which outputs many policies but not this one :-?

Also https://graph.microsoft.com/beta/deviceManagement/ConfigurationPolicies doesn't return it either

1Dimitri avatar May 18 '26 09:05 1Dimitri

That's interesting, I can export it without issues using the following:

PS> Export-M365DSCConfiguration -Components IntuneAppControlForBusinessPolicyWindows10 -Path D:\testbed -applicationId $clientIdIntune -TenantId $tenantIdName -CertificateThumbprint $certThumbprintIntune

You might not see it because there are several pages available. Did you try Get-MgBetaDeviceManagementConfigurationPolicy -All, which will return all policies and not just the first (I believe) 50?

FabienTschanz avatar May 18 '26 10:05 FabienTschanz

I only have 12 of them but running all makes it appear :-?

An export still doesn't work in M365DSC but the template ID I have is not the same one as in the code. I've got d3849ba8-bf95-467c-9640-aa2334eae9e3_1, you've got some different IDs, it seems, https://github.com/Microsoft365DSC/Microsoft365DSC/blob/4bc58f80f132c7685d2f76d5264312052dd583cc/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneAppControlForBusinessPolicyWindows10/MSFT_IntuneAppControlForBusinessPolicyWindows10.psm1#L287

1Dimitri avatar May 18 '26 12:05 1Dimitri

True that, found it. Microsoft changed the template without any notification in the Intune service release notes, that's why we missed it. I'll open a PR with a new resource with which you'll be able to manage the configuration.

FabienTschanz avatar May 18 '26 13:05 FabienTschanz