Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4c67d77
Updating DR inventory examples
pavellatif Jan 28, 2025
3e6eb80
Update Get-CsPhoneNumberAssignment.md
pavellatif Jan 29, 2025
9862b93
Update Get-CsPhoneNumberAssignment.md
pavellatif Jan 29, 2025
92e8a47
Update Get-CsPhoneNumberAssignment.md
pavellatif Jan 29, 2025
f9a2fd8
Update New-CsOnlineDirectRoutingTelephoneNumberUploadOrder.md
pavellatif Jan 29, 2025
77ed9ee
Update New-CsOnlineDirectRoutingTelephoneNumberUploadOrder.md
pavellatif Jan 29, 2025
3757deb
Update New-CsOnlineDirectRoutingTelephoneNumberUploadOrder.md
pavellatif Jan 29, 2025
b726d59
Update docfx.json
chrisda Jan 29, 2025
dc9b911
Merge branch 'main' into chrisda
Ruchika-mittal01 Jan 29, 2025
06ecbd3
Merge branch 'main' into chrisda
garycentric Jan 29, 2025
512f180
Merge branch 'main' into chrisda
chrisda Jan 29, 2025
ce4e243
Merge branch 'main' into chrisda
chrisda Jan 29, 2025
eeb5c2b
Merge branch 'main' into chrisda
chrisda Jan 29, 2025
e53c983
Merge branch 'main' into chrisda
chrisda Jan 29, 2025
5b57322
Adding missing title property
chrisda Jan 30, 2025
e4fabee
Merge branch 'main' into chrisda2
chrisda Jan 30, 2025
88f9f89
Merge pull request #12492 from MicrosoftDocs/chrisda2
chrisda Jan 30, 2025
d67e709
Sorted YAML block
chrisda Jan 30, 2025
c5cc41c
Merge branch 'main' into chrisda2
chrisda Jan 30, 2025
4fbf061
Added missing title property 2
chrisda Jan 30, 2025
39f855f
Merge pull request #12493 from MicrosoftDocs/chrisda2
chrisda Jan 30, 2025
da6e153
Merge branch 'main' into chrisda
chrisda Jan 30, 2025
572d7fb
Merge branch 'main' into main
sfrancis206 Jan 30, 2025
a1374d2
Update links and improve example descriptions
sfrancis206 Jan 30, 2025
fe47807
Update links to relative paths in documentation
sfrancis206 Jan 30, 2025
ca4b3d0
Merge pull request #12484 from MicrosoftDocs/chrisda
garycentric Jan 30, 2025
bb1f1b0
Merge branch 'main' into main
aditisrivastava07 Jan 30, 2025
20f97e1
Merge pull request #12478 from pavellatif/main
aditisrivastava07 Jan 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Add-TeamChannelUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/add-teamchanneluser
title: Add-TeamChannelUser
schema: 2.0.0
---

Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Add-TeamUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/add-teamuser
title: Add-TeamUser
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Add-TeamsAppInstallation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/add-teamsappinstallation
title: Add-TeamsAppInstallation
schema: 2.0.0
---

Expand Down
3 changes: 2 additions & 1 deletion teams/teams-ps/teams/Clear-TeamsEnvironmentConfig.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
external help file: Microsoft.TeamsCmdlets.PowerShell.Connect.dll-Help.xml
Module Name: MicrosoftTeams
online version:
online version: https://learn.microsoft.com/powershell/module/teams/clear-teamsenvironmentconfig
title: Clear-TeamsEnvironmentConfig
schema: 2.0.0
author: VikneshMSFT
ms.author: vimohan
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Connect-MicrosoftTeams.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.Open.Teams.CommonLibrary.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/connect-microsoftteams
title: Connect-MicrosoftTeams
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Disconnect-MicrosoftTeams.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.Open.Teams.CommonLibrary.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/disconnect-microsoftteams
title: Disconnect-MicrosoftTeams
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-AssociatedTeam.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-associatedteam
title: Get-AssociatedTeam
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csbatchpolicyassignmentoperation
title: Get-CsBatchPolicyAssignmentOperation
schema: 2.0.0
author: tomkau
ms.author: tomkau
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsBatchTeamsDeploymentStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/Get-CsBatchTeamsDeploymentStatus
title: Get-CsBatchTeamsDeploymentStatus
schema: 2.0.0
---

Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsGroupPolicyAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csgrouppolicyassignment
title: Get-CsGroupPolicyAssignment
schema: 2.0.0
---

