Comments (5)
Could you please share some more information about the issue and how we can reproduce on our end?
from microsoft365dsc.
is there a ' in the displayname of the group ? I have had this issue with apostrophes.
from microsoft365dsc.
No, we have no ' in the displayname, just an hyphen.
How to reproduce this problem :
- We export all the group
- We manually change the DisabledPlans when the AssignedLicences is not null in the previous created .PS1 file
- We save the .ps1 file
- We execute the .ps1 file to create the .mof
- We apply the new .mof file with Start-DscConfiguration -Path Folder Created With Previous Step
This was working perfectly before.
from microsoft365dsc.
I was a bit impatient and ignored the warnings from the test run (hoping it was due to something else) --> also got me some duplicated groups. I do have IDs in the config but to different tenants so I'm falling into a incorrect "fix" via https://github.com/microsoft/Microsoft365DSC/pull/4370/files#diff-21e85585dbcfad3a814015a305f2c306a15cf27bc860e2b6d321c1142329d500 (it also replaced the single quotes of the filter instead of just the $DisplayName variable content resulting in an error on the "get").
the above should be changed to the same fix as @NikCharlebois did a couple lines down
from microsoft365dsc.
All the groups are like this : LGG-***-Microsoft 365 E3
Just replace the *** by a name with no character.
Also, we use always the same Id.
For exemple :
`
tututu
AADGroup "AADGroup-LGG-TUTUTU-Microsoft 365 E3"
{
ApplicationId = $ConfigurationData.NonNodeData.ApplicationId;
AssignedLicenses = @(MSFT_AADGroupLicense
{
DisabledPlans = @('ADALLOM_S_DISCOVERY')
SkuId = 'SPE_E3'
}
);
CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
Description = "Microsoft 365 E3 collaboration license for TUTUTU";
DisplayName = "LGG-TUTUTU-Microsoft 365 E3";
Ensure = "Present";
GroupTypes = @("DynamicMembership");
Id = "11a11a11a-11a1-1111-1ab1-1115e0511100";
MailEnabled = $False;
MailNickname = "***";
MemberOf = @();
MembershipRule = "";
MembershipRuleProcessingState = "On";
Owners = @();
SecurityEnabled = $True;
TenantId = $OrganizationName;
}
## tatata
AADGroup "AADGroup-LGG-TATATA-Microsoft 365 E3"
{
ApplicationId = $ConfigurationData.NonNodeData.ApplicationId;
AssignedLicenses = @(MSFT_AADGroupLicense
{
DisabledPlans = @('ADALLOM_S_DISCOVERY')
SkuId = 'SPE_E3'
}
);
CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
Description = "Microsoft 365 E3 collaboration license for TATATA";
DisplayName = "LGG-TATATA-Microsoft 365 E3";
Ensure = "Present";
GroupTypes = @("DynamicMembership");
Id = "11a11a11a-11a1-1111-1ab1-1115e0511100";
MailEnabled = $False;
MailNickname = "***";
MemberOf = @();
MembershipRule = "";
MembershipRuleProcessingState = "On";
Owners = @();
SecurityEnabled = $True;
TenantId = $OrganizationName;
}
`
I hope this will help you.
from microsoft365dsc.
Related Issues (20)
- IntuneDeviceConfigurationPolicyiOS: NetworkUsageRules not exporting correctly
- IntuneDeviceConfigurationEndpointProtectionPolicyWindows10: Cannot compile if ProfileTypes (in FirewallRules) is present
- Minimum 'Azure (custom) role' / 'permissions' for O365 export
- Export-M365DSCConfiguration: had a failure when running with the Connecting to PnP step
- Assert-M365DSCBlueprint "Error: Cannot index into a null array" HOT 2
- How to extract details New-M365DSCReportFromConfiguration HOT 1
- Write-Host replaced by Write-Error for Azure Automation Accounts
- New-M365DSCDeltaReport - No discrepancies have been found HOT 10
- AAD - Custom domain names
- Test-M365DSCParameterState: Function can fail when calling Compare-PSCustomObjectArrays
- How come Roadmap/Backlog is stopped in Azure DevOps HOT 2
- EXOHostedContentFilterPolicy documentation has a bug
- ExoAuthenticationPolicyAssignment: Only returning 1000 users for each authentication policy when exporting
- EXOHostedContentFilterPolicy supports some MSFT deprecated settings
- M365DSCRuleEvaluation: Is not evaluated with Assert-M365DSCBlueprint HOT 3
- All Conditional Access policies fail to be migrated with non-terminating errors during Start-DscConfiguration HOT 4
- What are the permitted values of [AADConditionalAccessPolicy]: TransferMethods ? HOT 1
- IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy: Cannot compile if PasswordComplexity is set to 5
- AADServicePrincipal: BUG DSC Drift on AADApplication AppId Guid HOT 1
- Every time I use Start-DscConfiguration I get errors about needing to connect to MS Graph
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft365dsc.