-
Notifications
You must be signed in to change notification settings - Fork 520
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
Unable to use Export-M365DSCConfiguration to export AzureAD configurations #3476
Comments
Could you share some more details about you environment? We are investigating another (similar) issue in #3454. It would be great to have further information. Please share the output of Get-ComputerInfo -Property @(
'OsName',
'OsOperatingSystemSKU',
'OSArchitecture',
'WindowsVersion',
'WindowsBuildLabEx',
'OsLanguage',
'OsMuiLanguages')
$PSVersionTable
Get-Module -ListAvailable |
You could also try to increase the value in PowerShell 5 first confirm the value is 4096 by typing $MaximumFunctionCount and then typing $MaximumFunctionCount=32768 and if that doesn't work download terminal and PowerShell 7 and the run the Update-M365DSCDependencies -Force -Verbose |
Please find below the output of above commands.`PS C:\Windows\system32> Get-ComputerInfo -Property @(
OsName : Microsoft Windows 10 Pro PS C:\Windows\system32> $PSVersionTable Name Value PSVersion 5.1.19041.3031 PS C:\Windows\system32> Get-Module -ListAvailable
ModuleType Version Name ExportedCommands Script 5.1.2 Azure {Get-AzureAutomationCertificate, Get-AzureAutomationConnection, New-AzureAutomationConnection, Remove-AzureAutomationConnection...}
ModuleType Version Name ExportedCommands Manifest 1.0.0.0 AppBackgroundTask {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourcePolicy, Unregister-AppBackgroundTask...} PS C:\Windows\system32>` |
Installed Microsoft 365 DSC following the article: https://microsoft365dsc.com/user-guide/get-started/how-to-install/
Post installation was able to verify Microsoft 365 DSC, as per below screen:
Thereafter, tried to export Azure AD configuration (leveraging Export-M365DSCConfiguration), but I get error as per below screen. Appreciate any pointers on what I am missing here.
Code used for exporting AzureAD configuration is as below:
`$Credential = Get-Credential
Export-M365DSCConfiguration -Components @("AADAdministrativeUnit", "AADApplication", "AADAuthenticationMethodPolicy", "AADAuthenticationMethodPolicyAuthenticator", "AADAuthenticationMethodPolicyEmail", "AADAuthenticationMethodPolicyFido2", "AADAuthenticationMethodPolicySms", "AADAuthenticationMethodPolicySoftware", "AADAuthenticationMethodPolicyTemporary", "AADAuthenticationMethodPolicyVoice", "AADAuthenticationMethodPolicyX509", "AADAuthenticationStrengthPolicy", "AADAuthorizationPolicy", "AADConditionalAccessPolicy", "AADCrossTenantAccessPolicy", "AADCrossTenantAccessPolicyConfigurationDefault", "AADCrossTenantAccessPolicyConfigurationPartner", "AADEntitlementManagementAccessPackage", "AADEntitlementManagementAccessPackageAssignmentPolicy", "AADEntitlementManagementAccessPackageCatalog", "AADEntitlementManagementAccessPackageCatalogResource", "AADEntitlementManagementConnectedOrganization", "AADGroup", "AADGroupLifecyclePolicy", "AADGroupsNamingPolicy", "AADGroupsSettings", "AADNamedLocationPolicy", "AADRoleDefinition", "AADRoleSetting", "AADSecurityDefaults", "AADServicePrincipal", "AADTenantDetails", "AADTokenLifetimePolicy", "AADUser") -Credential $Credential`
The text was updated successfully, but these errors were encountered: