Skip to content

Commit 4fb3a01

Browse files
Merge pull request #13483 from pavellatif/main
Updating examples for Multi-line support
2 parents 3994503 + 418d23d commit 4fb3a01

2 files changed

Lines changed: 44 additions & 7 deletions

File tree

teams/teams-ps/MicrosoftTeams/Get-CsPhoneNumberAssignment.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ AssignmentBlockedState : BlockedUntil
356356
AssignmentBlockedUntil : 2025-10-11T21:30:00.0000000Z
357357
SmsActivationState : NotActivated
358358
```
359-
This example displays information about the telephone number +1 (402) 555-1234 which has a temporary assignment block. This block prevents the number from being assigned to any other user. Once the period shown in AssignmentBlockUntil passes, the AssignmentBlock will be automatically removed and the number will become available to be assigned to any user. Admin can also remove the block manually using [Remove-CsPhoneNumberAssignmentBlock](./remove-csphonenumberassignmentblock.md).
359+
This example displays information about the telephone number +1 (402) 555-1234 which has a temporary assignment block. This block prevents the number from being assigned to any other user. Once the period shown in AssignmentBlockedUntil passes, the AssignmentBlock will be automatically removed and the number will become available to be assigned to any user. Admin can also remove the block manually using [Remove-CsPhoneNumberAssignmentBlock](./remove-csphonenumberassignmentblock.md).
360360

361361
### Example 16
362362
```powershell
@@ -422,6 +422,37 @@ SmsActivationState : UpdatePending
422422
```
423423
This example displays information about the telephone number +1 (360) 322-7351 where SMS activation is pending.
424424

425+
### Example 18
426+
```powershell
427+
Get-CsPhoneNumberAssignment -TelephoneNumber +13603227351
428+
```
429+
```output
430+
TelephoneNumber : +1555555555
431+
OperatorId : 0019adbc-b82a-47b4-a799-4e993a9982f1
432+
NumberType : CallingPlan
433+
ActivationState : Activated
434+
AssignedPstnTargetId : 2d43c5da-649b-406b-9d32-d130d2c53018
435+
AssignmentCategory : Alternate
436+
Capability : {UserAssignment}
437+
City : Marysville
438+
CivicAddressId : 822d4d26-2c43-460f-921c-179163b106f8
439+
IsoCountryCode : US
440+
IsoSubdivision : Washington
441+
LocationId : 4040949c-2424-469c-a9bc-563a5e5964f3
442+
LocationUpdateSupported : True
443+
NetworkSiteId :
444+
PortInOrderStatus :
445+
PstnAssignmentStatus : UserAssigned
446+
PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
447+
PstnPartnerName : Microsoft
448+
NumberSource : Online
449+
ReverseNumberLookup : {}
450+
Tag : {}
451+
AssignmentBlockedState : NotBlocked
452+
AssignmentBlockedUntil :
453+
SmsActivationState :
454+
```
455+
This example displays information about the telephone number +1 (360) 322-7351 which is assigned as an alternate number for the user. (Multi-line feature is in Public Preview)
425456

426457
## PARAMETERS
427458

@@ -700,7 +731,7 @@ Accept wildcard characters: False
700731
701732
> Applicable: Microsoft Teams
702733
703-
Filters the returned results based on the assignment status. Support values are Unassigned, UserAssigned, ConferenceAssigned, VoiceApplicationAssigned, ThirdPartyAppAssigned, and PolicyAssigned.
734+
Filters the returned results based on the assignment status. Supported values are Unassigned, UserAssigned, ConferenceAssigned, VoiceApplicationAssigned, ThirdPartyAppAssigned, and PolicyAssigned.
704735
705736
```yaml
706737
Type: System.String
@@ -863,7 +894,7 @@ The state of the number in terms of blocked assignment: NotBlocked if there is n
863894
The date until which assignment is blocked for the phone number. Null if the number is blocked for assignment indefinitely.
864895
865896
### AssignmentCategory
866-
Contains the assignment category such as Primary or Private.
897+
Contains the assignment category such as Primary, Alternate or Private.
867898
868899
### Capability
869900
The list of capabilities assigned to the phone number.
@@ -925,7 +956,7 @@ The object returned is of type SkypeTelephoneNumberMgmtCmdletAcquiredTelephoneNu
925956
Status of Reverse Number Lookup (RNL). When it is set to SkipInternalVoip, the calls are handled through external PSTN connection instead of internal VoIP lookup.
926957
927958
## NOTES
928-
The cmdlet is available in Teams PowerShell module 4.0.0 or later. The parameter AssignmentCategory was introduced in Teams PowerShell module 5.3.1-preview. The parameter NetworkSiteId was introduced in Teams PowerShell module 5.5.0. The output parameter NumberSource was introduced in Teams PowerShell module 5.7.0.
959+
The cmdlet is available in Teams PowerShell module 4.0.0 or later. The parameter AssignmentCategory was introduced in Teams PowerShell module 5.3.1-preview. The parameter NetworkSiteId was introduced in Teams PowerShell module 5.5.0. The output parameter NumberSource was introduced in Teams PowerShell module 5.7.0. Multi-line related cmdlets are available from Teams PowerShell module 7.6.0.
929960
930961
The cmdlet is only available in commercial and GCC cloud instances.
931962