Expand Down
4 changes: 3 additions & 1 deletion teams/teams-ps/teams/Get-CsHybridTelephoneNumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ external help file: Microsoft.Open.Teams.CommonLibrary.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-cshybridtelephonenumber
applicable: Microsoft Teams
title: Get-CsHybridTelephoneNumber
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
ms.reviewer:
manager:
schema: 2.0.0

---

# Get-CsHybridTelephoneNumber
Expand Down
3 changes: 2 additions & 1 deletion teams/teams-ps/teams/Get-CsInboundExemptNumberPattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
external help file: Microsoft.Rtc.Management.Hosted.dll-help.xml
online version: https://learn.microsoft.com/powershell/module/teams/get-csinboundexemptnumberpattern
applicable: Microsoft Teams
title: Get-CsInboundExemptNumberPattern
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
ms.reviewer:
manager:
schema: 2.0.0
---

# Get-CsInboundExemptNumberPattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csonlineaudioconferencingroutingpolicy
title: Get-CsOnlineAudioConferencingRoutingPolicy
schema: 2.0.0
---

Expand Down
4 changes: 3 additions & 1 deletion teams/teams-ps/teams/Get-CsOnlineAudioFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
external help file: Microsoft.Rtc.Management.Hosted.dll-help.xml
online version: https://learn.microsoft.com/powershell/module/teams/get-csonlineaudiofile
applicable: Microsoft Teams
title: Get-CsOnlineAudioFile
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
ms.reviewer:
manager:
schema: 2.0.0

---

# Get-CsOnlineAudioFile
Expand Down
87 changes: 80 additions & 7 deletions teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ external help file: Microsoft.Open.Teams.CommonLibrary.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csphonenumberassignment
applicable: Microsoft Teams
title: Get-CsPhoneNumberAssignment
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
ms.reviewer:
manager:
schema: 2.0.0
---

