Public/Add-IOSApplication.ps1
<#
.COPYRIGHT Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. See https://github.com/microsoftgraph/powershell-intune-samples/blob/master/LICENSE for license information. #> Function Add-iOSApplication() { <# .SYNOPSIS This function is used to add an iOS application using the Graph API REST interface .DESCRIPTION The function connects to the Graph API Interface and adds an iOS application from the itunes store .EXAMPLE Add-iOSApplication -AuthHeader $AuthHeader Adds an iOS application into Intune from itunes store .NOTES NAME: Add-iOSApplication #> [cmdletbinding()] param ( [Parameter(Mandatory = $True)] [PSObject[]] $iOSApp ) $Resource = 'deviceAppManagement/mobileApps' $JSON = ConvertTo-Json -InputObject $iOSApp # Step 3 - Publish the application to Graph Invoke-GraphAPI -Resource $Resource -Method POST -Body $JSON } |