-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting resource "IntuneDeviceConfigurationPolicyWindows10" not including all data #2976
Comments
This resource only retrieve the general device restriction and thus only retrieving 3 of your policies Thanks |
I have other policy types like "Delivery Optimization", "Administrative Templates", "Custom", "Endpoint Protection", "Network Boundary" and "Device Features" |
@icpw some of those will be releases in the next upgrade like delivery optimisation and endpoint protection some under development like administrative template and the others will be added as feature request and developed asap. thanks |
Thank you for your response William-Francillette. I am looking forward to the release of all policy types whenever they are available. I was surprised that they were missing because I could not see that in the documentation. Are you going to cover the custom type with the OMA-URI configuration? |
Yep, I was working on it yesterday - should be released soon |
Everyone's efforts are much appreciated. This is a great tool. |
All Setting Template (Device Configuration) have been implemented - this issue can be closed after this week update @andikrueger |
DEVICE (running scripts)
OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-GB
OsMuiLanguages : {en-GB, en-US}
Microsoft365DSC version:
ModuleBase Version
C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.23.301.1 1.23.301.1
ISSUE DESCRIPTION
I have more than 20 policies defined and only 3 are exported
I have successfully exported ALL the policies using deviceconfiguration-get.ps1 from Microsoft Intune samples
Command:
Export-M365DSCConfiguration -Components @($c) -CertificateThumbprint $Thumbprint -TenantId $TenantID -ApplicationId $AppID -Path $outpath -FileName $outfile -ConfigurationName $C -ErrorVariable err -verbose -ErrorAction Continue
VERBOSE: No existing connections to Microsoft Graph
Exporting Microsoft 365 configuration for Components: IntuneDeviceConfigurationPolicyWindows10
Authentication methods specified:
VERBOSE: Dependencies were already successfully validated.
VERBOSE: ApplicationId, TenantId, CertificateThumbprint were specified. Connecting via Service Principal
VERBOSE: Dependencies were already successfully validated.
Connecting to {MicrosoftGraph}...✅
[1/1] Extracting [IntuneDeviceConfigurationPolicyWindows10] using {CertificateThumbprint}...VERBOSE: Attempting connection to {MicrosoftGraph} with:
Certificate
Tenantid
ApplicationID
VERBOSE:
Name Value
ApplicationSecret
ApplicationId xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ManagedIdentity False
Ensure Present
Credential
TenantId xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CertificateThumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DisplayName ACSC - Device Restrictions
VERBOSE:
Name Value
ApplicationSecret
ApplicationId xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ManagedIdentity False
Ensure Present
Credential
TenantId xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CertificateThumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DisplayName Custom - Device Restrictions
VERBOSE: Dependencies were already successfully validated.
VERBOSE: ApplicationId, TenantId, CertificateThumbprint were specified. Connecting via Service Principal
VERBOSE: Dependencies were already successfully validated.
VERBOSE:
Name Value
ApplicationSecret
ApplicationId xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ManagedIdentity False
Ensure Present
Credential
TenantId xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CertificateThumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DisplayName Windows 10 Device Config
VERBOSE: Dependencies were already successfully validated.
VERBOSE: ApplicationId, TenantId, CertificateThumbprint were specified. Connecting via Service Principal
VERBOSE: Dependencies were already successfully validated.
⌛ Export took {37 seconds}
Is there a filter being applied when querying the resource?
NOTE: The policies being exported are all of type "Device Restrictions".
I have other policy types like "Delivery Optimization","Administrative Templates", "Custom", "Endpoint Protection", "Network Boundary" and "Device Features" - all policies copied from the Australian Government Blueprint (desktop.gov.au)
These policy types are not being exported.
Thanks for all your effort for developing and supporting this great resource.
The text was updated successfully, but these errors were encountered: