Get-CsOnlineTelephoneNumberInventoryAreas

 

Topic Last Modified: 2016-08-30

Use the Get-CsOnlineTelephoneNumberInventoryAreas cmdlet to retrieve the geographical areas where specified inventory types are supported.

Get-CsOnlineTelephoneNumberInventoryAreas -CountryOrRegion <String> -InventoryType <String> -RegionalGroup <String> [-Area <String>] [-BypassDualWrite <$true | $false>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-Tenant <Guid>]

This example returns the areas with Subscriber inventory in the specified region and country.

Get-CsOnlineTelephoneNumberInventoryAreas -InventoryType Subscriber -RegionalGroup NOAM -CountryOrRegion US

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      : {}

 

Parameter Required Type Description

CountryOrRegion

Required

System.String

Specifies the target country for the cmdlet. To get a list of geographical codes for countries, use the Get-CsOnlineTelephoneNumberInventoryCities cmdlet.

InventoryType

Required

System.String

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.

RegionalGroup

Required

System.String

Specifies the target geographical region for the cmdlet. To get a list of geographical codes for regions, use the Get-CsOnlineTelephoneNumberInventoryRegions cmdlet.

Area

Optional

System.String

Specifies the target geographical area for the cmdlet. To get a list of geographical codes for areas, use the Get-CsOnlineTelephoneNumberInventoryAreas cmdlet.

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

DomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

This parameter is reserved for internal Microsoft use.

Force

Optional

System.Management.Automation.SwitchParameter

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.

Tenant

Optional

System.Guid

This parameter is reserved for internal Microsoft use.

The cmdlet returns an instance, or an array of Deserialized.Microsoft.Rtc.Management.Hosted.Bvd.Types.InventoryArea objects.

 
Show: