Skip to content
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

Issue happening on ReverseDSC module #3645

Closed
Ngims opened this issue Sep 5, 2023 · 0 comments · Fixed by #3647 or #3651
Closed

Issue happening on ReverseDSC module #3645

Ngims opened this issue Sep 5, 2023 · 0 comments · Fixed by #3647 or #3651
Labels
Bug Something isn't working Core Engine

Comments

@Ngims
Copy link

Ngims commented Sep 5, 2023

Description of the issue

I did an export of the AAD components
$SourceCredential = Get-Credential
Connect-M365Tenant -Workload 'MicrosoftGraph' -Credential $SourceCredential
Update-M365DSCAllowedGraphScopes -All -Type Read -Environment 'Global'
Export-M365DSCConfiguration -Credential $SourceCredential -Components @("AADAdministrativeUnit", "AADApplication", "AADAuthenticationMethodPolicy", "AADAuthenticationMethodPolicyAuthenticator", "AADAuthenticationMethodPolicyEmail", "AADAuthenticationMethodPolicyFido2", "AADAuthenticationMethodPolicySms", "AADAuthenticationMethodPolicySoftware", "AADAuthenticationMethodPolicyTemporary", "AADAuthenticationMethodPolicyVoice", "AADAuthenticationMethodPolicyX509", "AADAuthenticationStrengthPolicy", "AADAuthorizationPolicy", "AADConditionalAccessPolicy", "AADCrossTenantAccessPolicy", "AADCrossTenantAccessPolicyConfigurationDefault", "AADCrossTenantAccessPolicyConfigurationPartner", "AADEntitlementManagementAccessPackage", "AADEntitlementManagementAccessPackageAssignmentPolicy", "AADEntitlementManagementAccessPackageCatalog", "AADEntitlementManagementAccessPackageCatalogResource", "AADEntitlementManagementConnectedOrganization", "AADGroupLifecyclePolicy", "AADGroupsNamingPolicy", "AADGroupsSettings", "AADNamedLocationPolicy", "AADRoleDefinition", "AADRoleSetting", "AADSecurityDefaults", "AADTenantDetails", "AADTokenLifetimePolicy")
-Path "C:\M365DSC" `
-FileName "AAD.ps1"

Exporting the config of tenant using the following command: .\AAD.ps1 -Credential $TargetCredential errors out
AAD.zip

Microsoft 365 DSC Version

1.23.830.1

Which workloads are affected

Azure Active Directory

The DSC configuration

AAD.zip

Verbose logs showing the problem

At C:\M365DSC\AAD.ps1:197 char:41
+                     }                    State = 'default'
+                                         ~
There is an incomplete property assignment block in the instance definition.
At C:\M365DSC\AAD.ps1:230 char:9
+         }
+         ~
Unexpected token '}' in expression or statement.
At C:\M365DSC\AAD.ps1:6540 char:5
+     }
+     ~
Unexpected token '}' in expression or statement.
At C:\M365DSC\AAD.ps1:6541 char:1
+ }
+ ~
Unexpected token '}' in expression or statement.
At C:\M365DSC\AAD.ps1:182 char:9
+         AADAuthenticationMethodPolicyAuthenticator "AADAuthentication ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Resource 'AADAuthenticationMethodPolicyAuthenticator' requires that a value of type 'String' be provided for property
'Id'.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : IncompletePropertyAssignmentBlock

Environment Information + PowerShell Version

OsName               : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

Name                           Value
----                           -----
PSVersion                      5.1.17763.1971
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.1971
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Core Engine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants