Private/Functions/GetAppIdFromApplicationType.ps1
# Module: TeamsFunctions # Function: AzureAd Licensing # Author: David Eberhardt # Updated: 29-JUN-2020 # Status: Live function GetAppIdFromApplicationType { <# .SYNOPSIS AppId for ApplicationType .DESCRIPTION Translates a given friendly ApplicationType (Name) into an AppId used by MS commands #> [CmdletBinding()] [OutputType([PSCustomObject])] param( [string]$CsApplicationType ) #param begin { #Show-FunctionStatus -Level Live #Write-Verbose -Message "[BEGIN ] $($MyInvocation.MyCommand)" } #begin process { #Write-Verbose -Message "[PROCESS] $($MyInvocation.MyCommand)" Write-Verbose -Message "[PROCESS] $($MyInvocation.MyCommand) - Processing CsApplicationType '$CsApplicationType'" switch ($CsApplicationType) { "CallQueue" { $CsAppId = "11cd3e2e-fccb-42ad-ad00-878b93575e07" } "CQ" { $CsAppId = "11cd3e2e-fccb-42ad-ad00-878b93575e07" } "AutoAttendant" { $CsAppId = "ce933385-9390-45d1-9512-c8d228074e07" } "AA" { $CsAppId = "ce933385-9390-45d1-9512-c8d228074e07" } Default { } } return $CsAppId } #process end { #Write-Verbose -Message "[END ] $($MyInvocation.MyCommand)" } #end } #GetAppIdFromApplicationType |