Select-CsOnlineTelephoneNumberInventory
Use the Select-CsOnlineTelephoneNumberInventory
cmdlet to acquire a list of inventoried telephone numbers and associate them with a Business Voice Directory tenant.
The input must be from a telephone number search operation generated by the Search-CsOnlineTelephoneNumberInventory
cmdlet.
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
Select-CsOnlineTelephoneNumberInventory
[-Tenant <Guid>]
-RegionalGroup <String>
-CountryOrRegion <String>
-Area <String>
-CapitalOrMajorCity <String>
-ReservationId <String>
-TelephoneNumbers <String[]>
[-LocationId <Guid>]
[-DomainController <Fqdn>]
[-Force]
[<CommonParameters>]
Description
Acquiring tenant telephone numbers is a two step process.
+12127539059 +1 (212) 753 9059
Select-CsOnlineTelephoneNumberInventory -ReservationId 76ce711f-9da4-46d9-b81d-471172450443 -TelephoneNumbers 12127539058,12127539059 -RegionalGroup NOAM -CountryOrRegion US -Area NY -CapitalOrMajorCity NY
Examples
-------------------------- Example 1 --------------------------
Select-CsOnlineTelephoneNumberInventory -ReservationId 76ce711f-9da4-46d9-b81d-471172450443 -TelephoneNumbers 12127539058,12127539059 -RegionalGroup NOAM -CountryOrRegion US -Area NY -CapitalOrMajorCity NY
This example assigns two telephone numbers to New York City.
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
Specifies the domain controller that's used by the cmdlet to read or write the specified data. Valid inputs for this parameter are either the fully qualified domain name (FQDN) or the computer name.
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 |
-LocationId
PARAMVALUE: Guid
Type: | Guid |
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 |
-ReservationId
Specifies the telephone number reservation to access.
The reservation itself is created by the Search-CsOnlineTelephoneNumberInventory
cmdlet.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
-TelephoneNumbers
Specifies the telephone numbers you wish to assign, separated by commas. The numbers must be in E.164 format.
Type: | String[] |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Skype for Business Online |
-Tenant
Specifies the globally unique identifier (GUID) of your Skype for Business Online tenant account.
For example: -Tenant "38aad667-af54-4397-aaa7-e94c79ec2308"
.
You can find your tenant ID by running this command: Get-CsTenant | Select-Object DisplayName, TenantID
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
This cmdlets returns an Microsoft.Rtc.Management.Hosted.Bvd.Types.NumberReservationResponse object.
Feedback
Submit and view feedback for