Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #5589 #5617

Open
wants to merge 6 commits into
base: Dev
Choose a base branch
from
Open

Conversation

dannyKBjj
Copy link
Contributor

@dannyKBjj dannyKBjj commented Jan 9, 2025

Pull Request (PR) description

Over time it seem the number of properties have grown, but the module has not been updated.
Have added support for all properties documented here:
https://github.com/microsoftgraph/microsoft-graph-docs-contrib/blob/main/api-reference/beta/resources/intune-mam-iosmanagedappprotection.md

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
    Entry should say what was changed and how that affects users (if applicable), and
    reference the issue being resolved (if applicable).
  • Resource parameter descriptions added/updated in the schema.mof.
  • Resource documentation added/updated in README.md.
  • Resource settings.json file contains all required permissions.
  • Examples appropriately added/updated.
  • Unit tests added/updated.
  • New/changed code adheres to DSC Community Style Guidelines.

Copy link
Member

@ykuijs ykuijs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments

@@ -40,6 +44,8 @@
* DEPENDENCIES
* Updated Microsoft.PowerApps.Administration.PowerShell to version 2.0.202.
* Updated MSCloudLoginAssistant to version 1.1.31.
* IntuneAppProtectionPolicyiOS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is a duplicate. Please remove

@@ -14,6 +16,8 @@
* DefenderDeviceAuthenticatedScanDefinition
* Fixed the Data Type export.
* MISC
* DEFENDER
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is duplicate. Please remove.

@@ -15,7 +15,113 @@ function Get-TargetResource
[Parameter()]
[System.String]
$Description,
#my stuff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all instances of this line

[Parameter()]
[ValidateSet('block', 'wipe', 'warn', 'blockWhenSettingIsSupported')]
[System.String]
$appActionIfAccountIsClockedOut,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use PascalCasing for parameter names, so also starting with a capital letter (this is now using camelCase).

This applies to more parameters than just this one. Please check all new parameters.

[Parameter()]
[ValidateSet('block', 'wipe', 'warn', 'blockWhenSettingIsSupported')]
[System.String]
$appActionIfAccountIsClockedOut,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the name of this parameter correct? ClockedOut? Shouldn't this be LockedOut?

[System.Boolean]
$ThirdPartyKeyboardsBlocked,

#my stuff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this line

blockDataIngestionIntoOrganizationDocuments = $policy.blockDataIngestionIntoOrganizationDocuments
customDialerAppProtocol = [string]$policy.customDialerAppProtocol
deployedAppCount = $policy.deployedAppCount
#DeploymentSummary = $DeploymentSummaryArray
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out? Can't this be removed?

$arrayTemp = @("minimumWarningSdkVersion","maximumRequiredOsVersion","maximumWarningOsVersion","maximumWipeOsVersion")
Foreach($item in $arrayTemp)
{

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove empty line

@@ -785,6 +1040,17 @@ function Set-TargetResource
$updateParameters.Remove('Apps')
$updateParameters.TargetedAppManagementLevels = $updateParameters.TargetedAppManagementLevels -join ','


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove duplicate empty line

$arrayTemp = @("minimumWarningSdkVersion","maximumRequiredOsVersion","maximumWarningOsVersion","maximumWipeOsVersion")
Foreach($item in $arrayTemp)
{

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove empty line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IntuneAppProtectionPolicyiOS only partially supports App Protection policies
2 participants