Skip to content

Commit

Permalink
[Apps] Add Get-MobileApp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranga Dabarera committed Oct 24, 2018
1 parent c90fe31 commit b118a73
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Scenario Modules/Apps/Apps.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function Get-MobileApp {
[CmdletBinding(DefaultParameterSetName='__AllParameterSets')]
param(
[Parameter(Mandatory, ValueFromPipelineByPropertyName, ParameterSetName='GetSingleApp')]
[ValidateNotNullOrEmpty()]
[string]$mobileAppId
)

if ($PSCmdlet.ParameterSetName -eq 'GetSingleApp') {
Get-DeviceAppManagement_MobileApps -mobileAppId $mobileAppId
} else {
Get-DeviceAppManagement_MobileApps | Get-MSGraphAllPages
}
}

0 comments on commit b118a73

Please sign in to comment.