-
Notifications
You must be signed in to change notification settings - Fork 522
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
base: Dev
Are you sure you want to change the base?
Fix for issue #5589 #5617
Conversation
Adds support for all missing properties documented here: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/blob/main/api-reference/beta/resources/intune-mam-iosmanagedappprotection.md Fixes issue microsoft#5589
Added support for missing properties that are documented here: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/blob/main/api-reference/beta/resources/intune-mam-iosmanagedappprotection.md
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) | ||
{ | ||
|
There was a problem hiding this comment.
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 ',' | |||
|
|||
|
There was a problem hiding this comment.
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) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove empty line
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
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).