Skip to content

Commit

Permalink
Enhancements to IntuneDeviceCompliancePolicyAndroidDeviceOwner/Intune…
Browse files Browse the repository at this point in the history
…DeviceCompliancePolicyAndroidWorkProfile

* IntuneDeviceCompliancePolicyAndroidDeviceOwner
  * Added missing properties for androidForWorkCompliancePolicy resource type: https://learn.microsoft.com/en-us/graph/api/resources/intune-deviceconfig-androiddeviceownercompliancepolicy?view=graph-rest-beta.
  * Non-compliance actions now supported for Export- Test- Get-
  * Non-compliance actions now supported for Set- when creating a policy, but not when updating a policy. Update can't be supported due to MgGraph bug.
    FIXES [microsoft#5593](microsoft#5593)
* IntuneDeviceCompliancePolicyAndroidWorkProfile
  * Added missing properties for androidForWorkCompliancePolicy resource type: https://learn.microsoft.com/en-us/graph/api/resources/intune-deviceconfig-androidforworkcompliancepolicy?view=graph-rest-beta.
  * Non-compliance actions now supported for Export- Test- Get-
  * Non-compliance actions now supported for Set- when creating a policy, but not when updating a policy. Update can't be supported due to MgGraph bug.
    FIXES [microsoft#5592](microsoft#5592)

MgGraph issues:
microsoftgraph/msgraph-sdk-powershell#2177
microsoftgraph/msgraph-metadata#245
  • Loading branch information
dannyKBjj committed Jan 16, 2025
1 parent 2d28127 commit 585602f
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
PasswordPreviousPasswordCountToBlock = 10
StorageRequireEncryption = $True
SecurityRequireIntuneAppIntegrity = $True
minAndroidSecurityPatchLevel = "2024-01-24"
securityRequiredAndroidSafetyNetEvaluationType = "hardwareBacked"
Ensure = 'Present'
Credential = $Credential
Credential = $Credential
}

Mock -CommandName Get-MgBetaDeviceManagementDeviceCompliancePolicy -MockWith {
Expand Down Expand Up @@ -118,6 +120,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
PasswordPreviousPasswordCountToBlock = 10
StorageRequireEncryption = $True
SecurityRequireIntuneAppIntegrity = $True
minAndroidSecurityPatchLevel = "2024-01-24"
securityRequiredAndroidSafetyNetEvaluationType = "hardwareBacked"
Ensure = 'Present'
Credential = $Credential
}
Expand Down Expand Up @@ -145,6 +149,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
StorageRequireEncryption = $True
SecurityRequireIntuneAppIntegrity = $True
RoleScopeTagIds = '0'
minAndroidSecurityPatchLevel = "2024-01-24"
securityRequiredAndroidSafetyNetEvaluationType = "hardwareBacked"
}
}
}
Expand Down Expand Up @@ -185,6 +191,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
StorageRequireEncryption = $True
SecurityRequireIntuneAppIntegrity = $True
Ensure = 'Present'
minAndroidSecurityPatchLevel = "2024-01-24"
securityRequiredAndroidSafetyNetEvaluationType = "hardwareBacked"
Credential = $Credential
}

Expand All @@ -211,6 +219,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
StorageRequireEncryption = $True
SecurityRequireIntuneAppIntegrity = $True
RoleScopeTagIds = '0'
minAndroidSecurityPatchLevel = "2024-01-24"
securityRequiredAndroidSafetyNetEvaluationType = "hardwareBacked"
}
}
}
Expand Down Expand Up @@ -252,6 +262,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
StorageRequireEncryption = $True
SecurityRequireIntuneAppIntegrity = $True
RoleScopeTagIds = '0'
minAndroidSecurityPatchLevel = "2024-01-24"
securityRequiredAndroidSafetyNetEvaluationType = "hardwareBacked"
}
}
}
Expand Down Expand Up @@ -302,6 +314,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
StorageRequireEncryption = $True
SecurityRequireIntuneAppIntegrity = $True
RoleScopeTagIds = '0'
minAndroidSecurityPatchLevel = "2024-01-24"
securityRequiredAndroidSafetyNetEvaluationType = "hardwareBacked"
}
}
}
Expand Down

0 comments on commit 585602f

Please sign in to comment.