teams/teams-ps/MicrosoftTeams/Set-CsPhoneNumberAssignment.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ foreach ($pn in $pns) {
140140
Write-Host (Get-CsPhoneNumberAssignment -LocationId $OldLocationId).Count numbers found in old location $OldLocationId
141141
Write-Host (Get-CsPhoneNumberAssignment -LocationId $NewLocationId).Count numbers found in new location $NewLocationId
142142
```
143-
This Example shows how to update the LocationID from an old location to a new location for a set of phone numbers.
143+
This example shows how to update the LocationID from an old location to a new location for a set of phone numbers.
144144

145145
### Example 11
146146
```powershell
@@ -160,13 +160,19 @@ Set-CsPhoneNumberAssignment -Identity user1@contoso.com -PhoneNumber '+142555512
160160
```
161161
This example shows how to send an email to Teams phone users informing them about the new telephone number assignment. Note: For assignment of India telephone numbers provided by Airtel, Teams Phone users will automatically receive an email outlining the usage guidelines and restrictions. This notification is mandatory and cannot be opted out of.
162162

163+
### Example 14
164+
```powershell
165+
Set-CsPhoneNumberAssignment -Identity user1@contoso.com -PhoneNumber '+1555555555' -PhoneNumberType CallingPlan -LocationId "7fda0c0b-6a3d-48b8-854b-3fbe9dcf6513" -AssignmentCategory Alternate
166+
```
167+
This example shows how to assign an alternate calling plan number to a user. The alternate number can be from any country/region where the tenant can acquire a telephone number from.
168+
163169
## PARAMETERS
164170

165171
### -AssignmentCategory
166172

167173
> Applicable: Microsoft Teams
168174
169-
This parameter indicates the phone number assignment category if it isn't the primary phone number. For example, a Private line can be assigned to a user using '-AssignmentCategory Private'.
175+
This parameter indicates the phone number assignment category if it isn't the primary phone number. For example, a Private line can be assigned to a user using '-AssignmentCategory Private' or an Alternate line can be assigned to a user using '-AssignmentCategory Alternate'
170176

171177

172178
```yaml
@@ -360,7 +366,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
360366
### System.Object
361367
362368
## NOTES
363-
The cmdlet is available in Teams PowerShell module 3.0.0 or later. The parameter set LocationUpdate was introduced in Teams PowerShell module 5.3.1-preview. The parameter NetworkSiteId was introduced in Teams PowerShell module 5.5.0. The parameter set NetworkSiteUpdate was introduced in Teams PowerShell module 5.5.1-preview.
369+
The cmdlet is available in Teams PowerShell module 3.0.0 or later. The parameter set LocationUpdate was introduced in Teams PowerShell module 5.3.1-preview. The parameter NetworkSiteId was introduced in Teams PowerShell module 5.5.0. The parameter set NetworkSiteUpdate was introduced in Teams PowerShell module 5.5.1-preview. Alternate number assignment was introduced in Teams PowerShell module 7.6.0.
364370
365371
The cmdlet is only available in commercial and GCC cloud instances.
366372

0 commit comments

Comments
 (0)