diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1 index 562cc307bef5..7b957c884765 100644 --- a/eng/common/scripts/Update-DocsMsPackages.ps1 +++ b/eng/common/scripts/Update-DocsMsPackages.ps1 @@ -54,7 +54,7 @@ function GetDocsMetadataForMoniker($moniker) { $versionPreview = $fileObject.Version } - $metadata += @{ + $entry = @{ Package = $fileObject.Name; VersionGA = $versionGa; VersionPreview = $versionPreview; @@ -62,6 +62,11 @@ function GetDocsMetadataForMoniker($moniker) { Type = $fileObject.SdkType; New = $fileObject.IsNewSdk; } + if ($fileObject.PSObject.Members.Name -contains "Group") + { + $entry.Add("GroupId", $fileObject.Group) + } + $metadata += $entry } return $metadata