# Get-CsPhoneNumberAssignment
Expand All @@ -20,7 +21,7 @@ This cmdlet displays information about one or more phone numbers.
### Assignment (Default)
```powershell
Get-CsPhoneNumberAssignment [-ActivationState <string>] [-AssignedPstnTargetId <string>] [-AssignmentCategory <string>]
[-CapabilitiesContain <string>] [-CivicAddressId <string>] [-IsoCountryCode <string>]
[-CapabilitiesContain <string>] [-CivicAddressId <string>] [-Filter <String>] [-IsoCountryCode <string>]
[-LocationId <string>] [-NetworkSiteId <string>] [-NumberType <string>] [-PstnAssignmentStatus <string>] [-Skip <int>] [-TelephoneNumber <string>]
[-TelephoneNumberContain <string>] [-TelephoneNumberGreaterThan <string>] [-TelephoneNumberLessThan <string>]
[-TelephoneNumberStartsWith <string>] [-Top <int>] [<CommonParameters>]
Expand All @@ -33,7 +34,7 @@ Returned results are sorted by TelephoneNumber in ascending order.

If you are using both -Skip X and -Top Y for filtering, the returned results will first be skipped by X, and then the top Y results will be returned.

By default, this cmdlet returns a maximum of 500 results.
By default, this cmdlet returns a maximum of 500 results. A maximum of 1000 results can be returned using -Top filter. If you need to get more than 1000 results, a combination of -Skip and -Top filtering can be used to list incremental returns of 1000 numbers. If a full list of telephone numbers acquired by the tenant is required, you can use [Export-CsAcquiredPhoneNumber](./export-csacquiredphonenumber.md) cmdlet to download a list of all acquired telephone numbers.

## EXAMPLES

Expand Down Expand Up @@ -131,15 +132,15 @@ This example returns the number of Calling Plan subscriber phone numbers that ar

### Example 9
```powershell
(Get-CsPhoneNumberAssignment | Where-Object {!$_.NumberType.Contains('DirectRouting') -and $_.Capability.Contains('VoiceApplicationAssignment') -and $_.Capability.Contains('ConferenceAssignment')}).Count
Get-CsPhoneNumberAssignment -Top (50::500)
```
This example returns the number of Calling Plan or Operator Connect service phone numbers that can be assigned to voice applications and conference bridges.
This example returns all phone numbers in the record between sequence 50 to 500. This parameter can be used to get upto a maximum 1000 results at a time.

### Example 10
```powershell
Get-CsPhoneNumberAssignment -Top ([int]::MaxValue)
Get-CsPhoneNumberAssignment -Skip 1000 -Top 1000
```
This example returns all phone numbers.
This example returns all phone numbers sequenced between 1001 to 2000 in the record of phone numbers.

### Example 11
```powershell
Expand Down Expand Up @@ -175,6 +176,63 @@ ReverseNumberLookup : {SkipInternalVoip}
```
This example displays when SkipInternalVoip option is turned on for a number.

### Example 13
```powershell
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -eq '+12065551000'"
```
```output
TelephoneNumber : +12065551000
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
NumberType : DirectRouting
ActivationState : Activated
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
AssignmentCategory : Primary
Capability : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
City :
CivicAddressId : 00000000-0000-0000-0000-000000000000
IsoCountryCode :
IsoSubdivision :
LocationId : 00000000-0000-0000-0000-000000000000
LocationUpdateSupported : True
NetworkSiteId :
PortInOrderStatus :
PstnAssignmentStatus : UserAssigned
PstnPartnerId :
PstnPartnerName :
NumberSource : OnPremises
ReverseNumberLookup : {}
```
This example shows a way to use -Filter parameter to display information of a specific number.

### Example 14
```powershell
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -like '+12065551000' -and NumberType -eq 'DirectRouting'"
```
```output
TelephoneNumber : +12065551000
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
NumberType : DirectRouting
ActivationState : Activated
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
AssignmentCategory : Primary
Capability : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
City :
CivicAddressId : 00000000-0000-0000-0000-000000000000
IsoCountryCode :
IsoSubdivision :
LocationId : 00000000-0000-0000-0000-000000000000
LocationUpdateSupported : True
NetworkSiteId :
PortInOrderStatus :
PstnAssignmentStatus : UserAssigned
PstnPartnerId :
PstnPartnerName :
NumberSource : OnPremises
ReverseNumberLookup : {}
```
This example shows a way to get filtered results using multiple Filter parameters.


## PARAMETERS

### -ActivationState
Expand Down Expand Up @@ -256,6 +314,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
This can be used to filter on one or more parameters within the search results.
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -IsoCountryCode
Filters the returned results based on the ISO 3166-1 Alpha-2 country code assigned to the phone number.
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsTeamsAudioConferencingPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamsaudioconferencingpolicy
title: Get-CsTeamsAudioConferencingPolicy
schema: 2.0.0
---

Expand Down
4 changes: 2 additions & 2 deletions teams/teams-ps/teams/Get-CsTeamsCustomBannerText.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamscustombannertext
title: Get-CsTeamsCustomBannerText
schema: 2.0.0
author: saleens7
ms.author: wblocker
online version: https://learn.microsoft.com/powershell/module/teams/Get-CsTeamsCustomBannerText
schema: 2.0.0
---

# Get-CsTeamsCustomBannerText
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsTeamsEventsPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamseventspolicy
title: Get-CsTeamsEventsPolicy
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
schema: 2.0.0
external help file: Microsoft.Teams.Policy.Administration.Cmdlets.Core.dll-Help.xml
online version:
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamsexternalaccessconfiguration
title: Get-CsTeamsExternalAccessConfiguration
schema: 2.0.0
---

# Get-CsTeamsExternalAccessConfiguration
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsTeamsFilesPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.Teams.Policy.Administration.Cmdlets.Core.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamsfilespolicy
title: Get-CsTeamsFilesPolicy
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamsnotificationandfeedspolicy
title: Get-CsTeamsNotificationAndFeedsPolicy
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamsroomvideoteleconferencingpolicy
title: Get-CsTeamsRoomVideoTeleConferencingPolicy
schema: 2.0.0
---

Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsTeamsSettingsCustomApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamssettingscustomapp
title: Get-CsTeamsSettingsCustomApp
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamssharedcallingroutingpolicy
applicable: Microsoft Teams
title: Get-CsTeamsSharedCallingRoutingPolicy
schema: 2.0.0
author: serdarsoysal
ms.author: serdars
ms.reviewer:
manager:
schema: 2.0.0
---

# Get-CsTeamsSharedCallingRoutingPolicy
Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsTeamsShiftsAppPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamsshiftsapppolicy
title: Get-CsTeamsShiftsAppPolicy
schema: 2.0.0
---

Expand Down
1 change: 1 addition & 0 deletions teams/teams-ps/teams/Get-CsTeamsShiftsPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-teamsshiftspolicy
title: Get-CsTeamsShiftsPolicy
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamssurvivablebranchappliance
title: Get-CsTeamsSurvivableBranchAppliance
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
external help file: MicrosoftTeams-help.xml
Module Name: MicrosoftTeams
online version: https://learn.microsoft.com/powershell/module/teams/get-csteamssurvivablebranchappliancepolicy
title: Get-CsTeamsSurvivableBranchAppliancePolicy
schema: 2.0.0
---

Expand Down
Loading