Get-CsOnlineTelephoneNumberInventoryAreas
Use the Get-CsOnlineTelephoneNumberInventoryAreas
cmdlet to retrieve the geographical areas where specified inventory types are supported.
Note:
As of April 30, 2022, the existing Skype for Business PowerShell cmdlets for telephone number search and related activities will be deprecated and will no longer be available for use. The new Teams PowerShell cmdlets for telephone number search and related activities are already available. For more details, see New-CsOnlineTelephoneNumberOrder.
Syntax
Get-CsOnlineTelephoneNumberInventoryAreas
[-Tenant <Guid>]
-RegionalGroup <String>
-CountryOrRegion <String>
[-Area <String>]
-InventoryType <String>
[-DomainController <Fqdn>]
[-Force]
[<CommonParameters>]
Description
Following is an example of the console output for the Get-CsOnlineTelephoneNumberInventoryAreas cmdlet.
Get-CsOnlineTelephoneNumberInventoryAreas -InventoryType Subscriber -RegionalGroup NOAM -CountryOrRegion US
RunspaceId : 8fa40044-7bcf-465b-b7c8-76e54f124c8d
Id : IL
DefaultName : Illinois
Cities : {}
RunspaceId : 8fa40044-7bcf-465b-b7c8-76e54f124c8d
Id : MA
DefaultName : Massachusetts
Cities : {}
RunspaceId : 8fa40044-7bcf-465b-b7c8-76e54f124c8d
Id : NY
DefaultName : New York
Cities : {}
RunspaceId : 8fa40044-7bcf-465b-b7c8-76e54f124c8d
Id : OR
DefaultName : Oregon
Cities : {}
Examples
-------------------------- Example 1 --------------------------
Get-CsOnlineTelephoneNumberInventoryAreas -InventoryType Subscriber -RegionalGroup NOAM -CountryOrRegion US
This example returns the areas with Subscriber inventory in the specified region and country.
Parameters
Specifies the target geographical area for the cmdlet.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
Specifies the target country for the cmdlet.
Type: | String |
Aliases: | Country |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
This parameter is reserved for internal Microsoft use.
Type: | Fqdn |
Aliases: | DC |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for administrative input if required.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
Specifies the target telephone number type for the cmdlet. Acceptable values are:
"Service" for numbers assigned to conferencing support.
"Subscriber" for numbers supporting public switched telephone network (PSTN) functions.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
Specifies the target geographical region for the cmdlet.
Type: | String |
Aliases: | Region |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
This parameter is reserved for internal Microsoft use.
Type: | Guid |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
Inputs
None
Outputs
Deserialized.Microsoft.Rtc.Management.Hosted.Bvd.Types.InventoryArea
Instance or array of the objects.
Feedback
Submit and view feedback for