Skip to content

Commit 45b5efe

Browse files
Merge pull request #13177 from MicrosoftDocs/main
[AutoPublish] main to live - 10/15 13:32 PDT | 10/16 02:02 IST
2 parents c50678d + 2494fb1 commit 45b5efe

8 files changed

+247
-9
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
101101
## NOTES
102102
The cmdlet is available in Teams PowerShell module 6.1.0 or later.
103103
104-
The cmdlet is only available in commercial and GCC cloud instances.
105-
106104
## RELATED LINKS
107105
[Get-CsExportAcquiredPhoneNumberStatus](https://learn.microsoft.com/powershell/module/microsoftteams/get-csexportacquiredphonenumberstatus)

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ PstnPartnerName : Microsoft
8585
NumberSource : Online
8686
ReverseNumberLookup : {}
8787
Tag : {}
88+
AssignmentBlockedState :
89+
AssignmentBlockedUntil :
8890
```
8991
This example displays information about the Microsoft Calling Plan subscriber phone number +1 (402) 555-1234. You can see that it is assigned to a user.
9092

@@ -114,6 +116,8 @@ PstnPartnerName :
114116
NumberSource : OnPremises
115117
ReverseNumberLookup : {}
116118
Tag : {}
119+
AssignmentBlockedState :
120+
AssignmentBlockedUntil :
117121
```
118122
This example displays information about the Direct Routing phone number +1 (206) 555-1000;ext=524. You can see that it is assigned to a user.
119123

@@ -186,6 +190,8 @@ PstnPartnerName :
186190
NumberSource : OnPremises
187191
ReverseNumberLookup : {SkipInternalVoip}
188192
Tag : {}
193+
AssignmentBlockedState :
194+
AssignmentBlockedUntil :
189195
```
190196
This example displays when SkipInternalVoip option is turned on for a number.
191197

@@ -215,6 +221,8 @@ PstnPartnerName :
215221
NumberSource : OnPremises
216222
ReverseNumberLookup : {}
217223
Tag : {}
224+
AssignmentBlockedState :
225+
AssignmentBlockedUntil :
218226
```
219227
This example shows a way to use -Filter parameter to display information of a specific number.
220228

@@ -244,6 +252,8 @@ PstnPartnerName :
244252
NumberSource : OnPremises
245253
ReverseNumberLookup : {}
246254
Tag : {}
255+
AssignmentBlockedState :
256+
AssignmentBlockedUntil :
247257
```
248258
This example shows a way to get filtered results using multiple Filter parameters.
249259

@@ -273,6 +283,8 @@ PstnPartnerName :
273283
NumberSource : OnPremises
274284
ReverseNumberLookup : {}
275285
Tag : {Engineering}
286+
AssignmentBlockedState :
287+
AssignmentBlockedUntil :
276288
```
277289
This example shows a way to get filtered results using tags. Tags are not case sensitive.
278290

@@ -710,6 +722,12 @@ The activation state of the telephone number.
710722
### AssignedPstnTargetId
711723
The ID of the object the phone number is assigned to, either the ObjectId of a user or resource account or the policy instance ID of a Teams shared calling routing policy instance.
712724
725+
### AssignmentBlockedState
726+
The state of the number in terms of blocked assignment: NotBlocked if there is no assignment block on the number, BlockedForever if assignment is blocked indefinitely for the number, BlockedUntil if assignment is blocked for a specific amount of days (limited time assignment block currently not available).
727+
728+
### AssignmentBlockedUntil
729+
The date until which assignment is blocked for the phone number. Null if the number is blocked for assignment indefinitely.
730+
713731
### AssignmentCategory
714732
Contains the assignment category such as Primary or Private.
715733

teams/teams-ps/MicrosoftTeams/MicrosoftTeams.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,9 @@ Deletes an existing online voice routing policy. Online voice routing policies m
11751175
### [Remove-CsPhoneNumberAssignment](Remove-CsPhoneNumberAssignment.md)
11761176
This cmdlet will remove/unassign a phone number from a user or a resource account (online application instance).
11771177

1178+
### [Remove-CsPhoneNumberAssignmentBlock](Remove-CsPhoneNumberAssignmentBlock.md)
1179+
This cmdlet allows the admin to remove an assignment block on a telephone number.
1180+
11781181
### [Remove-CsPhoneNumberTag](Remove-CsPhoneNumberTag.md)
11791182
This cmdlet allows admin to remove a tag from phone number.
11801183

@@ -1487,6 +1490,9 @@ Use the `Set-CsOnlineVoiceUser` cmdlet to set the PSTN specific parameters (like
14871490
### [Set-CsPhoneNumberAssignment](Set-CsPhoneNumberAssignment.md)
14881491
This cmdlet will assign a phone number to a user or a resource account (online application instance).
14891492

1493+
### [Set-CsPhoneNumberAssignmentBlock](Set-CsPhoneNumberAssignmentBlock.md)
1494+
This cmdlet allows the admin to create and assign a temporary block on telephone number assignment to selected telephone number.
1495+
14901496
### [Set-CsPhoneNumberPolicyAssignment](Set-CsPhoneNumberPolicyAssignment.md)
14911497
This cmdlet assigns a policy to a specific telephone number in Microsoft Teams.
14921498

teams/teams-ps/MicrosoftTeams/New-CsOnlineDirectRoutingTelephoneNumberUploadOrder.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
139139
## NOTES
140140
The cmdlet is available in Teams PowerShell module 6.7.1 or later.
141141
142-
The cmdlet is only available in commercial and GCC cloud instances.
143-
144142
## RELATED LINKS
145143
[Get-CsOnlineTelephoneNumberOrder](./get-csonlinetelephonenumberorder.md)
146144
[New-CsOnlineTelephoneNumberReleaseOrder](./new-csonlinetelephonenumberreleaseorder.md)

teams/teams-ps/MicrosoftTeams/New-CsOnlineTelephoneNumberReleaseOrder.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
170170
171171
The cmdlet is available in Teams PowerShell module 6.7.1 or later.
172172
173-
The cmdlet is only available in commercial and GCC cloud instances.
174-
175173
## RELATED LINKS
176174
177175
[Get-CsOnlineTelephoneNumberOrder](get-csonlinetelephonenumberorder.md)

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

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This cmdlet will remove/unassign a phone number from a user or a resource accoun
2020
### RemoveSome (Default)
2121
```
2222
Remove-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumberType <String>
23-
[-HttpPipelinePrepend <SendAsyncStep[]>] [-Notify] [<CommonParameters>]
23+
[-HttpPipelinePrepend <SendAsyncStep[]>] [-Notify] [-AssignmentBlockedForever] [-AssignmentBlockedDays <Integer>] [<CommonParameters>]
2424
```
2525

2626
### RemoveAll
@@ -68,6 +68,18 @@ Remove-CsPhoneNumberAssignment -Identity [email protected] -RemoveAll -Notify
6868
```
6969
This example removes/unassigns all the telephone number from [email protected] and also sends an email notification to the user about the change.
7070

71+
### Example 5
72+
```powershell
73+
Remove-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber +12065551234 -AssignmentBlockedForever
74+
```
75+
This example removes a telephone number assignment from [email protected] and also sets an assignment block on the unassigned number for an indefinite duration.
76+
77+
### Example 6
78+
```powershell
79+
Remove-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber +12065551234 -AssignmentBlockedDays 30
80+
```
81+
This example removes a telephone number assignment from [email protected] and also sets an assignment block on the unassigned number for 30 days. Which means the telephone number will not be available for new assignment for 30 days or until the block is removed manually. The telephone number will automatically become available for assignment for 30 days period is over. ***This feature is currently not available.***
82+
7183
## PARAMETERS
7284

7385
### -HttpPipelinePrepend
@@ -161,6 +173,37 @@ Accept pipeline input: False
161173
Accept wildcard characters: False
162174
```
163175
176+
### -AssignmentBlockedForever
177+
Sets an indefinite block on assignment for the telephone number.
178+
179+
```yaml
180+
Type: System.Management.Automation.SwitchParameter
181+
Parameter Sets: (All)
182+
Aliases:
183+
184+
Required: False
185+
Position: Named
186+
Default value: None
187+
Accept pipeline input: False
188+
Accept wildcard characters: False
189+
```
190+
191+
### -AssignmentBlockedDays
192+
Sets a duration based assignment block on the telephone number. The value must be a valid integer between 1 and 365. ***This feature is currently not available.***
193+
194+
```yaml
195+
Type: System.Int32
196+
Parameter Sets: (All)
197+
Aliases:
198+
199+
Required: False
200+
Position: Named
201+
Default value: None
202+
Accept pipeline input: False
203+
Accept wildcard characters: False
204+
```
205+
206+
164207
### CommonParameters
165208
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
166209
@@ -175,8 +218,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
175218
## NOTES
176219
The cmdlet is available in Teams PowerShell module 3.0.0 or later.
177220
178-
The cmdlet is only available in commercial and GCC cloud instances.
179-
180221
## RELATED LINKS
181222
[Set-CsPhoneNumberAssignment](https://learn.microsoft.com/powershell/module/microsoftteams/set-csphonenumberassignment)
182223
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
applicable: Microsoft Teams
3+
author: pavellatif
4+
external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml
5+
Locale: en-US
6+
manager: roykuntz
7+
Module Name: MicrosoftTeams
8+
ms.author: pavellatif
9+
ms.reviewer: pavellatif
10+
online version: https://learn.microsoft.com/powershell/module/teams/remove-csphonenumberassignmentblock
11+
schema: 2.0.0
12+
title: Remove-CsPhoneNumberAssignmentBlock
13+
---
14+
15+
16+
# Remove-CsPhoneNumberAssignmentBlock
17+
18+
## SYNOPSIS
19+
This cmdlet allows the admin to remove an assignment block on a telephone number.
20+
21+
## SYNTAX
22+
```
23+
Remove-CsPhoneNumberAssignmentBlock -TelephoneNumber <String> [<CommonParameters>]
24+
```
25+
26+
## DESCRIPTION
27+
This cmdlet allows telephone number administrators to remove an existing assignment block on a telephone number.
28+
29+
## EXAMPLES
30+
31+
### Example 1
32+
```powershell
33+
PS C:\> Remove-CsPhoneNumberAssignmentBlock -TelephoneNumber +123456789
34+
```
35+
36+
The above example shows how to remove the assignment block on a +123456789 number.
37+
38+
## PARAMETERS
39+
40+
### -TelephoneNumber
41+
Indicates the phone number for the assignment block be removed from.
42+
43+
```yaml
44+
Type: System.String
45+
Parameter Sets: (All)
46+
Aliases:
47+
48+
Required: True
49+
Position: Named
50+
Default value: None
51+
Accept pipeline input: False
52+
Accept wildcard characters: False
53+
```
54+
55+
56+
### CommonParameters
57+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
58+
59+
## INPUTS
60+
61+
### None
62+
63+
## OUTPUTS
64+
65+
### None
66+
67+
## NOTES
68+
69+
## RELATED LINKS
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
applicable: Microsoft Teams
3+
author: pavellatif
4+
external help file: Microsoft.Teams.ConfigAPI.Cmdlets-help.xml
5+
Locale: en-US
6+
manager: roykuntz
7+
Module Name: MicrosoftTeams
8+
ms.author: pavellatif
9+
ms.reviewer: pavellatif
10+
online version: https://learn.microsoft.com/powershell/module/teams/set-csphonenumberassignmentblock
11+
schema: 2.0.0
12+
title: Set-CsPhoneNumberAssignmentBlock
13+
---
14+
15+
# Set-CsPhoneNumberAssignmentBlock
16+
17+
## SYNOPSIS
18+
This cmdlet allows the admin to create and assign a temporary block on telephone number assignment to selected telephone number.
19+
20+
## SYNTAX
21+
22+
```
23+
Set-CsPhoneNumberAssignmentBlock -TelephoneNumber <String> [-AssignmentBlockedForever] [-AssignmentBlockedDays <Integer>] [<CommonParameters>]
24+
```
25+
26+
## DESCRIPTION
27+
This cmdlet allows the teams phone administrators to create and assign a temporary block on telephone number assignment to selected telephone number. There are two ways to create the assignment block:
28+
1. Assignment is blocked until cleared. This can be set by -AssignmentBlockedForever parameter. Once set, the telephone number will remain unassignable until the block is cleared by an admin.
29+
2. Assignment is blocked for a set number of days. This can be achieved by setting -AssignmentBlockedDays parameter (this value must be a valid integer between 1 and 365 days). Once set, the telephone number will remain unassignable until the time runs out or the block is cleared by an admin. ***The -AssignmentBlockedDays parameter is currently not available***.
30+
31+
The admin **cannot** set both -AssignmentBlockedForever and -AssignmentBlockedDays for the same number. If there is an existing assignment block on the number, the admin must remove the existing block using [Remove-CsPhoneNumberAssignmentBlock](https://learn.microsoft.com/powershell/module/teams/remove-csphonenumberassignmentblock) before proceeding with setting the new assignment block.
32+
33+
## EXAMPLES
34+
35+
### Example 1
36+
```powershell
37+
PS C:\> Set-CsPhoneNumberAssignmentBlock -TelephoneNumber +123456789 -AssignmentBlockedForever
38+
```
39+
40+
The above example shows how to set an indefinite assignment block to a +123456789 number.
41+
42+
### Example 2
43+
```powershell
44+
PS C:\> Set-CsPhoneNumberAssignmentBlock -TelephoneNumber +123456789 -AssignmentBlockedDays 30
45+
```
46+
47+
The above example shows how to set an assignment block to a +123456789 number for 30 days. ***This feature is currently not available.***
48+
49+
## PARAMETERS
50+
51+
### -TelephoneNumber
52+
Indicates the phone number for the assignment block to be assigned.
53+
54+
```yaml
55+
Type: System.String
56+
Parameter Sets: (All)
57+
Aliases:
58+
59+
Required: True
60+
Position: Named
61+
Default value: None
62+
Accept pipeline input: False
63+
Accept wildcard characters: False
64+
```
65+
66+
### -AssignmentBlockedForever
67+
Sets an indefinite block on assignment for the telephone number.
68+
69+
```yaml
70+
Type: System.Management.Automation.SwitchParameter
71+
Parameter Sets: (All)
72+
Aliases:
73+
74+
Required: False
75+
Position: Named
76+
Default value: None
77+
Accept pipeline input: False
78+
Accept wildcard characters: False
79+
```
80+
81+
### -AssignmentBlockedDays
82+
Sets a duration based assignment block on the telephone number. ***This feature is currently not available.***
83+
84+
```yaml
85+
Type: System.Int32
86+
Parameter Sets: (All)
87+
Aliases:
88+
89+
Required: False
90+
Position: Named
91+
Default value: None
92+
Accept pipeline input: False
93+
Accept wildcard characters: False
94+
```
95+
96+
97+
### CommonParameters
98+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
99+
100+
## INPUTS
101+
102+
### None
103+
104+
## OUTPUTS
105+
106+
### None
107+
108+
## NOTES
109+
110+
## RELATED LINKS

0 commit comments

Comments
 (0)