[Intune] Missing resource for AppControl For Business?
In the current Intune portal, there are 2 tabs for the AppControl for business part:
- Policies
- Managed Installer
Manager Installer corresponds to the
IntuneManagedInstallerPolicyWindows10 resource, but I fail to see which resource maps the 'policies' part.
Any idea?
@1Dimitri That's the resource IntuneAppControlForBusinessPolicyWindows10 which is responsible for this policy type.
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
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?
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
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.