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
According to the example file (M365ConfigurationDataExample.psd1) the section for conditional access policies should look like: ConditionalAccessPolicies = @( @{ TransferMethods = 'String | Optional | Names of the associated authentication flow transfer methods. Possible values are '''', ''deviceCodeFlow'', ''authenticationTransfer'', or ''deviceCodeFlow,authenticationTransfer''.' PersistentBrowserIsEnabled = 'Boolean | Optional | Specifies, whether Browser Persistence is controlled by the Policy.'
However when I commit this and it runs the PR validation, I see: Running tests from 'C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1' Describing --- Check M365-DSC-CompositeResources configuration --- Context NonNodeData Context NonNodeData.AADConditionalAccessPolicy ##[error] [-] NonNodeData.AADConditionalAccessPolicy 45ms (42ms|4ms) ##[error] Expected $null or empty, because Not available as Composite Resource, but got @(System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, ...4 more). ##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:8 ##[error] [-] NonNodeData.AADConditionalAccessPolicy[0] 7ms (6ms|1ms) ##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable. ##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[0] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:11 ##[error] [-] NonNodeData.AADConditionalAccessPolicy[1] 3ms (2ms|1ms)
Microsoft 365 DSC Version
1.25.129.3
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
@{
NonNodeData=@{
ConditionalAccessPolicies=@(
@{
ApplicationEnforcedRestrictionsIsEnabled=$FalseAuthenticationContexts=@()
BuiltInControls=@('block')
ClientAppTypes=@('exchangeActiveSync','other')
CloudAppSecurityIsEnabled=$FalseCloudAppSecurityType=''CustomAuthenticationFactors=@()
DeviceFilterRule=''DisableResilienceDefaultsIsEnabled=$False....
Etc.
Verbose logs showing the problem
##[error] [-] NonNodeData.AADConditionalAccessPolicy[8] 3ms (2ms|1ms)##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable.##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[8] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:35##[error] [-] NonNodeData.AADConditionalAccessPolicy[9] 3ms (2ms|1ms)##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable.##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[9] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:38##[error] [-] NonNodeData.AADConditionalAccessPolicy[10] 2ms (2ms|0ms)##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable.##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[10] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:41##[error] [-] NonNodeData.AADConditionalAccessPolicy[11] 3ms (2ms|1ms)##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable.##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[11] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:44##[error] [-] NonNodeData.AADConditionalAccessPolicy[12] 13ms (12ms|1ms)##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable.##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[12] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:47##[error] [-] NonNodeData.AADConditionalAccessPolicy[13] 2ms (2ms|1ms)##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable.##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[13] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:50
Tests completed in 425ms
Tests Passed: 0, Failed: 15, Skipped: 0, Inconclusive: 0, NotRun: 0
Environment Information + PowerShell Version
Azure DevOps.
The text was updated successfully, but these errors were encountered:
Description of the issue
According to the example file (M365ConfigurationDataExample.psd1) the section for conditional access policies should look like:
ConditionalAccessPolicies = @( @{ TransferMethods = 'String | Optional | Names of the associated authentication flow transfer methods. Possible values are '''', ''deviceCodeFlow'', ''authenticationTransfer'', or ''deviceCodeFlow,authenticationTransfer''.' PersistentBrowserIsEnabled = 'Boolean | Optional | Specifies, whether Browser Persistence is controlled by the Policy.'
However when I commit this and it runs the PR validation, I see:
Running tests from 'C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1' Describing --- Check M365-DSC-CompositeResources configuration --- Context NonNodeData Context NonNodeData.AADConditionalAccessPolicy ##[error] [-] NonNodeData.AADConditionalAccessPolicy 45ms (42ms|4ms) ##[error] Expected $null or empty, because Not available as Composite Resource, but got @(System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable, ...4 more). ##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:8 ##[error] [-] NonNodeData.AADConditionalAccessPolicy[0] 7ms (6ms|1ms) ##[error] Expected $null or empty, because Not available as Composite Resource, but got System.Collections.Hashtable. ##[error] at $inputObject.NonNodeData.AADConditionalAccessPolicy[0] | Should -BeNullOrEmpty -Because 'Not available as Composite Resource', C:\Users\VssAdministrator\AppData\Local\Temp\tmpfklx3t.tests.ps1:11 ##[error] [-] NonNodeData.AADConditionalAccessPolicy[1] 3ms (2ms|1ms)
Microsoft 365 DSC Version
1.25.129.3
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: