Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply ordering during export for Get-Team cmdlet #5842

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change log for Microsoft365DSC

# UNRELEASED

* TeamsChannel
* Apply ordering during export.
FIXES [#5829](https://github.com/microsoft/Microsoft365DSC/issues/5829)
* TeamsTeam
* Apply ordering during export.
* TeamsUser
* Apply ordering during export.


# 1.25.219.3

* AADApplication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function Export-TargetResource

try
{
$teams = Get-Team -ErrorAction Stop
$teams = Get-Team -ErrorAction Stop | Sort-Object -Property GroupId
$j = 1
$dscContent = ''
Write-Host "`r`n" -NoNewline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ function Export-TargetResource
$organization = $Credential.UserName.Split('@')[1]
}

$teams = Get-Team
$teams = Get-Team | Sort-Object -Property GroupId
$i = 1
$dscContent = ''
Write-Host "`r`n" -NoNewline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function Export-TargetResource

try
{
[array]$instances = Get-Team
[array]$instances = Get-Team | Sort-Object -Property GroupId
if ($instances.Length -eq 0)
{
Write-Host $Global:M365DSCEmojiGreenCheckMark
Expand Down