functions/organization/Get-PSEntraIDUsageLocation.ps1
|
function Get-PSEntraIDUsageLocation { <# .SYNOPSIS Get User Usage Location hashtable. .DESCRIPTION Get User Usage Location hashtable. .EXAMPLE PS C:\> Get-PSEntraIDUsageLocation Get list of usage locations #> [OutputType('System.Collections.Hashtable')] [CmdletBinding()] param ( ) begin { [string] $usageLocationTemplate = Join-Path -Path (Join-Path -Path $script:ModuleRoot -ChildPath 'internal') -ChildPath (Join-Path -Path 'aadtemplate' -ChildPath 'UsageLocation.json' ) [System.Collections.Hashtable] $usageLocationHash = Get-Content -Path $usageLocationTemplate | ConvertFrom-Json | ConvertTo-PSFHashtable } process { return $usageLocationHash } } |