Get-CsOnlineTelephoneNumberInventoryCities

Use the Get-CsOnlineTelephoneNumberInventoryCities to retrieve the cities that support a given inventory type within a geographical area.

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-CsOnlineTelephoneNumberInventoryCities
   [-Tenant <Guid>]
   -RegionalGroup <String>
   -CountryOrRegion <String>
   -Area <String>
   [-CapitalOrMajorCity <String>]
   -InventoryType <String>
   [-DomainController <Fqdn>]
   [-Force]
   [<CommonParameters>]

Description

Following is an example of the Get-CsOnlineTelephoneNumberInventoryCities cmdlet's console output.

Get-CsOnlineTelephoneNumberInventoryCities -InventoryType Service -RegionalGroup NOAM -CountryOrRegion US -Area NY

RunspaceId : 1374aa93-75c4-4679-b765-6efc22f97563

Id : NY

DefaultName : New York City

GeoCode : NOAM-US-NY-NY

Examples

-------------------------- Example 1 --------------------------

Get-CsOnlineTelephoneNumberInventoryCities -InventoryType Service -RegionalGroup NOAM -CountryOrRegion US -Area NY

The following example retrieves the cities defined as supporting "Service" inventory types in New York state.

-------------------------- Example 2 --------------------------

Get-CsOnlineTelephoneNumberInventoryCities -InventoryType Subscriber -RegionalGroup NOAM -CountryOrRegion US -Area NY

The following example retrieves the cities defined as supporting "Subscriber" inventory types in New York state.

Parameters

-Area

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

-CapitalOrMajorCity

Specifies the target geographical city for the cmdlet.

Type:String
Aliases:City
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

-CountryOrRegion

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

-DomainController

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

-Force

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

-InventoryType

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

-RegionalGroup

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

-Tenant

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.InventoryCity

Instance or array of the object.