You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@NikCharlebois Hi, the property ScopedRoleMembers, inside resource AADAdministrativeUnit, is not being setup properly because of Convert-DSCStringParamToVariable from ReverseDSC.
Which regex should be added there to solve this particular issue? Something like the below or should the code above this chunk cope with this automatically?
$DSCBlock=$DSCBlock-replace"`"\);$",");"
NikCharlebois
added a commit
to NikCharlebois/Microsoft365DSC
that referenced
this issue
Aug 28, 2023
Description of the issue
I did an export of the following source components
Export-M365DSCConfiguration -Components @("AADAdministrativeUnit", "AADGroupsSettings", "SPOAccessControlSettings", "SPOApp", "SPOBrowserIdleSignout", "SPOSharingSettings") -Credential $SourceCredential
Exporting the config of tenant using the following command: .\M365TenantConfig.ps1 -Credential $Credential errors out
Microsoft 365 DSC Version
1.23.809.1
Which workloads are affected
Azure Active Directory, SharePoint Online
The DSC configuration
M365TenantConfig.zip
Verbose logs showing the problem
PS C:\M365DSC> .\M365TenantConfig.ps1 -Credential $Credential
At C:\M365DSC\M365TenantConfig.ps1:115 char:63
The string is missing the terminator: ".
At C:\M365DSC\M365TenantConfig.ps1:62 char:28
Unexpected token 'AADGroupsSettings"
{
AllowGuestsToAccessGroups = $True;
AllowGuestsToBeGroupOwner = $False;
AllowToAddGuests = $True;
Credential = $Credscredential;
EnableGroupCreation = $False;
Ensure = "Present";
GuestUsageGuidelinesUrl = "";
IsSingleInstance = "Yes";
UsageGuidelinesUrl = "";
}
SPOAccessControlSettings "SPOAccessControlSettings"
{
CommentsOnSitePagesDisabled = $True;
Credential = $Credscredential;
DisallowInfectedFileDownload = $False;
DisplayStartASiteOption = $False;
EmailAttestationReAuthDays = 30;
EmailAttestationRequired = $False;
Ensure = "Present";
ExternalServicesEnabled = $True;
IPAddressAllowList = "";
IPAddressEnforcement = $False;
IPAddressWACTokenLifetime = 15;
IsSingleInstance = "Yes";
SocialBarOnSitePagesDisabled = $False;
}
SPOBrowserIdleSignout "SPOBrowserIdleSignout"
{
Credential = $Credscredential;
Enabled = $True;
IsSingleInstance = "Yes";
SignOutAfter = "1.00:00:00";
WarnAfter = "23:30:00";
}
SPOSharingSettings "SPOSharingSettings"
{
BccExternalSharingInvitations = $False;
Credential = $Credscredential;
DefaultLinkPermission = "View";
DefaultSharingLinkType = "AnonymousAccess";
EnableGuestSignInAcceleration = $False;
Ensure = "Present";
FileAnonymousLinkType = "Edit";
FolderAnonymousLinkType = "Edit";
IsSingleInstance = "Yes";
MySiteSharingCapability = "ExternalUserAndGuestSharing";
NotifyOwnersWhenItemsReshared = $True;
PreventExternalUsersFromResharing = $False;
ProvisionSharedWithEveryoneFolder = $False;
RequireAcceptingAccountMatchInvitedAccount = $True;
SharingCapability = "ExternalUserAndGuestSharing";
SharingDomainRestrictionMode = "None";
ShowAllUsersClaim = $False;
ShowEveryoneClaim = $False;
ShowEveryoneExceptExternalUsersClaim = $True;
ShowPeoplePickerSuggestionsForGuestUsers = $False;
}
}
}
M365TenantConfig -ConfigurationData .\ConfigurationData.psd1 -Credential $Credential
' in expression or statement.
At C:\M365DSC\M365TenantConfig.ps1:125 char:2
+
Missing closing ')' in subexpression.
At C:\M365DSC\M365TenantConfig.ps1:125 char:1
+
There is an incomplete property assignment block in the instance definition.
At C:\M365DSC\M365TenantConfig.ps1:33 char:5
Missing closing '}' in statement block or type definition.
At C:\M365DSC\M365TenantConfig.ps1:10 char:1
Missing closing '}' in statement block or type definition.
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: