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
Description of the issue
Every time a set of AADGroup resources uses Test-TargetResource to determine whether or not the resource is in desired state, Test-TargetResource returns false. This leads to the instance of that resource having a set operation run against it every MOF application cycle, even if the resource is already in the desired state.
Microsoft 365 DSC Version
1.24.731.1 but issue present on 1.24.904.1 as well
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
The issue exists in groups with Ensure => Present and Ensure => Absent.
Example with Ensure => Present, some values sanitized:
AADGroup 'test-users' {
DependsOn =@(
'[AADApplication]AADApplication-Microsoft365DSC'
)
DisplayName ='test-users'
MailNickname ='test-users'
Description ='Test Users'
Owners =@(
"example1@contoso.com""example2@contoso.com""example3@contoso.com"
)
Members =@(
$arrayofusers
)
SecurityEnabled =$true
MailEnabled =$false
IsAssignableToRole =$true# AssignedToRole = @()
Visibility ='Private'
AssignedLicenses =@()
Ensure ='Present'
ApplicationId =$ApplicationId
TenantId =$TenantId
CertificateThumbprint =$Thumbprint
}
Example with Ensure => Absent, some values sanitized:
AADGroup 'security-group' {
DependsOn =@(
'[AADApplication]AADApplication-Microsoft365DSC'
)
DisplayName ='security-group'
MailNickname ='security-group'
Description ='Security Group'
Owners =@(
"example1@contoso.com""example2@contoso.com"
)
Members =@()
SecurityEnabled =$true
MailEnabled =$false
IsAssignableToRole =$true
Visibility ='Private'
AssignedLicenses =@()
Ensure ='Absent'
ApplicationId =$ApplicationId
TenantId =$TenantId
CertificateThumbprint =$Thumbprint
}
Description of the issue
Description of the issue
Every time a set of AADGroup resources uses Test-TargetResource to determine whether or not the resource is in desired state, Test-TargetResource returns false. This leads to the instance of that resource having a set operation run against it every MOF application cycle, even if the resource is already in the desired state.
Microsoft 365 DSC Version
1.24.731.1 but issue present on 1.24.904.1 as well
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: