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
When i do a intune worklaod export:
export-m365dscconfiguration -applicationid XXXXXX-tenant XXX.onmicrosoft.com -applicationsecret XXXX -Workloads INTUNE -Path C:\Sit\Nov_Full
It cannot create and generates the following error:
Write-Error: C:\SIT\Nov_Full\M365TenantConfig.ps1:14984
Line |
14984 | MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
| 'Action' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify only
| supported values: notConfigured, blocked, allowed.
the powershell line 14984 is as follows:
MSFT_MicrosoftGraphwindowsFirewallRule{
InterfaceTypes = 'System.Object[]'
TrafficDirection = 'System.Object[]'
ProfileTypes = 'System.Object[]'
Protocol = @(
6
6
)
Action = 'System.Object[]'
Description = @(
'Allow Remote Desktop Connection'
'Allow Remote PowerShell'
This can be replicated in any test environment when creating a standard firewall policy please can you check as the other 65 sections of the intune workload work fine. Thanks
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:14984
Line |14984| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'EdgeTraversal' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, blocked, allowed.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:14984
Line |14984| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'InterfaceTypes' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, remoteAccess, wireless, lan.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:14984
Line |14984| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'ProfileTypes' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, domain, private, public.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:14984
Line |14984| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'TrafficDirection' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, out,in.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:15008
Line |15008| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'Action' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify only
| supported values: notConfigured, blocked, allowed.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:15008
Line |15008| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'EdgeTraversal' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, blocked, allowed.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:15008
Line |15008| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'InterfaceTypes' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, remoteAccess, wireless, lan.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:15008
Line |15008| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'ProfileTypes' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, domain, private, public.
Write-Error: C:\SIT\test_update\M365TenantConfig.ps1:15008
Line |15008| MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
|'TrafficDirection' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify
| only supported values: notConfigured, out,in.
@William-Francillette Hi, I reported another issue #3444 for this resource, it now works for deploying to another tenants but when re-deploying the tests fail and always tries to update the policies even though they are all correct as in the blueprint configuration.
Thanks @ChrisJay77 for reporting the issue, there was a problem with parsing FirewallRules
I was able to export, create and update the policy successfully
@ricmestre I've also resolved your issue - Test-TargetResource was evaluating the Id parameter and thus returning false when duplicating the policy to a new tenant (the Id would have been different)
Description of the issue
When i do a intune worklaod export:
export-m365dscconfiguration -applicationid XXXXXX-tenant XXX.onmicrosoft.com -applicationsecret XXXX -Workloads INTUNE -Path C:\Sit\Nov_Full
It cannot create and generates the following error:
Write-Error: C:\SIT\Nov_Full\M365TenantConfig.ps1:14984
Line |
14984 | MSFT_MicrosoftGraphwindowsFirewallRule{
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| At least one of the values 'System.Object[]' is not supported or valid for property
| 'Action' on class 'MSFT_MicrosoftGraphWindowsFirewallRule'. Please specify only
| supported values: notConfigured, blocked, allowed.
the powershell line 14984 is as follows:
MSFT_MicrosoftGraphwindowsFirewallRule{
InterfaceTypes = 'System.Object[]'
TrafficDirection = 'System.Object[]'
ProfileTypes = 'System.Object[]'
Protocol = @(
6
6
)
Action = 'System.Object[]'
Description = @(
'Allow Remote Desktop Connection'
'Allow Remote PowerShell'
This can be replicated in any test environment when creating a standard firewall policy please can you check as the other 65 sections of the intune workload work fine. Thanks
Microsoft 365 DSC Version
Documents\PowerShell\Modules\Microsoft365DSC\1.23.1025.1 1.23.1025.1
Which workloads are affected
other
The DSC configuration
No response
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: