From 0cd58c235cd1e7ae278e1e7e4b30322855bc9906 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Wed, 22 Jul 2026 13:38:22 -0700 Subject: [PATCH 01/17] revert 790 --- scripts/GenerateMarkDown.ps1 | 177 +++++++---------------------------- 1 file changed, 33 insertions(+), 144 deletions(-) diff --git a/scripts/GenerateMarkDown.ps1 b/scripts/GenerateMarkDown.ps1 index 52498f065e01d..d7fd5d244a5ea 100644 --- a/scripts/GenerateMarkDown.ps1 +++ b/scripts/GenerateMarkDown.ps1 @@ -13,36 +13,6 @@ function Get-GraphMapping { $graphMapping.Add("beta", "graph-powershell-beta") return $graphMapping } - -function Get-NormalizedContent { - param ( - [ValidateNotNullOrEmpty()] - [string] $FilePath - ) - $content = Get-Content $FilePath -Raw - # Normalize line endings to LF and trim trailing whitespace - $content = $content -replace "`r`n", "`n" - $content = $content.TrimEnd() - # Strip ms.date line so date-only changes are ignored during comparison - $content = $content -replace '(?m)^ms\.date: .+$', '' - return $content -} - -function Get-DeterministicGuid { - param ( - [ValidateNotNullOrEmpty()] - [string] $InputString - ) - $bytes = [System.Text.Encoding]::UTF8.GetBytes($InputString) - $sha256 = [System.Security.Cryptography.SHA256]::Create() - try { - $hash = $sha256.ComputeHash($bytes) - return [guid]::new([byte[]]$hash[0..15]).ToString() - } finally { - $sha256.Dispose() - } -} - function Set-Help { param ( [ValidateNotNullOrEmpty()] @@ -86,11 +56,10 @@ function Start-GraphHelp { $ModulePrefix = "Microsoft.Graph" $AuthPath = "$ModulePrefix.Authentication" $AuthDestination = Join-Path $WorkLoadDocsPath "graph-powershell-1.0" $AuthPath + Get-ChildItem -Path $AuthDestination * -File -Recurse | foreach { $_.Delete() } Import-Module Microsoft.Graph.Authentication -Global $GraphMapping = Get-GraphMapping - $TempAuthDir = Join-Path ([System.IO.Path]::GetTempPath()) "GraphDocsTempAuth_$([guid]::NewGuid().ToString('N'))" - New-Item -Path $TempAuthDir -ItemType Directory -Force | Out-Null $GraphMapping.Keys | ForEach-Object { $graphProfile = $_ $profilePath = "graph-powershell-1.0" @@ -98,34 +67,10 @@ function Start-GraphHelp { $profilePath = "graph-powershell-beta" } - # Generate all auth module docs to temp directory using module-level generation - Set-Help -ModuleDocsPath $TempAuthDir -Command "Connect-MgGraph" -Module "Microsoft.Graph.Authentication" - - # Compare and copy all generated auth files - $TempAuthModuleDir = Join-Path $TempAuthDir $AuthPath - if (Test-Path $TempAuthModuleDir) { - if (-not (Test-Path $AuthDestination)) { - New-Item -Path $AuthDestination -ItemType Directory -Force | Out-Null - } - Get-ChildItem -Path $TempAuthModuleDir -Filter "*.md" -File | ForEach-Object { - $tempFile = $_.FullName - $existingFile = Join-Path $AuthDestination $_.Name - if (Test-Path $existingFile) { - $existingContent = Get-NormalizedContent -FilePath $existingFile - $newContent = Get-NormalizedContent -FilePath $tempFile - if ($existingContent -ne $newContent) { - Copy-Item -Path $tempFile -Destination $existingFile -Force - Write-Host "Updated auth doc: $($_.BaseName)" - } - } else { - Copy-Item -Path $tempFile -Destination $existingFile -Force - Write-Host "Added auth doc: $($_.BaseName)" - } - } - } + $AuthenticationDocsPath = Join-Path $PSScriptRoot "..\microsoftgraph\graph-powershell-1.0" + Set-Help -ModuleDocsPath $AuthenticationDocsPath -Command "Connect-MgGraph" -Module "Microsoft.Graph.Authentication" Get-FolderByProfile -GraphProfile $graphProfile -GraphProfilePath $profilePath -ModulePrefix $ModulePrefix -ModulesToGenerate $ModulesToGenerate } - Remove-Item -Path $TempAuthDir -Recurse -Force -ErrorAction SilentlyContinue git config --global user.email "GraphTooling@service.microsoft.com" git config --global user.name "Microsoft Graph DevX Tooling" git add . @@ -144,11 +89,7 @@ function Get-FolderByProfile { $ModulesToGenerate = @() ) $CommandMetadataContent = Get-Content $CmdletMetadataPath | ConvertFrom-Json - - # Create a single temp directory for this profile's generation - $TempOutputDir = Join-Path ([System.IO.Path]::GetTempPath()) "GraphDocsTemp_$([guid]::NewGuid().ToString('N'))" - New-Item -Path $TempOutputDir -ItemType Directory -Force | Out-Null - + $ModulesToGenerate | ForEach-Object { $ModuleName = $_ Write-Host $ModuleName @@ -163,104 +104,52 @@ function Get-FolderByProfile { if (-not(Test-Path $Destination)) { New-Item -Path $Destination -ItemType Directory } - + + Get-ChildItem -Path $Destination * -File -Recurse | foreach { $_.Delete() } $CmdletCount = 0 - $MetadataCommands = @{} - - # Generate table of contents for each module using a deterministic GUID + # Generate table of contents for each module $TocFileName = "$Path.md" - $ModuleGuid = Get-DeterministicGuid -InputString $Path + $ModuleGuid = [guid]::NewGuid().ToString() $LinkProfile = $GraphProfile.Replace("v", "") $LinkModuleName = $Path.ToLower() $HelpVersion = "1.0.0.0" $HelpLocale = "en-US" - $DownloadLink = "https://learn.microsoft.com/en-us/powershell/module/$LinkModuleName/?view=graph-powershell-$LinkProfile" - - # Build TOC content in memory to compare before writing - $TocContent = @() - $TocContent += "---" - $TocContent += "Module Name: $Path" - $TocContent += "Module Guid: $ModuleGuid" - $TocContent += "Download Help Link: $DownloadLink" - $TocContent += "Help Version: $HelpVersion" - $TocContent += "Locale: $HelpLocale" - $TocContent += "---" - $TocContent += "" - $TocContent += "# $Path Module" - $TocContent += "## Description" - $TocContent += "Microsoft Graph PowerShell Cmdlets" - $TocContent += "" - $TocContent += "## $Path Cmdlets" - + $DownloadLink = "https://learn.microsoft.com/en-us/powershell/module/$LinkModuleName/?view=graph-powershell-$LinkProfile" + New-Item -Path $Destination -Name $TocFileName -ItemType File -Force + Add-Content -Path $Destination\$TocFileName -Value "---" + Add-Content -Path $Destination\$TocFileName -Value "Module Name: $Path" + Add-Content -Path $Destination\$TocFileName -Value "Module Guid: $ModuleGuid" + Add-Content -Path $Destination\$TocFileName -Value "Download Help Link: $DownloadLink" + Add-Content -Path $Destination\$TocFileName -Value "Help Version: $HelpVersion" + Add-Content -Path $Destination\$TocFileName -Value "Locale: $HelpLocale" + Add-Content -Path $Destination\$TocFileName -Value "---" + Add-Content -Path $Destination\$TocFileName -Value "" + Add-Content -Path $Destination\$TocFileName -Value "# $Path Module" + Add-Content -Path $Destination\$TocFileName -Value "## Description" + Add-Content -Path $Destination\$TocFileName -Value "Microsoft Graph PowerShell Cmdlets" + Add-Content -Path $Destination\$TocFileName -Value "" + Add-Content -Path $Destination\$TocFileName -Value "## $Path Cmdlets" $CommandMetadataContent | Where-Object { $_.Module -eq $ModName -and $_.ApiVersion -eq $GraphProfile } | ForEach-Object { $Command = $_.Command - $MetadataCommands[$Command] = $true $CmdletDocsPath = Join-Path $WorkLoadDocsPath $GraphProfilePath $Path "$Command.md" - - # Generate to temp directory and compare with existing - if (Get-Command -Name $Command -ErrorAction SilentlyContinue) { - Set-Help -ModuleDocsPath $TempOutputDir -Command $Command -Module $Path - $TempFilePath = Join-Path $TempOutputDir $Path "$Command.md" - if (Test-Path $TempFilePath) { - if (Test-Path $CmdletDocsPath) { - $existingContent = Get-NormalizedContent -FilePath $CmdletDocsPath - $newContent = Get-NormalizedContent -FilePath $TempFilePath - if ($existingContent -ne $newContent) { - Copy-Item -Path $TempFilePath -Destination $CmdletDocsPath -Force - Write-Host "Updated: $Command" - } - } else { - Copy-Item -Path $TempFilePath -Destination $CmdletDocsPath -Force - Write-Host "Added: $Command" - } + if (-not(Test-Path $CmdletDocsPath)) { + if (Get-Command -Name $Command -ErrorAction SilentlyContinue) { + Set-Help -ModuleDocsPath $DocsDestination -Command $Command -Module $Path + } else { + Write-Warning "Cmdlet $Command is not available." } - } elseif (-not (Test-Path $CmdletDocsPath)) { - Write-Warning "Cmdlet $Command is not available." + } - - $TocContent += "### [$Command]($Command.md)" - $TocContent += "" + Add-Content -Path $Destination\$TocFileName -Value "### [$Command]($Command.md)" + Add-Content -Path $Destination\$TocFileName -Value "" $CmdletCount++ } - - if ($CmdletCount -eq 0) { + if($CmdletCount -eq 0){ Remove-Item -LiteralPath $Destination -Force -Recurse - } else { - # Only write TOC if content has changed - $TocFilePath = Join-Path $Destination $TocFileName - $newTocText = ($TocContent -join "`r`n") + "`r`n" - if (Test-Path $TocFilePath) { - $existingTocText = Get-Content $TocFilePath -Raw - # Normalize both to LF for comparison - $existingNormalized = $existingTocText -replace "`r`n", "`n" - $newNormalized = $newTocText -replace "`r`n", "`n" - if ($existingNormalized.TrimEnd() -ne $newNormalized.TrimEnd()) { - $newTocText | Out-File $TocFilePath -Encoding UTF8 -NoNewline - Write-Host "Updated TOC: $TocFileName" - } - } else { - $newTocText | Out-File $TocFilePath -Encoding UTF8 -NoNewline - Write-Host "Added TOC: $TocFileName" - } - - # Remove orphaned docs — files for commands no longer in metadata - Get-ChildItem -Path $Destination -Filter "*.md" -File | Where-Object { - $cmdName = $_.BaseName - -not $MetadataCommands.ContainsKey($cmdName) -and $_.Name -ne $TocFileName - } | ForEach-Object { - Write-Host "Removing orphaned doc: $($_.Name)" - Remove-Item $_.FullName -Force - } } - # Clean up temp module folder for this iteration - $TempModuleDir = Join-Path $TempOutputDir $Path - if (Test-Path $TempModuleDir) { - Remove-Item -Path $TempModuleDir -Recurse -Force -ErrorAction SilentlyContinue - } } - - Remove-Item -Path $TempOutputDir -Recurse -Force -ErrorAction SilentlyContinue + } # Install PlatyPS Install-Module -Name Microsoft.PowerShell.PlatyPS -Force From e6db7aca807cfefd0501cd38834b6fa3f6728b39 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Wed, 22 Jul 2026 13:43:12 -0700 Subject: [PATCH 02/17] remove stabilize msdate from pipeline --- azure-pipelines/powershell-docs.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/azure-pipelines/powershell-docs.yml b/azure-pipelines/powershell-docs.yml index c0304ad79ada1..603004858ab45 100644 --- a/azure-pipelines/powershell-docs.yml +++ b/azure-pipelines/powershell-docs.yml @@ -158,14 +158,6 @@ extends: targetType: 'filePath' pwsh: true filePath: scripts/CorrectRelatedLinks-AllFiles.ps1 - - task: PowerShell@2 - displayName: 'Stabilize ms.date values' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/StabilizeMsDate.ps1 - errorActionPreference: 'stop' - task: AzureKeyVault@2 displayName: "Azure Key Vault: Get GitHub App secrets" inputs: From 73a8c601468325d6a6906f1c357449e9cc7d5eba Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 24 Jul 2026 02:01:17 -0700 Subject: [PATCH 03/17] Prevent mass doc deletion when Graph modules fail to load Guard GenerateMarkDown.ps1 so a module's docs are only deleted when the module is available to regenerate them. Skip-and-preserve per workload module, and abort if Authentication is unavailable, avoiding refresh PRs that delete thousands of docs after a failed module install. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d27d82f-3809-40d2-b4e7-6623436ff2ef --- scripts/GenerateMarkDown.ps1 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/scripts/GenerateMarkDown.ps1 b/scripts/GenerateMarkDown.ps1 index d7fd5d244a5ea..8c4b03f16ddf8 100644 --- a/scripts/GenerateMarkDown.ps1 +++ b/scripts/GenerateMarkDown.ps1 @@ -56,9 +56,15 @@ function Start-GraphHelp { $ModulePrefix = "Microsoft.Graph" $AuthPath = "$ModulePrefix.Authentication" $AuthDestination = Join-Path $WorkLoadDocsPath "graph-powershell-1.0" $AuthPath + + # Guard against catastrophic deletions: never remove existing docs unless the module + # is available to regenerate them. Authentication is required for every run, so abort + # if it failed to install rather than wiping committed documentation. + if (-not (Get-Module -Name Microsoft.Graph.Authentication -ListAvailable -ErrorAction SilentlyContinue)) { + throw "Microsoft.Graph.Authentication module is not available. Aborting generation to avoid deleting existing documentation." + } + Import-Module Microsoft.Graph.Authentication -Force -Global Get-ChildItem -Path $AuthDestination * -File -Recurse | foreach { $_.Delete() } - - Import-Module Microsoft.Graph.Authentication -Global $GraphMapping = Get-GraphMapping $GraphMapping.Keys | ForEach-Object { $graphProfile = $_ @@ -101,6 +107,16 @@ function Get-FolderByProfile { } $Destination = Join-Path $WorkLoadDocsPath $GraphProfilePath $Path $DocsDestination = Join-Path $WorkLoadDocsPath $GraphProfilePath + + # Guard against catastrophic deletions: if the module failed to install/import, + # skip it entirely so its committed docs are preserved instead of being deleted + # and never regenerated (which is what produced the mass-deletion refresh PRs). + if (-not (Get-Module -Name $Path -ListAvailable -ErrorAction SilentlyContinue)) { + Write-Warning "Module $Path is not available; skipping to preserve existing documentation." + return + } + Import-Module $Path -Force -Global -ErrorAction SilentlyContinue + if (-not(Test-Path $Destination)) { New-Item -Path $Destination -ItemType Directory } From 07657def287d803ad342c41d6f0061804d49781b Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 24 Jul 2026 02:09:19 -0700 Subject: [PATCH 04/17] Normalize generated-commit author to Graph DevX Tooling bot EscapeDisallowedHtmlTags.ps1 and RemoveInvalidFullStops.ps1 hardcoded a personal git identity, so their stage commits in the weekly refresh PRs were attributed to an individual instead of the tooling bot. Align both with the other generation scripts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d27d82f-3809-40d2-b4e7-6623436ff2ef --- scripts/EscapeDisallowedHtmlTags.ps1 | 4 ++-- scripts/RemoveInvalidFullStops.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/EscapeDisallowedHtmlTags.ps1 b/scripts/EscapeDisallowedHtmlTags.ps1 index 7f2d4079ff9da..597d7a5633f81 100644 --- a/scripts/EscapeDisallowedHtmlTags.ps1 +++ b/scripts/EscapeDisallowedHtmlTags.ps1 @@ -23,8 +23,8 @@ function EscapeDisallowedHtmlTags { Get-FilesByProfile -GraphProfile $graphProfile -GraphProfilePath $GraphMapping[$graphProfile] -ModulePrefix $ModulePrefix -ModulesToGenerate $ModulesToGenerate } - git config --global user.email "timwamalwa@gmail.com" - git config --global user.name "Timothy Wamalwa" + git config --global user.email "GraphTooling@service.microsoft.com" + git config --global user.name "Microsoft Graph DevX Tooling" git add . git commit -m "Escaped disallowed html tags" } diff --git a/scripts/RemoveInvalidFullStops.ps1 b/scripts/RemoveInvalidFullStops.ps1 index 37be47e7c73df..db34789d58025 100644 --- a/scripts/RemoveInvalidFullStops.ps1 +++ b/scripts/RemoveInvalidFullStops.ps1 @@ -23,8 +23,8 @@ function Remove-InvalidFullStops { Get-FilesByProfile -GraphProfile $graphProfile -GraphProfilePath $GraphMapping[$graphProfile] -ModulePrefix $ModulePrefix -ModulesToGenerate $ModulesToGenerate } - git config --global user.email "timwamalwa@gmail.com" - git config --global user.name "Timothy Wamalwa" + git config --global user.email "GraphTooling@service.microsoft.com" + git config --global user.name "Microsoft Graph DevX Tooling" git add . git commit -m "Removed invalid full stops from the beginning of lines" } From 29c4a42a5ee11cabad11dfec978623090f64c623 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 28 Jul 2026 11:36:40 -0700 Subject: [PATCH 05/17] Fix duplicated doc enrichment blocks and BOM churn in generation - UpdateLinks.ps1: only insert the beta/v1 '[!NOTE]' link when it is not already present, so weekly runs stop stacking duplicate note blocks. - GeneratePermissionsTable.ps1: skip files that already contain a '**Permissions**' table instead of prepending another copy each run. - GenerateMarkDown.ps1: write PlatyPS output as UTF-8 without BOM so every regenerated file no longer diffs on a leading BOM. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d27d82f-3809-40d2-b4e7-6623436ff2ef --- scripts/GenerateMarkDown.ps1 | 4 ++-- scripts/GeneratePermissionsTable.ps1 | 7 ++++++- scripts/UpdateLinks.ps1 | 6 +++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/GenerateMarkDown.ps1 b/scripts/GenerateMarkDown.ps1 index 8c4b03f16ddf8..3aaae05dc9f8d 100644 --- a/scripts/GenerateMarkDown.ps1 +++ b/scripts/GenerateMarkDown.ps1 @@ -27,7 +27,7 @@ function Set-Help { Command = (Get-Command $Command) OutputFolder = $ModuleDocsPath Force = $true - Encoding = [System.Text.Encoding]::UTF8 + Encoding = [System.Text.UTF8Encoding]::new($false) } if ($Module -eq "Microsoft.Graph.Authentication") { @@ -35,7 +35,7 @@ function Set-Help { Module = (Get-Module $Module) OutputFolder = $ModuleDocsPath WithModulePage = $true - Encoding = [System.Text.Encoding]::UTF8 + Encoding = [System.Text.UTF8Encoding]::new($false) } Import-Module $Module -Force -Global } diff --git a/scripts/GeneratePermissionsTable.ps1 b/scripts/GeneratePermissionsTable.ps1 index aeca973f7f228..47e90ae3698f8 100644 --- a/scripts/GeneratePermissionsTable.ps1 +++ b/scripts/GeneratePermissionsTable.ps1 @@ -136,7 +136,12 @@ function New-ReferenceTable { "@; - if ((Get-Content -Raw -Path $File) -match '(## DESCRIPTION)[\s\S]*## EXAMPLES') { + if ((Get-Content -Raw -Path $File) -match '\*\*Permissions\*\*') { + # A permissions table has already been inserted on a previous run. + # Skip to avoid prepending a duplicate '**Permissions**' block. + Write-Host "Skipping $CommandName as it already has a permissions table"; + } + elseif ((Get-Content -Raw -Path $File) -match '(## DESCRIPTION)[\s\S]*## EXAMPLES') { $Link = "**Permissions**`r`n`n$markdownTable`r`n`n## EXAMPLES" (Get-Content $File) | Foreach-Object { $_ -replace '## EXAMPLES', $Link } | diff --git a/scripts/UpdateLinks.ps1 b/scripts/UpdateLinks.ps1 index f7edf3e93bcd6..fcc8d8e2253b2 100644 --- a/scripts/UpdateLinks.ps1 +++ b/scripts/UpdateLinks.ps1 @@ -175,7 +175,11 @@ function Add-Link { $Folder = $View.Split("=")[1] $ConfirmFile = Join-Path $WorkLoadDocsPath "$Folder" "$ModuleName" "$CommandRename.md" $ConfirmCommandAvailability = Find-MgGraphCommand -Command $CommandRename - if ($ConfirmCommandAvailability -and (Test-Path $ConfirmFile)) { + # Only insert the note if it isn't already present, otherwise every run + # prepends another copy of the same '[!NOTE]' block before '## SYNTAX'. + $NoteMarker = "$LinkTitle [$CommandRename]($BaseUrl/$FullModuleName$View)" + $AlreadyLinked = (Get-Content -Raw -Path $File) -match [regex]::Escape($NoteMarker) + if ($ConfirmCommandAvailability -and (Test-Path $ConfirmFile) -and -not $AlreadyLinked) { (Get-Content $File) | Foreach-Object { $_ -replace '## SYNTAX', $Link } | Out-File $File From a94085a9f3a84c441f3ed86dc5714407d8654618 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 28 Jul 2026 12:15:46 -0700 Subject: [PATCH 06/17] Force LF line endings for generated markdown docs Add '*.md text eol=lf' to .gitattributes so PlatyPS/transform scripts, which run on Windows and emit CRLF, no longer produce line-ending churn in the weekly refresh PRs. Index blobs are already LF, so this only pins the working-tree checkout and future writes to LF. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d27d82f-3809-40d2-b4e7-6623436ff2ef --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitattributes b/.gitattributes index 9fb85ec49f011..ff067eed84e37 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,6 +9,10 @@ # Declare files that will always have CRLF line endings on checkout. *.sln text eol=crlf +# Reference docs are generated by PlatyPS/transform scripts on Windows. +# Force LF so regenerated markdown never churns the diff with CRLF endings. +*.md text eol=lf + # Denote all files that are truly binary and should not be modified. *.png binary *.jpg binary \ No newline at end of file From 19a3a1a450a7ffe97d24ef506837f842c15293e7 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Wed, 29 Jul 2026 11:57:43 -0700 Subject: [PATCH 07/17] Prevent mass doc deletion by overwriting in place and removing only orphans Bulk-deleting a module's docs before regenerating meant any transient import failure (installed but unimportable module, e.g. Authentication version conflict) wiped docs that were never regenerated, producing refresh PRs with thousands of missing files. Now: verify the module truly imports and exposes commands before processing (skip-and-preserve otherwise), overwrite each doc in place, and remove only genuine orphans whose command is no longer in the metadata. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d27d82f-3809-40d2-b4e7-6623436ff2ef --- scripts/GenerateMarkDown.ps1 | 56 +++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/scripts/GenerateMarkDown.ps1 b/scripts/GenerateMarkDown.ps1 index 3aaae05dc9f8d..0d5a062bef429 100644 --- a/scripts/GenerateMarkDown.ps1 +++ b/scripts/GenerateMarkDown.ps1 @@ -63,7 +63,7 @@ function Start-GraphHelp { if (-not (Get-Module -Name Microsoft.Graph.Authentication -ListAvailable -ErrorAction SilentlyContinue)) { throw "Microsoft.Graph.Authentication module is not available. Aborting generation to avoid deleting existing documentation." } - Import-Module Microsoft.Graph.Authentication -Force -Global + Import-Module Microsoft.Graph.Authentication -Force -Global -ErrorAction Stop Get-ChildItem -Path $AuthDestination * -File -Recurse | foreach { $_.Delete() } $GraphMapping = Get-GraphMapping $GraphMapping.Keys | ForEach-Object { @@ -108,21 +108,37 @@ function Get-FolderByProfile { $Destination = Join-Path $WorkLoadDocsPath $GraphProfilePath $Path $DocsDestination = Join-Path $WorkLoadDocsPath $GraphProfilePath - # Guard against catastrophic deletions: if the module failed to install/import, - # skip it entirely so its committed docs are preserved instead of being deleted + # Guard against catastrophic deletions. A module can be installed yet fail to + # import (e.g. an Authentication version conflict), and ListAvailable alone does + # not catch that. Verify the module actually imports AND exposes commands; if it + # does not, skip it so its committed docs are preserved instead of being wiped # and never regenerated (which is what produced the mass-deletion refresh PRs). - if (-not (Get-Module -Name $Path -ListAvailable -ErrorAction SilentlyContinue)) { - Write-Warning "Module $Path is not available; skipping to preserve existing documentation." + $ModuleUsable = $false + if (Get-Module -Name $Path -ListAvailable -ErrorAction SilentlyContinue) { + try { + Import-Module $Path -Force -Global -ErrorAction Stop + if (Get-Command -Module $Path -ErrorAction SilentlyContinue) { + $ModuleUsable = $true + } + } catch { + Write-Warning "Module $Path failed to import: $($_.Exception.Message)" + } + } + if (-not $ModuleUsable) { + Write-Warning "Module $Path is not usable; skipping to preserve existing documentation." return } - Import-Module $Path -Force -Global -ErrorAction SilentlyContinue if (-not(Test-Path $Destination)) { New-Item -Path $Destination -ItemType Directory } - - Get-ChildItem -Path $Destination * -File -Recurse | foreach { $_.Delete() } + + # NOTE: docs are intentionally NOT bulk-deleted here. Each doc is overwritten in + # place as it is regenerated, and only genuine orphans (commands no longer in the + # metadata) are removed afterwards. This guarantees that a transient generation + # failure can never wipe a module's documentation. $CmdletCount = 0 + $MetadataCommands = @{} # Generate table of contents for each module $TocFileName = "$Path.md" $ModuleGuid = [guid]::NewGuid().ToString() @@ -147,19 +163,27 @@ function Get-FolderByProfile { Add-Content -Path $Destination\$TocFileName -Value "## $Path Cmdlets" $CommandMetadataContent | Where-Object { $_.Module -eq $ModName -and $_.ApiVersion -eq $GraphProfile } | ForEach-Object { $Command = $_.Command - $CmdletDocsPath = Join-Path $WorkLoadDocsPath $GraphProfilePath $Path "$Command.md" - if (-not(Test-Path $CmdletDocsPath)) { - if (Get-Command -Name $Command -ErrorAction SilentlyContinue) { - Set-Help -ModuleDocsPath $DocsDestination -Command $Command -Module $Path - } else { - Write-Warning "Cmdlet $Command is not available." - } - + $MetadataCommands[$Command] = $true + if (Get-Command -Name $Command -ErrorAction SilentlyContinue) { + Set-Help -ModuleDocsPath $DocsDestination -Command $Command -Module $Path + } else { + Write-Warning "Cmdlet $Command is not available." } Add-Content -Path $Destination\$TocFileName -Value "### [$Command]($Command.md)" Add-Content -Path $Destination\$TocFileName -Value "" $CmdletCount++ } + + # Remove only genuine orphans: docs whose command is no longer in the metadata. + # Docs for commands still in metadata are preserved even if this run failed to + # regenerate them, so a bad run cannot delete valid documentation. + Get-ChildItem -Path $Destination -Filter "*.md" -File | Where-Object { + $_.Name -ne $TocFileName -and -not $MetadataCommands.ContainsKey($_.BaseName) + } | ForEach-Object { + Write-Host "Removing orphaned doc: $($_.Name)" + Remove-Item $_.FullName -Force + } + if($CmdletCount -eq 0){ Remove-Item -LiteralPath $Destination -Force -Recurse } From 00db04466cdc97b8fcbf4298c23497504bb7fd81 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 30 Jul 2026 17:20:46 -0700 Subject: [PATCH 08/17] Refactor weekly docs pipeline into isolated per-module stages Each Graph workload module now generates in its own Azure DevOps stage per SDK profile (~86 independent stages), giving every module a fresh agent and a clean assembly-load context. This structurally eliminates the "assembly with same name is already loaded" collisions that produced mass-deletion / no-op refresh PRs. - GenerateMarkDown.ps1: add -GraphProfileFilter and -ModuleFilter scoping; in scoped runs do a complete delete + full regen of the single module, throw before any deletion on import failure (fail-safe), and emit a ModuleGenerated signal only on success. - 9 post-processing scripts: add matching profile/module scoping and empty-commit guards so each touches only the target module folder. - update-template.yml: parameterized install (InstallProfile/Module) that installs only Authentication + the single workload submodule for isolated runs; install failures warn instead of failing. - New common-templates/generate-module-docs-steps.yml: full single-module sequence (install -> generate -> post-process -> push -> PR). Generate step is continueOnError and every later step is gated on ModuleGenerated, so a failing module deletes nothing, opens no PR, and never fails the overall pipeline. - New common-templates/module-stages.yml: emits one dependsOn:[] stage per module. - powershell-docs.yml: invoke module-stages.yml for v1.0 (incl. Authentication) and beta; each stage opens its own pull request. ms.date changes every run (StabilizeMsDate is intentionally not run) for reviewable PRs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d27d82f-3809-40d2-b4e7-6623436ff2ef --- .../generate-module-docs-steps.yml | 219 ++++++++++++++++ .../common-templates/module-stages.yml | 50 ++++ azure-pipelines/powershell-docs.yml | 248 ++++++++---------- azure-pipelines/update-template.yml | 60 ++++- scripts/CorrectRelatedLinks-AllFiles.ps1 | 10 +- scripts/EscapeDisallowedHtmlTags.ps1 | 16 +- scripts/GenerateAliasedDocs.ps1 | 11 +- scripts/GenerateMarkDown.ps1 | 93 +++++-- scripts/GeneratePermissionsTable.ps1 | 15 +- scripts/MsSubserviceUpdate.ps1 | 7 +- scripts/RemoveBoilerPlateCode.ps1 | 34 ++- scripts/RemoveInvalidFullStops.ps1 | 16 +- .../RepairExamplesDescriptionsAndTitle.ps1 | 14 +- scripts/UpdateLinks.ps1 | 9 +- 14 files changed, 600 insertions(+), 202 deletions(-) create mode 100644 azure-pipelines/common-templates/generate-module-docs-steps.yml create mode 100644 azure-pipelines/common-templates/module-stages.yml diff --git a/azure-pipelines/common-templates/generate-module-docs-steps.yml b/azure-pipelines/common-templates/generate-module-docs-steps.yml new file mode 100644 index 0000000000000..290ee79651d59 --- /dev/null +++ b/azure-pipelines/common-templates/generate-module-docs-steps.yml @@ -0,0 +1,219 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. +# +# Reusable steps that generate and post-process documentation for a SINGLE module in a SINGLE +# SDK profile, then open a dedicated pull request for it. Designed to run inside an isolated +# per-module stage so an import/assembly conflict for one module can never affect another. +# +# Failure containment: the generate step runs with continueOnError, and every step after it is +# gated on the ModuleGenerated variable (set only when generation actually succeeds). If the +# module fails to import, nothing is deleted, no PR is opened, and the stage is marked +# partially-succeeded WITHOUT failing the overall pipeline or any other module's stage. + +parameters: + - name: Module + type: string + - name: GraphProfileFilter + type: string + - name: BranchPrefix + type: string + default: WeeklyDocs + - name: BaseBranch + type: string + default: main + +steps: + - template: ../update-template.yml + parameters: + InstallProfile: ${{ parameters.GraphProfileFilter }} + Module: ${{ parameters.Module }} + + - task: PowerShell@2 + name: ComputeBranch + displayName: 'Compute branch name' + inputs: + targetType: 'inline' + pwsh: true + script: | + git submodule update --init --recursive + $branch = "{0}-{1}-{2}_{3}" -f "${{ parameters.BranchPrefix }}", "${{ parameters.GraphProfileFilter }}", "${{ parameters.Module }}", (Get-Date -Format yyyyMMddHHmm) + Write-Host "Compute branch: $branch" + Write-Host "##vso[task.setvariable variable=ModuleBranch;isOutput=true]$branch" + + - task: Bash@3 + displayName: 'Create module refresh branch' + inputs: + targetType: inline + script: | + git status + git branch $(ComputeBranch.ModuleBranch) + git checkout $(ComputeBranch.ModuleBranch) + git status + + - task: PowerShell@2 + displayName: 'Create missing external docs folder' + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/CreateExternalDocsFolder.ps1 + + - task: PowerShell@2 + name: GenerateDocs + displayName: 'Generate markdown (${{ parameters.Module }} / ${{ parameters.GraphProfileFilter }})' + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/GenerateMarkDown.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Escape disallowed html tags' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/EscapeDisallowedHtmlTags.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Update metadata header' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/MsSubserviceUpdate.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Generate permissions table' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/GeneratePermissionsTable.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Update Links' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/UpdateLinks.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Repair Examples and Descriptions and Title' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/RepairExamplesDescriptionsAndTitle.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Remove boiler plate code' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/RemoveBoilerPlateCode.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Remove invalid fullstops' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/RemoveInvalidFullStops.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Generate missing docs for aliased cmdlets' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/GenerateAliasedDocs.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: PowerShell@2 + displayName: 'Correct related links section' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + inputs: + targetType: 'filePath' + pwsh: true + filePath: scripts/CorrectRelatedLinks-AllFiles.ps1 + arguments: -GraphProfileFilter "${{ parameters.GraphProfileFilter }}" -ModuleFilter "${{ parameters.Module }}" + + - task: AzureKeyVault@2 + displayName: "Azure Key Vault: Get GitHub App secrets" + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + inputs: + azureSubscription: "Federated AKV Managed Identity Connection" + KeyVaultName: akv-prod-eastus + SecretsFilter: "microsoft-graph-devx-bot-appid,microsoft-graph-devx-bot-privatekey" + + - task: PowerShell@2 + displayName: 'Push ${{ parameters.Module }} (${{ parameters.GraphProfileFilter }}) branch' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + env: + GhAppId: $(microsoft-graph-devx-bot-appid) + GhAppKey: $(microsoft-graph-devx-bot-privatekey) + inputs: + targetType: inline + pwsh: true + script: | + git config --global user.email "GraphTooling@service.microsoft.com" + git config --global user.name "Microsoft Graph DevX Tooling" + git config --system core.longpaths true + # The microsoft-graph-devx-bot GitHub App must have contents:write on this repo. + $token = & "$(Build.SourcesDirectory)/scripts/Generate-Github-Token.ps1" -AppClientId $env:GhAppId -AppPrivateKeyContents $env:GhAppKey -Repository "MicrosoftDocs/microsoftgraph-docs-powershell" + if ([string]::IsNullOrWhiteSpace($token)) { throw "Failed to generate GitHub App installation token." } + # Mask the token so it is never surfaced in pipeline logs. + Write-Host "##vso[task.setsecret]$token" + git status + git add . + $pending = git status --porcelain + if (-not [string]::IsNullOrWhiteSpace($pending)) { + git commit -m "Updating reference docs for ${{ parameters.Module }} (${{ parameters.GraphProfileFilter }})" + } + else { + $global:LASTEXITCODE = 0 + } + git push --set-upstream "https://x-access-token:$token@github.com/MicrosoftDocs/microsoftgraph-docs-powershell.git" $(ComputeBranch.ModuleBranch) + git status + + - task: PowerShell@2 + displayName: 'Create PR for ${{ parameters.Module }} (${{ parameters.GraphProfileFilter }})' + condition: and(succeeded(), eq(variables['ModuleGenerated'], 'true')) + continueOnError: true + env: + GhAppId: $(microsoft-graph-devx-bot-appid) + GhAppKey: $(microsoft-graph-devx-bot-privatekey) + inputs: + targetType: inline + pwsh: true + script: | + $BaseBranchName = "${{ parameters.BaseBranch }}" + $Head = "MicrosoftDocs:$(ComputeBranch.ModuleBranch)" + $Title = "Weekly Docs Refresh: ${{ parameters.Module }} (${{ parameters.GraphProfileFilter }})" + $Body = "This pull request was automatically created by Azure Pipelines for the ``${{ parameters.Module }}`` module (``${{ parameters.GraphProfileFilter }}`` profile). **Important** Check for unexpected deletions or changes in this PR." + # The microsoft-graph-devx-bot GitHub App must have pull_requests:write on this repo. + $env:GITHUB_TOKEN = & "$(Build.SourcesDirectory)/scripts/Generate-Github-Token.ps1" -AppClientId $env:GhAppId -AppPrivateKeyContents $env:GhAppKey -Repository "MicrosoftDocs/microsoftgraph-docs-powershell" + if ([string]::IsNullOrWhiteSpace($env:GITHUB_TOKEN)) { throw "Failed to generate GitHub App installation token." } + # Mask the token so it is never surfaced in pipeline logs. + Write-Host "##vso[task.setsecret]$env:GITHUB_TOKEN" + gh pr create -t $Title -b $Body -B $BaseBranchName -H $Head diff --git a/azure-pipelines/common-templates/module-stages.yml b/azure-pipelines/common-templates/module-stages.yml new file mode 100644 index 0000000000000..f8a1f19f2cfc1 --- /dev/null +++ b/azure-pipelines/common-templates/module-stages.yml @@ -0,0 +1,50 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. +# +# Emits one fully independent stage per module for a given SDK profile. Each stage runs on its +# own agent (clean assembly-load context), generates + post-processes docs for that single +# module, and opens its own pull request. All stages have dependsOn: [] so they run in +# parallel and one module can never block or fail another. + +parameters: + - name: GraphProfileFilter + type: string + # Short label used in stage names (stage names cannot contain '.'), e.g. "v1" or "beta". + - name: ProfileLabel + type: string + - name: Modules + type: object + default: [] + - name: BranchPrefix + type: string + default: WeeklyDocs + - name: BaseBranch + type: string + default: main + - name: PipelineTimeout + type: number + default: 120 + +stages: + - ${{ each module in parameters.Modules }}: + - stage: "Gen_${{ parameters.ProfileLabel }}_${{ replace(module, '.', '_') }}" + displayName: '${{ parameters.GraphProfileFilter }} - ${{ module }}' + dependsOn: [] + jobs: + - job: GenerateModuleDocs + timeoutInMinutes: ${{ parameters.PipelineTimeout }} + templateContext: + outputs: + - output: pipelineArtifact + displayName: 'Publish missing external docs' + targetPath: missingexternaldocsurl + artifactName: "MissingExternalDocs-${{ parameters.ProfileLabel }}-${{ replace(module, '.', '-') }}" + publishLocation: 'Container' + condition: succeededOrFailed() + steps: + - template: generate-module-docs-steps.yml + parameters: + Module: ${{ module }} + GraphProfileFilter: ${{ parameters.GraphProfileFilter }} + BranchPrefix: ${{ parameters.BranchPrefix }} + BaseBranch: ${{ parameters.BaseBranch }} diff --git a/azure-pipelines/powershell-docs.yml b/azure-pipelines/powershell-docs.yml index 603004858ab45..b6dc5b22f8b9b 100644 --- a/azure-pipelines/powershell-docs.yml +++ b/azure-pipelines/powershell-docs.yml @@ -47,148 +47,106 @@ extends: customBuildTags: - ES365AIMigrationTooling stages: - - stage: stage - jobs: - - job: PowerShellDocsUpdate - timeoutInMinutes: ${{ parameters.PipelineTimeout }} - templateContext: - outputs: - - output: pipelineArtifact - displayName: 'Publish Examples to be reviewed as artifact' - targetPath: missingexternaldocsurl - artifactName: 'MissingExternalDocs' - publishLocation: 'Container' - steps: - - template: azure-pipelines/update-template.yml@self - - task : PowerShell@2 - name: "ComputeBranch" - displayName: 'Compute Branch Name' - inputs: - targetType: 'inline' - script: | - git submodule update --init --recursive - $branch = "{0}_{1}" -f "WeeklyReferenceDocsUpdate", (Get-Date -Format yyyyMMddHHmm) - Write-Host "Compute branch: $branch" - Write-Host "##vso[task.setvariable variable=WeeklyReferenceDocsBranch;isOutput=true]$branch" - - task: Bash@3 - displayName: "Create weekly refresh branch" - inputs: - targetType: inline - script: | - git status - git branch $(ComputeBranch.WeeklyReferenceDocsBranch) - git checkout $(ComputeBranch.WeeklyReferenceDocsBranch) - git status - - task: PowerShell@2 - displayName: 'Create missing external docs folder' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/CreateExternalDocsFolder.ps1 - - - task: PowerShell@2 - displayName: 'Generate markdown files from PowerShell help files' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/GenerateMarkDown.ps1 - - task: PowerShell@2 - displayName: 'Escape disallowed html tags' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/EscapeDisallowedHtmlTags.ps1 - - task: PowerShell@2 - displayName: 'Update metadata header' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/MsSubserviceUpdate.ps1 - - task: PowerShell@2 - displayName: 'Generate permissions table' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/GeneratePermissionsTable.ps1 - - task: PowerShell@2 - displayName: 'Update Links' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/UpdateLinks.ps1 - errorActionPreference: 'stop' - - task: PowerShell@2 - displayName: 'Repair Examples and Descriptions and Title' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/RepairExamplesDescriptionsAndTitle.ps1 - - task: PowerShell@2 - displayName: 'Remove boiler plate code' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/RemoveBoilerPlateCode.ps1 - - task: PowerShell@2 - displayName: 'Remove invalid fullstops' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/RemoveInvalidFullStops.ps1 - - task: PowerShell@2 - displayName: 'Generate missing docs for aliased cmdlets' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/GenerateAliasedDocs.ps1 - - task: PowerShell@2 - displayName: 'Correct related links section' - continueOnError: false - inputs: - targetType: 'filePath' - pwsh: true - filePath: scripts/CorrectRelatedLinks-AllFiles.ps1 - - task: AzureKeyVault@2 - displayName: "Azure Key Vault: Get GitHub App secrets" - inputs: - azureSubscription: "Federated AKV Managed Identity Connection" - KeyVaultName: akv-prod-eastus - SecretsFilter: "microsoft-graph-devx-bot-appid,microsoft-graph-devx-bot-privatekey" - - task: PowerShell@2 - displayName: Pushing to github - env: - GhAppId: $(microsoft-graph-devx-bot-appid) - GhAppKey: $(microsoft-graph-devx-bot-privatekey) - inputs: - targetType: inline - pwsh: true - script: | - git config --global user.email "GraphTooling@service.microsoft.com" - git config --global user.name "Microsoft Graph DevX Tooling" - git config --system core.longpaths true - # The microsoft-graph-devx-bot GitHub App must have contents:write on this repo. - $token = & "$(Build.SourcesDirectory)/scripts/Generate-Github-Token.ps1" -AppClientId $env:GhAppId -AppPrivateKeyContents $env:GhAppKey -Repository "MicrosoftDocs/microsoftgraph-docs-powershell" - if ([string]::IsNullOrWhiteSpace($token)) { throw "Failed to generate GitHub App installation token." } - # Mask the token so it is never surfaced in pipeline logs. - Write-Host "##vso[task.setsecret]$token" - git status - git add . - git commit -m "Updating reference docs" - git push --set-upstream "https://x-access-token:$token@github.com/MicrosoftDocs/microsoftgraph-docs-powershell.git" $(ComputeBranch.WeeklyReferenceDocsBranch) - git status - - template: azure-pipelines/common-templates/create-pr.yml@self - parameters: - BaseBranch: "main" - TargetBranch: $(ComputeBranch.WeeklyReferenceDocsBranch) - Title: "Weekly PowerShell Microsoft Graph Reference Docs Refresh" - Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR." \ No newline at end of file + - template: azure-pipelines/common-templates/module-stages.yml@self + parameters: + GraphProfileFilter: "v1.0" + ProfileLabel: "v1" + BranchPrefix: "WeeklyDocs" + BaseBranch: "main" + PipelineTimeout: ${{ parameters.PipelineTimeout }} + Modules: + - Authentication + - Applications + - Bookings + - BusinessScenario + - BackupRestore + - Calendar + - ChangeNotifications + - CloudCommunications + - Compliance + - CrossDeviceExperiences + - Devices.CloudPrint + - Devices.CorporateManagement + - Devices.ServiceAnnouncement + - DeviceManagement + - DeviceManagement.Administration + - DeviceManagement.Enrollment + - DeviceManagement.Actions + - DeviceManagement.Functions + - DirectoryObjects + - Education + - Files + - Financials + - Groups + - Identity.DirectoryManagement + - Identity.Governance + - Identity.SignIns + - Identity.Partner + - Mail + - ManagedTenants + - NetworkAccess + - Notes + - People + - PersonalContacts + - Planner + - Reports + - SchemaExtensions + - Search + - Security + - Sites + - Teams + - Users + - Users.Actions + - Users.Functions + - WindowsUpdates + - template: azure-pipelines/common-templates/module-stages.yml@self + parameters: + GraphProfileFilter: "beta" + ProfileLabel: "beta" + BranchPrefix: "WeeklyDocs" + BaseBranch: "main" + PipelineTimeout: ${{ parameters.PipelineTimeout }} + Modules: + - Applications + - Bookings + - BusinessScenario + - BackupRestore + - Calendar + - ChangeNotifications + - CloudCommunications + - Compliance + - CrossDeviceExperiences + - Devices.CloudPrint + - Devices.CorporateManagement + - Devices.ServiceAnnouncement + - DeviceManagement + - DeviceManagement.Administration + - DeviceManagement.Enrollment + - DeviceManagement.Actions + - DeviceManagement.Functions + - DirectoryObjects + - Education + - Files + - Financials + - Groups + - Identity.DirectoryManagement + - Identity.Governance + - Identity.SignIns + - Identity.Partner + - Mail + - ManagedTenants + - NetworkAccess + - Notes + - People + - PersonalContacts + - Planner + - Reports + - SchemaExtensions + - Search + - Security + - Sites + - Teams + - Users + - Users.Actions + - Users.Functions + - WindowsUpdates diff --git a/azure-pipelines/update-template.yml b/azure-pipelines/update-template.yml index cd0ec7be60216..8884e887a9aae 100644 --- a/azure-pipelines/update-template.yml +++ b/azure-pipelines/update-template.yml @@ -1,3 +1,16 @@ +parameters: + # Which SDK profile to install for. "both" preserves the original full-run behaviour and + # installs the Microsoft.Graph and Microsoft.Graph.Beta meta modules. + - name: InstallProfile + type: string + default: both + # When set, only the single workload submodule for that module (plus Authentication) is + # installed instead of the whole SDK. This keeps each isolated per-module stage fast and + # guarantees only one workload module is ever present in the session. + - name: Module + type: string + default: "" + steps: - task: PowerShell@2 displayName: Install Required Modules @@ -12,25 +25,44 @@ steps: if (-not (Get-PSRepository -Name PowerShell_V2_Build -ErrorAction SilentlyContinue)) { Register-PSRepository -Name PowerShell_V2_Build -SourceLocation $feedUrl -InstallationPolicy Trusted -Credential $cred } - try{ - # Try to update the V1 module first. - Install-Module Microsoft.Graph.Beta -Repository PowerShell_V2_Build -Credential $cred -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber - }catch{ - # If the module is not installed, install it. - echo "Error when installing Beta" + + $installProfile = "${{ parameters.InstallProfile }}" + $module = "${{ parameters.Module }}" + + # Build the list of modules to install. + $toInstall = @() + if ([string]::IsNullOrWhiteSpace($module)) { + # Full-run behaviour: install the meta module(s) for the requested profile(s). + if ($installProfile -ne 'v1.0') { $toInstall += 'Microsoft.Graph.Beta' } + if ($installProfile -ne 'beta') { $toInstall += 'Microsoft.Graph' } } - try{ - # Try to update the beta module first. - Install-Module Microsoft.Graph -Repository PowerShell_V2_Build -Credential $cred -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber - }catch{ - # If the module is not installed, install it. - echo "Error when installing V1" + else { + # Isolated per-module run: install only Authentication + the single workload + # submodule for the target profile. + $toInstall += 'Microsoft.Graph.Authentication' + if ($installProfile -eq 'beta') { + $toInstall += "Microsoft.Graph.Beta.$module" + } + else { + $toInstall += "Microsoft.Graph.$module" + } + } + + foreach ($m in $toInstall) { + try { + Install-Module $m -Repository PowerShell_V2_Build -Credential $cred -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber + } + catch { + # Do not fail the install step; a missing/failed module surfaces later as a + # fail-safe (no deletion, no PR) in the isolated generation stage. + Write-Host "##vso[task.logissue type=warning]Failed to install $m : $($_.Exception.Message)" + } } - $modules = Get-Module -Name Microsoft.Graph -ListAvailable + $modules = Get-Module -Name Microsoft.Graph* -ListAvailable foreach($r in $modules) { - echo $r.Version + echo "$($r.Name) $($r.Version)" } env: SYSTEM_ACCESSTOKEN: $(System.AccessToken) diff --git a/scripts/CorrectRelatedLinks-AllFiles.ps1 b/scripts/CorrectRelatedLinks-AllFiles.ps1 index 3f6a71383b9e6..be414538528a7 100644 --- a/scripts/CorrectRelatedLinks-AllFiles.ps1 +++ b/scripts/CorrectRelatedLinks-AllFiles.ps1 @@ -19,7 +19,11 @@ param( [Parameter(Mandatory = $false)] [ValidateSet("v1.0", "beta", "both")] - [string]$GraphProfile = "both" + [Alias("GraphProfileFilter")] + [string]$GraphProfile = "both", + + [Parameter(Mandatory = $false)] + [string]$ModuleFilter = "" ) function Get-GraphMapping { @@ -217,6 +221,10 @@ if ($ModulesToGenerate.Count -eq 0) { } } +if (-not [string]::IsNullOrWhiteSpace($ModuleFilter)) { + $ModulesToGenerate = @($ModulesToGenerate | Where-Object { $_ -eq $ModuleFilter }) +} + # Main execution Write-Host "=== Related Links Correction Script ===" -ForegroundColor Blue Write-Host "Working directory: $WorkLoadDocsPath" -ForegroundColor Blue diff --git a/scripts/EscapeDisallowedHtmlTags.ps1 b/scripts/EscapeDisallowedHtmlTags.ps1 index 597d7a5633f81..0039a05b33500 100644 --- a/scripts/EscapeDisallowedHtmlTags.ps1 +++ b/scripts/EscapeDisallowedHtmlTags.ps1 @@ -2,7 +2,10 @@ # Licensed under the MIT License. Param( $ModulesToGenerate = @(), - [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc") + [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc"), + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" ) function Get-GraphMapping { $graphMapping = @{} @@ -20,13 +23,19 @@ function EscapeDisallowedHtmlTags { $GraphMapping = Get-GraphMapping $GraphMapping.Keys | ForEach-Object { $graphProfile = $_ + if ($GraphProfileFilter -ne "both" -and $graphProfile -ne $GraphProfileFilter) { return } Get-FilesByProfile -GraphProfile $graphProfile -GraphProfilePath $GraphMapping[$graphProfile] -ModulePrefix $ModulePrefix -ModulesToGenerate $ModulesToGenerate } git config --global user.email "GraphTooling@service.microsoft.com" git config --global user.name "Microsoft Graph DevX Tooling" git add . - git commit -m "Escaped disallowed html tags" + $pending = git status --porcelain + if (-not [string]::IsNullOrWhiteSpace($pending)) { + git commit -m "Escaped disallowed html tags" + } else { + $global:LASTEXITCODE = 0 + } } function Get-FilesByProfile { Param( @@ -322,5 +331,8 @@ function CleanupFile { } Write-Host -ForegroundColor Green "-------------finished checking out to today's branch-------------" +if (-not [string]::IsNullOrWhiteSpace($ModuleFilter)) { + $ModulesToGenerate = @($ModulesToGenerate | Where-Object { $_ -eq $ModuleFilter }) +} EscapeDisallowedHtmlTags -ModulesToGenerate $ModulesToGenerate Write-Host -ForegroundColor Green "-------------Done-------------" \ No newline at end of file diff --git a/scripts/GenerateAliasedDocs.ps1 b/scripts/GenerateAliasedDocs.ps1 index 97eba9685354d..c7ba9bec1d19c 100644 --- a/scripts/GenerateAliasedDocs.ps1 +++ b/scripts/GenerateAliasedDocs.ps1 @@ -6,12 +6,18 @@ See related PR for more information. #> +Param( + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" +) + function Start-GenerateAliasedDocs { $BreakingChangeReportV1Report = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/docs/PowerShellBreakingChanges-V1.0.csv") $BreakingChangeReportBetaReport = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/docs/PowerShellBreakingChanges-beta.csv") $Reports = @() - $Reports += $BreakingChangeReportV1Report - $Reports += $BreakingChangeReportBetaReport + if ($GraphProfileFilter -ne "beta") { $Reports += $BreakingChangeReportV1Report } + if ($GraphProfileFilter -ne "v1.0") { $Reports += $BreakingChangeReportBetaReport } foreach ($BreakingChangeReport in $Reports) { Import-Csv $BreakingChangeReport | ForEach-Object { $Command = $_."NewCmdlet" @@ -39,6 +45,7 @@ function Copy-Files { if($CmdDetails){ $Module = $CmdDetails.Module $Module = $Module.Replace("Beta.", "") + if (-not [string]::IsNullOrWhiteSpace($ModuleFilter) -and $Module -ne $ModuleFilter) { return } $Module = "$ModulePrefix.$Module" $NewDoc = (Join-Path $PSScriptRoot "../microsoftgraph" $GraphProfilePath $Module "$Command.md") if(Test-Path $NewDoc) { diff --git a/scripts/GenerateMarkDown.ps1 b/scripts/GenerateMarkDown.ps1 index 0d5a062bef429..ed6c85dcdb009 100644 --- a/scripts/GenerateMarkDown.ps1 +++ b/scripts/GenerateMarkDown.ps1 @@ -5,7 +5,16 @@ Param( $ModulesToGenerate = @(), [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config\ModulesMapping.jsonc"), [string] $WorkLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph"), - [string] $CmdletMetadataPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src/Authentication/Authentication/custom/common/MgCommandMetadata.json") + [string] $CmdletMetadataPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src/Authentication/Authentication/custom/common/MgCommandMetadata.json"), + # Restrict generation to a single SDK profile ("v1.0" or "beta"); "both" keeps the + # original full-run behaviour. + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + # Restrict generation to a single module (e.g. "Applications" or "Authentication"). Empty + # means all modules. When set, the run is "scoped": the module's folder is completely + # cleared and regenerated, and an import failure aborts THIS run (fail-safe, no deletion) + # instead of silently skipping. + [string] $ModuleFilter = "" ) function Get-GraphMapping { $graphMapping = @{} @@ -51,36 +60,55 @@ function Start-GraphHelp { Param( $ModulesToGenerate = @() ) - - #Generate for auth module first + $ModulePrefix = "Microsoft.Graph" $AuthPath = "$ModulePrefix.Authentication" $AuthDestination = Join-Path $WorkLoadDocsPath "graph-powershell-1.0" $AuthPath - # Guard against catastrophic deletions: never remove existing docs unless the module - # is available to regenerate them. Authentication is required for every run, so abort - # if it failed to install rather than wiping committed documentation. - if (-not (Get-Module -Name Microsoft.Graph.Authentication -ListAvailable -ErrorAction SilentlyContinue)) { - throw "Microsoft.Graph.Authentication module is not available. Aborting generation to avoid deleting existing documentation." + # Determine which profiles this run covers. + $GraphMapping = Get-GraphMapping + $profilesToProcess = @($GraphMapping.Keys) + if ($GraphProfileFilter -ne "both") { + $profilesToProcess = @($GraphProfileFilter) } - Import-Module Microsoft.Graph.Authentication -Force -Global -ErrorAction Stop - Get-ChildItem -Path $AuthDestination * -File -Recurse | foreach { $_.Delete() } - $GraphMapping = Get-GraphMapping - $GraphMapping.Keys | ForEach-Object { - $graphProfile = $_ - $profilePath = "graph-powershell-1.0" - if ($graphProfile -eq "beta") { - $profilePath = "graph-powershell-beta" - } + # Authentication docs live under graph-powershell-1.0 and are only generated on a full run + # or when Authentication is the explicitly targeted module. + $generateAuth = ([string]::IsNullOrWhiteSpace($ModuleFilter) -or $ModuleFilter -eq "Authentication") + if ($generateAuth -and ($profilesToProcess -contains "v1.0")) { + # Guard against catastrophic deletions: never remove existing docs unless the module + # is available to regenerate them. Authentication is required for every run, so abort + # if it failed to install rather than wiping committed documentation. + if (-not (Get-Module -Name Microsoft.Graph.Authentication -ListAvailable -ErrorAction SilentlyContinue)) { + throw "Microsoft.Graph.Authentication module is not available. Aborting generation to avoid deleting existing documentation." + } + Import-Module Microsoft.Graph.Authentication -Force -Global -ErrorAction Stop + Get-ChildItem -Path $AuthDestination * -File -Recurse | foreach { $_.Delete() } $AuthenticationDocsPath = Join-Path $PSScriptRoot "..\microsoftgraph\graph-powershell-1.0" - Set-Help -ModuleDocsPath $AuthenticationDocsPath -Command "Connect-MgGraph" -Module "Microsoft.Graph.Authentication" - Get-FolderByProfile -GraphProfile $graphProfile -GraphProfilePath $profilePath -ModulePrefix $ModulePrefix -ModulesToGenerate $ModulesToGenerate + Set-Help -ModuleDocsPath $AuthenticationDocsPath -Command "Connect-MgGraph" -Module "Microsoft.Graph.Authentication" + } + + # Workload modules. Skip entirely when Authentication is the explicit single target. + if ($ModuleFilter -ne "Authentication") { + $profilesToProcess | ForEach-Object { + $graphProfile = $_ + $profilePath = "graph-powershell-1.0" + if ($graphProfile -eq "beta") { + $profilePath = "graph-powershell-beta" + } + Get-FolderByProfile -GraphProfile $graphProfile -GraphProfilePath $profilePath -ModulePrefix $ModulePrefix -ModulesToGenerate $ModulesToGenerate + } } + git config --global user.email "GraphTooling@service.microsoft.com" git config --global user.name "Microsoft Graph DevX Tooling" git add . - git commit -m "Updated markdown help" + $pending = git status --porcelain + if (-not [string]::IsNullOrWhiteSpace($pending)) { + git commit -m "Updated markdown help" + } else { + $global:LASTEXITCODE = 0 + } } function Get-FolderByProfile { @@ -95,6 +123,14 @@ function Get-FolderByProfile { $ModulesToGenerate = @() ) $CommandMetadataContent = Get-Content $CmdletMetadataPath | ConvertFrom-Json + + # In scoped (single-module) runs, restrict to the requested module and enable + # complete-delete + regenerate for it (safe because the module is verified to import + # below before anything is removed). + $Scoped = -not [string]::IsNullOrWhiteSpace($ModuleFilter) + if ($Scoped) { + $ModulesToGenerate = @($ModulesToGenerate | Where-Object { $_ -eq $ModuleFilter }) + } $ModulesToGenerate | ForEach-Object { $ModuleName = $_ @@ -125,6 +161,12 @@ function Get-FolderByProfile { } } if (-not $ModuleUsable) { + if ($Scoped) { + # Isolated single-module run: fail fast WITHOUT deleting anything so the + # module's committed docs are preserved. The pipeline job contains this + # failure (continueOnError) so it never fails the whole run or other modules. + throw "Module $Path is not usable in isolated generation; aborting this module without deleting its documentation." + } Write-Warning "Module $Path is not usable; skipping to preserve existing documentation." return } @@ -132,6 +174,13 @@ function Get-FolderByProfile { if (-not(Test-Path $Destination)) { New-Item -Path $Destination -ItemType Directory } + elseif ($Scoped) { + # Complete deletion + regeneration for this single module. Safe here because the + # module imported successfully above, so regeneration repopulates the folder. + Get-ChildItem -Path $Destination -Filter "*.md" -File | ForEach-Object { + Remove-Item $_.FullName -Force + } + } # NOTE: docs are intentionally NOT bulk-deleted here. Each doc is overwritten in # place as it is regenerated, and only genuine orphans (commands no longer in the @@ -209,4 +258,8 @@ if ($ModulesToGenerate.Count -eq 0) { } Write-Host -ForegroundColor Green "-------------finished checking out to today's branch-------------" Start-GraphHelp -ModulesToGenerate $ModulesToGenerate +# Signal successful generation so downstream pipeline steps (post-processing, push, PR) only +# run when this module actually generated. On an import failure the script throws before this +# line, the variable is never set, and the isolated stage opens no PR and deletes nothing. +Write-Host "##vso[task.setvariable variable=ModuleGenerated]true" Write-Host -ForegroundColor Green "-------------Done-------------" \ No newline at end of file diff --git a/scripts/GeneratePermissionsTable.ps1 b/scripts/GeneratePermissionsTable.ps1 index 47e90ae3698f8..d854d62458c62 100644 --- a/scripts/GeneratePermissionsTable.ps1 +++ b/scripts/GeneratePermissionsTable.ps1 @@ -1,6 +1,9 @@ param( [string]$MgCommandMetadatJsonFile = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src/Authentication/Authentication/custom/common/MgCommandMetadata.json"), - [string[]]$CmdList = @() + [string[]]$CmdList = @(), + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" ) function Start-Generator { @@ -11,6 +14,9 @@ function Start-Generator { $CommandName = $_.Command; $ApiVersion = $_.ApiVersion $Module = $_.Module; + if ($GraphProfileFilter -ne "both" -and $ApiVersion -ne $GraphProfileFilter) { return } + $normalizedModule = $Module -replace "^Beta\.", "" + if (-not [string]::IsNullOrWhiteSpace($ModuleFilter) -and $normalizedModule -ne $ModuleFilter) { return } #Array for DelegatedWork Permissions $DelegatedWorkPermissions = @(); #Array for Application Permissions @@ -70,7 +76,12 @@ function Start-Generator { git config --global user.email "GraphTooling@service.microsoft.com" git config --global user.name "Microsoft Graph DevX Tooling" git add . - git commit -m "Inserted permissions Table" + $pending = git status --porcelain + if (-not [string]::IsNullOrWhiteSpace($pending)) { + git commit -m "Inserted permissions Table" + } else { + $global:LASTEXITCODE = 0 + } } catch { Write-Host "Error in $_"; diff --git a/scripts/MsSubserviceUpdate.ps1 b/scripts/MsSubserviceUpdate.ps1 index d9bbd826afe67..54ce3c003d8ca 100644 --- a/scripts/MsSubserviceUpdate.ps1 +++ b/scripts/MsSubserviceUpdate.ps1 @@ -5,7 +5,10 @@ Param( [string] $SDKDocsPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src"), [string] $SDKOpenApiPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell"), [string] $WorkLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph"), - [string] $MissingMsSubserviceHeaderPath = (Join-Path $PSScriptRoot "../missingexternaldocsurl") + [string] $MissingMsSubserviceHeaderPath = (Join-Path $PSScriptRoot "../missingexternaldocsurl"), + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" ) function Start-Generator { if (Test-Path $CommandMetadataPath) { @@ -22,6 +25,8 @@ function Start-Generator { $ModulePrefix = "Microsoft.Graph.Beta" $ModuleName = $ModuleName.Replace("Beta.", "") } + if ($GraphProfileFilter -ne "both" -and $GraphProfile -ne $GraphProfileFilter) { return } + if (-not [string]::IsNullOrWhiteSpace($ModuleFilter) -and $ModuleName -ne $ModuleFilter) { return } $Path = "$ModulePrefix.$ModuleName" $DestinationFile = Join-Path $WorkLoadDocsPath $GraphProfilePath $Path "$Command.md" try { diff --git a/scripts/RemoveBoilerPlateCode.ps1 b/scripts/RemoveBoilerPlateCode.ps1 index 246e79ba3febe..8158654b106a1 100644 --- a/scripts/RemoveBoilerPlateCode.ps1 +++ b/scripts/RemoveBoilerPlateCode.ps1 @@ -4,7 +4,10 @@ Param( $ModulesToGenerate = @(), [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc"), [string] $WorkLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph"), - [string] $AuthLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Authentication") + [string] $AuthLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Authentication"), + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" ) function Get-GraphMapping { $graphMapping = @{} @@ -19,19 +22,22 @@ function Start-Repair { $ModulesToGenerate = @() ) - #Cleanup Authentication Module first - $files = Get-ChildItem -Path $AuthLoadDocsPath -Filter *.md -Recurse - foreach ($file in $files) { - $content = Get-Content -Path $file.FullName - # Remove lines that contain '{{ Fill in the Description }}' or '### This' or '### *' or '### have' or '### certain' or '### the' - $cleanedContent = $content | Where-Object { $_ -notmatch '^\s*{{ Fill in the Description }}|^\s*### This|^\s*### \*|^\s*### have|^\s*### certain|^\s*### the' } - # Write the cleaned content back to the file - $cleanedContent | Set-Content -Path $file.FullName + #Cleanup Authentication Module first (only on a full run or the Authentication stage). + if ([string]::IsNullOrWhiteSpace($ModuleFilter) -or $ModuleFilter -eq "Authentication") { + $files = Get-ChildItem -Path $AuthLoadDocsPath -Filter *.md -Recurse + foreach ($file in $files) { + $content = Get-Content -Path $file.FullName + # Remove lines that contain '{{ Fill in the Description }}' or '### This' or '### *' or '### have' or '### certain' or '### the' + $cleanedContent = $content | Where-Object { $_ -notmatch '^\s*{{ Fill in the Description }}|^\s*### This|^\s*### \*|^\s*### have|^\s*### certain|^\s*### the' } + # Write the cleaned content back to the file + $cleanedContent | Set-Content -Path $file.FullName + } } $ModulePrefix = "Microsoft.Graph" $GraphMapping = Get-GraphMapping $GraphMapping.Keys | ForEach-Object { $graphProfile = $_ + if ($GraphProfileFilter -ne "both" -and $graphProfile -ne $GraphProfileFilter) { return } $profilePath = "graph-powershell-1.0" if ($graphProfile -eq "beta") { $profilePath = "graph-powershell-beta" @@ -41,7 +47,12 @@ function Start-Repair { git config --global user.email "GraphTooling@service.microsoft.com" git config --global user.name "Microsoft Graph DevX Tooling" git add . - git commit -m "Remove boiler plate code injected by Autorest" + $pending = git status --porcelain + if (-not [string]::IsNullOrWhiteSpace($pending)) { + git commit -m "Remove boiler plate code injected by Autorest" + } else { + $global:LASTEXITCODE = 0 + } } function Get-FilesByProfile { Param( @@ -118,5 +129,8 @@ if ($ModulesToGenerate.Count -eq 0) { } Write-Host -ForegroundColor Green "-------------finished checking out to today's branch-------------" +if (-not [string]::IsNullOrWhiteSpace($ModuleFilter)) { + $ModulesToGenerate = @($ModulesToGenerate | Where-Object { $_ -eq $ModuleFilter }) +} Start-Repair -ModulesToGenerate $ModulesToGenerate Write-Host -ForegroundColor Green "-------------Done-------------" \ No newline at end of file diff --git a/scripts/RemoveInvalidFullStops.ps1 b/scripts/RemoveInvalidFullStops.ps1 index db34789d58025..21cfad73afe51 100644 --- a/scripts/RemoveInvalidFullStops.ps1 +++ b/scripts/RemoveInvalidFullStops.ps1 @@ -2,7 +2,10 @@ # Licensed under the MIT License. Param( $ModulesToGenerate = @(), - [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc") + [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc"), + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" ) function Get-GraphMapping { $graphMapping = @{} @@ -20,13 +23,19 @@ function Remove-InvalidFullStops { $GraphMapping = Get-GraphMapping $GraphMapping.Keys | ForEach-Object { $graphProfile = $_ + if ($GraphProfileFilter -ne "both" -and $graphProfile -ne $GraphProfileFilter) { return } Get-FilesByProfile -GraphProfile $graphProfile -GraphProfilePath $GraphMapping[$graphProfile] -ModulePrefix $ModulePrefix -ModulesToGenerate $ModulesToGenerate } git config --global user.email "GraphTooling@service.microsoft.com" git config --global user.name "Microsoft Graph DevX Tooling" git add . - git commit -m "Removed invalid full stops from the beginning of lines" + $pending = git status --porcelain + if (-not [string]::IsNullOrWhiteSpace($pending)) { + git commit -m "Removed invalid full stops from the beginning of lines" + } else { + $global:LASTEXITCODE = 0 + } } function Get-FilesByProfile { Param( @@ -88,6 +97,9 @@ if ($ModulesToGenerate.Count -eq 0) { [HashTable] $ModuleMapping = Get-Content $ModuleMappingConfigPath | ConvertFrom-Json -AsHashTable $ModulesToGenerate = $ModuleMapping.Keys } +if (-not [string]::IsNullOrWhiteSpace($ModuleFilter)) { + $ModulesToGenerate = @($ModulesToGenerate | Where-Object { $_ -eq $ModuleFilter }) +} Remove-InvalidFullStops -ModulesToGenerate $ModulesToGenerate diff --git a/scripts/RepairExamplesDescriptionsAndTitle.ps1 b/scripts/RepairExamplesDescriptionsAndTitle.ps1 index c8e3c74074799..e1fd1d5a8f172 100644 --- a/scripts/RepairExamplesDescriptionsAndTitle.ps1 +++ b/scripts/RepairExamplesDescriptionsAndTitle.ps1 @@ -4,7 +4,10 @@ Param( $ModulesToGenerate = @(), [string] $SDKDocsPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src"), [string] $WorkLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph"), - [string] $CommandMetadataPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src/Authentication/Authentication/custom/common/MgCommandMetadata.json") + [string] $CommandMetadataPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src/Authentication/Authentication/custom/common/MgCommandMetadata.json"), + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" ) function Start-Copy { @@ -22,6 +25,8 @@ function Start-Copy { $ModulePrefix = "Microsoft.Graph.Beta" $ModuleName = $ModuleName.Replace("Beta.", "") } + if ($GraphProfileFilter -ne "both" -and $GraphProfile -ne $GraphProfileFilter) { return } + if (-not [string]::IsNullOrWhiteSpace($ModuleFilter) -and $ModuleName -ne $ModuleFilter) { return } $DocPath = Join-Path $SDKDocsPath $ModuleName $GraphProfile "examples" "$Command.md" try { @@ -38,7 +43,12 @@ function Start-Copy { git config --global user.email "GraphTooling@service.microsoft.com" git config --global user.name "Microsoft Graph DevX Tooling" git add . - git commit -m "Repaired examples and descriptions" + $pending = git status --porcelain + if (-not [string]::IsNullOrWhiteSpace($pending)) { + git commit -m "Repaired examples and descriptions" + } else { + $global:LASTEXITCODE = 0 + } } diff --git a/scripts/UpdateLinks.ps1 b/scripts/UpdateLinks.ps1 index fcc8d8e2253b2..1ba011281aa6a 100644 --- a/scripts/UpdateLinks.ps1 +++ b/scripts/UpdateLinks.ps1 @@ -4,7 +4,10 @@ Param( $ModulesToGenerate = @(), [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc"), [string] $SDKDocsPath = (Join-Path $PSScriptRoot "../msgraph-sdk-powershell/src"), - [string] $WorkLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph") + [string] $WorkLoadDocsPath = (Join-Path $PSScriptRoot "../microsoftgraph"), + [ValidateSet("both", "v1.0", "beta")] + [string] $GraphProfileFilter = "both", + [string] $ModuleFilter = "" ) function Get-GraphMapping { $graphMapping = @{} @@ -22,6 +25,7 @@ function Start-Update { $GraphMapping = Get-GraphMapping $GraphMapping.Keys | ForEach-Object { $GraphProfile = $_ + if ($GraphProfileFilter -ne "both" -and $GraphProfile -ne $GraphProfileFilter) { return } $profilePath = "graph-powershell-1.0" if ($GraphProfile -eq "beta") { $ProfilePath = "graph-powershell-beta" @@ -205,5 +209,8 @@ if ($ModulesToGenerate.Count -eq 0) { Write-Host -ForegroundColor Green "-------------finished checking out to today's branch-------------" +if (-not [string]::IsNullOrWhiteSpace($ModuleFilter)) { + $ModulesToGenerate = @($ModulesToGenerate | Where-Object { $_ -eq $ModuleFilter }) +} Start-Update -ModulesToGenerate $ModulesToGenerate Write-Host -ForegroundColor Green "-------------Done-------------" \ No newline at end of file From 5202fe4d4c7f28cceeacc3451143fda9366e18b0 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 11:11:08 -0700 Subject: [PATCH 09/17] Fix template path resolution in powershell-docs.yml Azure DevOps resolves template references relative to the directory of the referencing file. powershell-docs.yml lives in azure-pipelines/, so the "azure-pipelines/common-templates/module-stages.yml@self" path resolved to azure-pipelines/azure-pipelines/common-templates/module-stages.yml and failed with "Not Found". Use a path relative to the file's own directory instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d27d82f-3809-40d2-b4e7-6623436ff2ef --- azure-pipelines/powershell-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines/powershell-docs.yml b/azure-pipelines/powershell-docs.yml index b6dc5b22f8b9b..71679bf595944 100644 --- a/azure-pipelines/powershell-docs.yml +++ b/azure-pipelines/powershell-docs.yml @@ -47,7 +47,7 @@ extends: customBuildTags: - ES365AIMigrationTooling stages: - - template: azure-pipelines/common-templates/module-stages.yml@self + - template: common-templates/module-stages.yml@self parameters: GraphProfileFilter: "v1.0" ProfileLabel: "v1" @@ -99,7 +99,7 @@ extends: - Users.Actions - Users.Functions - WindowsUpdates - - template: azure-pipelines/common-templates/module-stages.yml@self + - template: common-templates/module-stages.yml@self parameters: GraphProfileFilter: "beta" ProfileLabel: "beta" From c8c93e7d0179e49bd00236397496d37d0b46e13d Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 19:14:32 +0000 Subject: [PATCH 10/17] Updated markdown help --- ...Get-MgServiceAnnouncementHealthOverview.md | 65 ++++--------------- ...gServiceAnnouncementHealthOverviewCount.md | 46 ++++--------- ...gServiceAnnouncementHealthOverviewIssue.md | 49 +++++--------- ...iceAnnouncementHealthOverviewIssueCount.md | 46 +++++-------- .../Get-MgServiceAnnouncementIssue.md | 56 +++------------- .../Get-MgServiceAnnouncementIssueCount.md | 46 ++++--------- .../Get-MgServiceAnnouncementMessage.md | 56 +++------------- ...-MgServiceAnnouncementMessageAttachment.md | 55 +++------------- ...iceAnnouncementMessageAttachmentArchive.md | 44 ++----------- ...iceAnnouncementMessageAttachmentContent.md | 44 ++----------- ...rviceAnnouncementMessageAttachmentCount.md | 50 ++++---------- .../Get-MgServiceAnnouncementMessageCount.md | 46 ++++--------- ...oke-MgArchiveServiceAnnouncementMessage.md | 46 ++----------- ...ke-MgFavoriteServiceAnnouncementMessage.md | 46 ++----------- ...ke-MgMarkServiceAnnouncementMessageRead.md | 46 ++----------- ...-MgMarkServiceAnnouncementMessageUnread.md | 46 ++----------- ...AnnouncementHealthOverviewIssueIncident.md | 48 +++++--------- ...gReportServiceAnnouncementIssueIncident.md | 52 ++------------- ...e-MgUnarchiveServiceAnnouncementMessage.md | 46 ++----------- ...-MgUnfavoriteServiceAnnouncementMessage.md | 46 ++----------- ...osoft.Graph.Devices.ServiceAnnouncement.md | 21 +----- 21 files changed, 194 insertions(+), 806 deletions(-) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md index 721851ce8ab37..9bba5651472f2 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverview Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementHealthOverview --- @@ -16,9 +16,6 @@ title: Get-MgServiceAnnouncementHealthOverview Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverview](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverview?view=graph-powershell-beta) - ## SYNTAX ### List (Default) @@ -29,7 +26,7 @@ Get-MgServiceAnnouncementHealthOverview [-ExpandProperty ] [-Property [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-PageSize ] [-All] - [-CountVariable ] [] + [-CountVariable ] ``` ### Get @@ -38,7 +35,7 @@ Get-MgServiceAnnouncementHealthOverview [-ExpandProperty ] [-Property Get-MgServiceAnnouncementHealthOverview -ServiceHealthId [-ExpandProperty ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -48,7 +45,7 @@ Get-MgServiceAnnouncementHealthOverview -InputObject ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] - [-ProxyUseDefaultCredentials] [] + [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -61,37 +58,19 @@ This cmdlet has the following aliases, Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. -**Permissions** - -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceHealth.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceHealth.Read.All, | - ## EXAMPLES -### Example 1: Get serviceHealth resources -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementHealthOverview -``` -This example will get servicehealth resources - -### Example 2: Include navigation property issues - -```powershell +### EXAMPLE 2 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" - -``` -This example will include navigation property issues - +Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" ## PARAMETERS @@ -553,7 +532,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -562,28 +541,6 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementHealthOverview](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverview) -- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealth-get?view=graph-rest-1.0) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncement-list-healthoverviews?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverview) +- [](https://learn.microsoft.com/graph/api/servicehealth-get?view=graph-rest-1.0) +- [](https://learn.microsoft.com/graph/api/serviceannouncement-list-healthoverviews?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md index 997f7f9fd3e2c..9831ffc00cedd 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewcount Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementHealthOverviewCount --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementHealthOverviewCount Get the number of the resource -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverviewCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverviewCount?view=graph-powershell-beta) - ## SYNTAX ### Get (Default) @@ -26,7 +23,7 @@ Get the number of the resource Get-MgServiceAnnouncementHealthOverviewCount [-Filter ] [-Search ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -38,13 +35,15 @@ This cmdlet has the following aliases, Get the number of the resource -**Permissions** +## EXAMPLES + +### EXAMPLE 1 + +{{ Add code here }} + +### EXAMPLE 2 -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceHealth.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceHealth.Read.All, | +{{ Add code here }} ## PARAMETERS @@ -282,27 +281,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -- [Get-MgServiceAnnouncementHealthOverviewCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewcount) - - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewcount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md index 79681896c9311..3a021801b9160 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissue Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementHealthOverviewIssue --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementHealthOverviewIssue A collection of issues that happened on the service, with detailed information for each issue. -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverviewIssue](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverviewIssue?view=graph-powershell-beta) - ## SYNTAX ### List (Default) @@ -28,7 +25,7 @@ Get-MgServiceAnnouncementHealthOverviewIssue -ServiceHealthId [-ExpandP [-Top ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-PageSize ] [-All] - [-CountVariable ] [] + [-CountVariable ] ``` ### Get @@ -38,7 +35,7 @@ Get-MgServiceAnnouncementHealthOverviewIssue -ServiceHealthId -ServiceHealthIssueId [-ExpandProperty ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -48,7 +45,7 @@ Get-MgServiceAnnouncementHealthOverviewIssue -InputObject ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] - [-ProxyUseDefaultCredentials] [] + [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -60,6 +57,16 @@ This cmdlet has the following aliases, A collection of issues that happened on the service, with detailed information for each issue. +## EXAMPLES + +### EXAMPLE 1 + +{{ Add code here }} + +### EXAMPLE 2 + +{{ Add code here }} + ## PARAMETERS ### -All @@ -547,7 +554,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -556,28 +563,4 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementHealthOverviewIssue](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissue) - - - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissue) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md index 71544952fae42..c5f793e7a39d1 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissuecount Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementHealthOverviewIssueCount --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementHealthOverviewIssueCount Get the number of the resource -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverviewIssueCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverviewIssueCount?view=graph-powershell-beta) - ## SYNTAX ### Get (Default) @@ -26,7 +23,7 @@ Get the number of the resource Get-MgServiceAnnouncementHealthOverviewIssueCount -ServiceHealthId [-Filter ] [-Search ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -36,7 +33,7 @@ Get-MgServiceAnnouncementHealthOverviewIssueCount -InputObject ] [-Search ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] - [-ProxyUseDefaultCredentials] [] + [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -48,6 +45,16 @@ This cmdlet has the following aliases, Get the number of the resource +## EXAMPLES + +### EXAMPLE 1 + +{{ Add code here }} + +### EXAMPLE 2 + +{{ Add code here }} + ## PARAMETERS ### -Break @@ -334,7 +341,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -343,27 +350,4 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementHealthOverviewIssueCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissuecount) - - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissuecount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md index eae6c97ef2e49..6066c302f7484 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissue Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementIssue --- @@ -17,9 +17,6 @@ Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementIssue](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementIssue?view=graph-powershell-beta) - ## SYNTAX ### List (Default) @@ -30,7 +27,7 @@ Get-MgServiceAnnouncementIssue [-ExpandProperty ] [-Property ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-PageSize ] [-All] - [-CountVariable ] [] + [-CountVariable ] ``` ### Get @@ -39,7 +36,7 @@ Get-MgServiceAnnouncementIssue [-ExpandProperty ] [-Property [-ExpandProperty ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -49,7 +46,7 @@ Get-MgServiceAnnouncementIssue -InputObject ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] - [-ProxyUseDefaultCredentials] [] + [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -63,27 +60,14 @@ Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. -**Permissions** - -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceHealth.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceHealth.Read.All, | - ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementIssue -``` -This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. - - ## PARAMETERS ### -All @@ -544,7 +528,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -553,28 +537,6 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementIssue](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissue) -- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncement-list-issues?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissue) +- [](https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0) +- [](https://learn.microsoft.com/graph/api/serviceannouncement-list-issues?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md index ba04cea24d3e5..d613b4dbee190 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissuecount Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementIssueCount --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementIssueCount Get the number of the resource -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementIssueCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementIssueCount?view=graph-powershell-beta) - ## SYNTAX ### Get (Default) @@ -26,7 +23,7 @@ Get the number of the resource Get-MgServiceAnnouncementIssueCount [-Filter ] [-Search ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -38,13 +35,15 @@ This cmdlet has the following aliases, Get the number of the resource -**Permissions** +## EXAMPLES + +### EXAMPLE 1 + +{{ Add code here }} + +### EXAMPLE 2 -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceHealth.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceHealth.Read.All, | +{{ Add code here }} ## PARAMETERS @@ -282,27 +281,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -- [Get-MgServiceAnnouncementIssueCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissuecount) - - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissuecount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md index 706d10a54e15a..f5a270d7f8696 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessage Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementMessage --- @@ -17,9 +17,6 @@ Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessage?view=graph-powershell-beta) - ## SYNTAX ### List (Default) @@ -30,7 +27,7 @@ Get-MgServiceAnnouncementMessage [-ExpandProperty ] [-Property ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-PageSize ] [-All] - [-CountVariable ] [] + [-CountVariable ] ``` ### Get @@ -39,7 +36,7 @@ Get-MgServiceAnnouncementMessage [-ExpandProperty ] [-Property [-ExpandProperty ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -49,7 +46,7 @@ Get-MgServiceAnnouncementMessage -InputObject ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] - [-ProxyUseDefaultCredentials] [] + [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -63,27 +60,14 @@ Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. -**Permissions** - -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceMessage.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceMessage.Read.All, | - ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessage -``` -This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. - - ## PARAMETERS ### -All @@ -544,7 +528,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -553,28 +537,6 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementMessage](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessage) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-1.0) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncement-list-messages?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessage) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-1.0) +- [](https://learn.microsoft.com/graph/api/serviceannouncement-list-messages?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md index c50a6f00ed6db..3507d923256dd 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachment Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementMessageAttachment --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementMessageAttachment Read the properties and relationships of a serviceAnnouncementAttachment object. -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachment](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachment?view=graph-powershell-beta) - ## SYNTAX ### List (Default) @@ -29,7 +26,6 @@ Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-PageSize ] [-All] [-CountVariable ] - [] ``` ### Get @@ -39,7 +35,7 @@ Get-MgServiceAnnouncementMessageAttachment -ServiceAnnouncementAttachmentId [-ExpandProperty ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -49,7 +45,7 @@ Get-MgServiceAnnouncementMessageAttachment -InputObject ] [-Property ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] - [-ProxyUseDefaultCredentials] [] + [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -61,27 +57,14 @@ This cmdlet has the following aliases, Read the properties and relationships of a serviceAnnouncementAttachment object. -**Permissions** - -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceMessage.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceMessage.Read.All, | - ## EXAMPLES -### Example 1: Get an attachment message ID -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -``` -This example will get an attachment message id - - ## PARAMETERS ### -All @@ -569,7 +552,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -578,28 +561,6 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementMessageAttachment](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachment) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachment) +- [](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md index edf8d90227198..35af92bf19f6b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentarchive Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementMessageAttachmentArchive --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementMessageAttachmentArchive Get the list of attachments associated with a service message. -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachmentArchive](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachmentArchive?view=graph-powershell-beta) - ## SYNTAX ### Get (Default) @@ -26,7 +23,7 @@ Get the list of attachments associated with a service message. Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] - [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -35,7 +32,7 @@ Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] - [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -48,18 +45,13 @@ This cmdlet has the following aliases, Get the list of attachments associated with a service message. ## EXAMPLES -### Example 1: Get a zip file of all attachments in stream for a message -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example will get a zip file of all attachments in stream for a message - - ## PARAMETERS ### -Break @@ -346,7 +338,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -355,27 +347,5 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementMessageAttachmentArchive](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentarchive) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentarchive) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md index 8d8399e9acb90..1346198bd4d89 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcontent Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementMessageAttachmentContent --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementMessageAttachmentContent Read the properties and relationships of a serviceAnnouncementAttachment object. -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachmentContent](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachmentContent?view=graph-powershell-beta) - ## SYNTAX ### Get (Default) @@ -27,7 +24,7 @@ Get-MgServiceAnnouncementMessageAttachmentContent -ServiceAnnouncementAttachment -ServiceUpdateMessageId -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -36,7 +33,7 @@ Get-MgServiceAnnouncementMessageAttachmentContent -ServiceAnnouncementAttachment Get-MgServiceAnnouncementMessageAttachmentContent -InputObject -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] - [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -49,18 +46,13 @@ This cmdlet has the following aliases, Read the properties and relationships of a serviceAnnouncementAttachment object. ## EXAMPLES -### Example 1: Return a file stream of an attachment content for a message -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -``` -This example will return a file stream of an attachment content for a message - - ## PARAMETERS ### -Break @@ -368,7 +360,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -377,27 +369,5 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementMessageAttachmentContent](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcontent) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcontent) +- [](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md index 1d9dd1873e70c..6081b2db6d4d6 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcount Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementMessageAttachmentCount --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementMessageAttachmentCount Get the number of the resource -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachmentCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachmentCount?view=graph-powershell-beta) - ## SYNTAX ### Get (Default) @@ -26,7 +23,7 @@ Get the number of the resource Get-MgServiceAnnouncementMessageAttachmentCount -ServiceUpdateMessageId [-Filter ] [-Search ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### GetViaIdentity @@ -36,7 +33,7 @@ Get-MgServiceAnnouncementMessageAttachmentCount -InputObject ] [-Search ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] - [-ProxyUseDefaultCredentials] [] + [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -48,13 +45,15 @@ This cmdlet has the following aliases, Get the number of the resource -**Permissions** +## EXAMPLES + +### EXAMPLE 1 + +{{ Add code here }} + +### EXAMPLE 2 -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceMessage.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceMessage.Read.All, | +{{ Add code here }} ## PARAMETERS @@ -342,7 +341,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -351,27 +350,4 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Get-MgServiceAnnouncementMessageAttachmentCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcount) - - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md index 9350a18c5a4bc..c78bb5f25a515 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessagecount Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Get-MgServiceAnnouncementMessageCount --- @@ -15,9 +15,6 @@ title: Get-MgServiceAnnouncementMessageCount Get the number of the resource -> [!NOTE] -> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageCount?view=graph-powershell-beta) - ## SYNTAX ### Get (Default) @@ -26,7 +23,7 @@ Get the number of the resource Get-MgServiceAnnouncementMessageCount [-Filter ] [-Search ] [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -38,13 +35,15 @@ This cmdlet has the following aliases, Get the number of the resource -**Permissions** +## EXAMPLES + +### EXAMPLE 1 + +{{ Add code here }} + +### EXAMPLE 2 -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceMessage.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceMessage.Read.All, | +{{ Add code here }} ## PARAMETERS @@ -282,27 +281,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -- [Get-MgServiceAnnouncementMessageCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessagecount) - - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessagecount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md index da5c012db90b6..a5753911d72bd 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgarchiveserviceannouncementmessage Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgArchiveServiceAnnouncementMessage --- @@ -15,9 +15,6 @@ title: Invoke-MgArchiveServiceAnnouncementMessage Archive a list of serviceUpdateMessages for the signed in user. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaArchiveServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaArchiveServiceAnnouncementMessage?view=graph-powershell-beta) - ## SYNTAX ### ArchiveExpanded (Default) @@ -27,7 +24,6 @@ Invoke-MgArchiveServiceAnnouncementMessage [-ResponseHeadersVariable ] [-AdditionalProperties ] [-MessageIds ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ### Archive @@ -38,7 +34,6 @@ Invoke-MgArchiveServiceAnnouncementMessage [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ## ALIASES @@ -51,9 +46,8 @@ This cmdlet has the following aliases, Archive a list of serviceUpdateMessages for the signed in user. ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -66,10 +60,6 @@ $params = @{ Invoke-MgArchiveServiceAnnouncementMessage -BodyParameter $params -``` -This example shows how to use the Invoke-MgArchiveServiceAnnouncementMessage Cmdlet. - - ## PARAMETERS ### -AdditionalProperties @@ -95,7 +85,7 @@ HelpMessage: '' ### -BodyParameter - +. To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -223,7 +213,7 @@ HelpMessage: '' ### -MessageIds - +. ```yaml Type: System.String[] @@ -379,34 +369,12 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODYPARAMETER ``: . +BODYPARAMETER : . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: ## RELATED LINKS -- [Invoke-MgArchiveServiceAnnouncementMessage](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgarchiveserviceannouncementmessage) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgarchiveserviceannouncementmessage) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-archive?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md index 82efc066d9531..8c17bf74cd270 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgfavoriteserviceannouncementmessage Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgFavoriteServiceAnnouncementMessage --- @@ -15,9 +15,6 @@ title: Invoke-MgFavoriteServiceAnnouncementMessage Change the status of a list of serviceUpdateMessages to favorite for the signed in user. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaFavoriteServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaFavoriteServiceAnnouncementMessage?view=graph-powershell-beta) - ## SYNTAX ### FavoriteExpanded (Default) @@ -27,7 +24,6 @@ Invoke-MgFavoriteServiceAnnouncementMessage [-ResponseHeadersVariable ] [-AdditionalProperties ] [-MessageIds ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ### Favorite @@ -38,7 +34,6 @@ Invoke-MgFavoriteServiceAnnouncementMessage [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ## ALIASES @@ -51,9 +46,8 @@ This cmdlet has the following aliases, Change the status of a list of serviceUpdateMessages to favorite for the signed in user. ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -66,10 +60,6 @@ $params = @{ Invoke-MgFavoriteServiceAnnouncementMessage -BodyParameter $params -``` -This example shows how to use the Invoke-MgFavoriteServiceAnnouncementMessage Cmdlet. - - ## PARAMETERS ### -AdditionalProperties @@ -95,7 +85,7 @@ HelpMessage: '' ### -Body - +. To construct, see NOTES section for BODY properties and create a hash table. ```yaml @@ -223,7 +213,7 @@ HelpMessage: '' ### -MessageIds - +. ```yaml Type: System.String[] @@ -379,34 +369,12 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODY ``: . +BODY : . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: ## RELATED LINKS -- [Invoke-MgFavoriteServiceAnnouncementMessage](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgfavoriteserviceannouncementmessage) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgfavoriteserviceannouncementmessage) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-favorite?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md index 83f953c658fbc..80b6dd9d91cb0 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgmarkserviceannouncementmessageread Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgMarkServiceAnnouncementMessageRead --- @@ -15,9 +15,6 @@ title: Invoke-MgMarkServiceAnnouncementMessageRead Mark a list of serviceUpdateMessages as read for the signed in user. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaMarkServiceAnnouncementMessageRead](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaMarkServiceAnnouncementMessageRead?view=graph-powershell-beta) - ## SYNTAX ### MarkExpanded (Default) @@ -27,7 +24,6 @@ Invoke-MgMarkServiceAnnouncementMessageRead [-ResponseHeadersVariable ] [-AdditionalProperties ] [-MessageIds ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ### Mark @@ -38,7 +34,6 @@ Invoke-MgMarkServiceAnnouncementMessageRead [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ## ALIASES @@ -51,9 +46,8 @@ This cmdlet has the following aliases, Mark a list of serviceUpdateMessages as read for the signed in user. ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -66,10 +60,6 @@ $params = @{ Invoke-MgMarkServiceAnnouncementMessageRead -BodyParameter $params -``` -This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageRead Cmdlet. - - ## PARAMETERS ### -AdditionalProperties @@ -95,7 +85,7 @@ HelpMessage: '' ### -BodyParameter - +. To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -223,7 +213,7 @@ HelpMessage: '' ### -MessageIds - +. ```yaml Type: System.String[] @@ -379,34 +369,12 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODYPARAMETER ``: . +BODYPARAMETER : . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: ## RELATED LINKS -- [Invoke-MgMarkServiceAnnouncementMessageRead](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgmarkserviceannouncementmessageread) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-markread?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgmarkserviceannouncementmessageread) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-markread?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 25fb37d2c2966..731e7ec1fd673 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgmarkserviceannouncementmessageunread Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgMarkServiceAnnouncementMessageUnread --- @@ -15,9 +15,6 @@ title: Invoke-MgMarkServiceAnnouncementMessageUnread Mark a list of serviceUpdateMessages as unread for the signed in user. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaMarkServiceAnnouncementMessageUnread](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaMarkServiceAnnouncementMessageUnread?view=graph-powershell-beta) - ## SYNTAX ### MarkExpanded (Default) @@ -27,7 +24,6 @@ Invoke-MgMarkServiceAnnouncementMessageUnread [-ResponseHeadersVariable [-AdditionalProperties ] [-MessageIds ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ### Mark @@ -38,7 +34,6 @@ Invoke-MgMarkServiceAnnouncementMessageUnread [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ## ALIASES @@ -51,9 +46,8 @@ This cmdlet has the following aliases, Mark a list of serviceUpdateMessages as unread for the signed in user. ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -66,10 +60,6 @@ $params = @{ Invoke-MgMarkServiceAnnouncementMessageUnread -BodyParameter $params -``` -This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageUnread Cmdlet. - - ## PARAMETERS ### -AdditionalProperties @@ -95,7 +85,7 @@ HelpMessage: '' ### -BodyParameter - +. To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -223,7 +213,7 @@ HelpMessage: '' ### -MessageIds - +. ```yaml Type: System.String[] @@ -379,34 +369,12 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODYPARAMETER ``: . +BODYPARAMETER : . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: ## RELATED LINKS -- [Invoke-MgMarkServiceAnnouncementMessageUnread](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgmarkserviceannouncementmessageunread) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-markunread?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgmarkserviceannouncementmessageunread) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-markunread?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md index 29eea0b05641a..cfd912be877d3 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementhealthoverviewissueincident Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident --- @@ -17,9 +17,6 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaReportServiceAnnouncementHealthOverviewIssueIncident](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaReportServiceAnnouncementHealthOverviewIssueIncident?view=graph-powershell-beta) - ## SYNTAX ### Report (Default) @@ -29,7 +26,7 @@ Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident -ServiceHealthId < -ServiceHealthIssueId -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] [-Proxy ] - [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### ReportViaIdentity @@ -39,7 +36,7 @@ Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident -InputObject -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] - [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -53,6 +50,16 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +## EXAMPLES + +### EXAMPLE 1 + +{{ Add code here }} + +### EXAMPLE 2 + +{{ Add code here }} + ## PARAMETERS ### -Break @@ -360,7 +367,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -369,28 +376,5 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementhealthoverviewissueincident) -- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementhealthoverviewissueincident) +- [](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md index 9f19a9f6eecd3..5216711b87c06 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementissueincident Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgReportServiceAnnouncementIssueIncident --- @@ -17,9 +17,6 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaReportServiceAnnouncementIssueIncident](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaReportServiceAnnouncementIssueIncident?view=graph-powershell-beta) - ## SYNTAX ### Report (Default) @@ -28,7 +25,7 @@ The operation returns an error if the specified issue doesn't exist for the tena Invoke-MgReportServiceAnnouncementIssueIncident -ServiceHealthIssueId -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] - [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ### ReportViaIdentity @@ -37,7 +34,7 @@ Invoke-MgReportServiceAnnouncementIssueIncident -ServiceHealthIssueId - Invoke-MgReportServiceAnnouncementIssueIncident -InputObject -OutFile [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-PassThru] - [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [] + [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] ``` ## ALIASES @@ -51,27 +48,14 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. -**Permissions** - -| Permission type | Permissions (from least to most privileged) | -| --------------- | ------------------------------------------ | -| Delegated (work or school account) | ServiceHealth.Read.All, | -| Delegated (personal Microsoft account) | Not supported | -| Application | ServiceHealth.Read.All, | - ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Invoke-MgReportServiceAnnouncementIssueIncident -ServiceHealthIssueId $serviceHealthIssueId -``` -This example shows how to use the Invoke-MgReportServiceAnnouncementIssueIncident Cmdlet. - - ## PARAMETERS ### -Break @@ -358,7 +342,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT ``: Identity Parameter +INPUTOBJECT : Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -367,27 +351,5 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [Invoke-MgReportServiceAnnouncementIssueIncident](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementissueincident) -- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementissueincident) +- [](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md index d59a43897bbb8..50ab15db54f37 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgunarchiveserviceannouncementmessage Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgUnarchiveServiceAnnouncementMessage --- @@ -15,9 +15,6 @@ title: Invoke-MgUnarchiveServiceAnnouncementMessage Unarchive a list of serviceUpdateMessages for the signed in user. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaUnarchiveServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaUnarchiveServiceAnnouncementMessage?view=graph-powershell-beta) - ## SYNTAX ### UnarchiveExpanded (Default) @@ -27,7 +24,6 @@ Invoke-MgUnarchiveServiceAnnouncementMessage [-ResponseHeadersVariable ] [-AdditionalProperties ] [-MessageIds ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ### Unarchive @@ -38,7 +34,6 @@ Invoke-MgUnarchiveServiceAnnouncementMessage [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ## ALIASES @@ -51,9 +46,8 @@ This cmdlet has the following aliases, Unarchive a list of serviceUpdateMessages for the signed in user. ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -66,10 +60,6 @@ $params = @{ Invoke-MgUnarchiveServiceAnnouncementMessage -BodyParameter $params -``` -This example shows how to use the Invoke-MgUnarchiveServiceAnnouncementMessage Cmdlet. - - ## PARAMETERS ### -AdditionalProperties @@ -95,7 +85,7 @@ HelpMessage: '' ### -BodyParameter - +. To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -223,7 +213,7 @@ HelpMessage: '' ### -MessageIds - +. ```yaml Type: System.String[] @@ -379,34 +369,12 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODYPARAMETER ``: . +BODYPARAMETER : . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: ## RELATED LINKS -- [Invoke-MgUnarchiveServiceAnnouncementMessage](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgunarchiveserviceannouncementmessage) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-unarchive?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgunarchiveserviceannouncementmessage) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-unarchive?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index 30dca62cc059b..83c9f5ea769ed 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -4,7 +4,7 @@ external help file: Microsoft.Graph.Devices.ServiceAnnouncement-Help.xml HelpUri: https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgunfavoriteserviceannouncementmessage Locale: en-US Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -ms.date: 06/05/2026 +ms.date: 07/31/2026 PlatyPS schema version: 2024-05-01 title: Invoke-MgUnfavoriteServiceAnnouncementMessage --- @@ -15,9 +15,6 @@ title: Invoke-MgUnfavoriteServiceAnnouncementMessage Remove the favorite status of serviceUpdateMessages for the signed in user. -> [!NOTE] -> To view the beta release of this cmdlet, view [Invoke-MgBetaUnfavoriteServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage?view=graph-powershell-beta) - ## SYNTAX ### UnfavoriteExpanded (Default) @@ -27,7 +24,6 @@ Invoke-MgUnfavoriteServiceAnnouncementMessage [-ResponseHeadersVariable [-AdditionalProperties ] [-MessageIds ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ### Unfavorite @@ -38,7 +34,6 @@ Invoke-MgUnfavoriteServiceAnnouncementMessage [-ResponseHeadersVariable ] [-Break] [-Headers ] [-HttpPipelineAppend ] [-HttpPipelinePrepend ] [-Proxy ] [-ProxyCredential ] [-ProxyUseDefaultCredentials] [-WhatIf] [-Confirm] - [] ``` ## ALIASES @@ -51,9 +46,8 @@ This cmdlet has the following aliases, Remove the favorite status of serviceUpdateMessages for the signed in user. ## EXAMPLES -### Example 1: Code snippet -```powershell +### EXAMPLE 1 Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -66,10 +60,6 @@ $params = @{ Invoke-MgUnfavoriteServiceAnnouncementMessage -BodyParameter $params -``` -This example shows how to use the Invoke-MgUnfavoriteServiceAnnouncementMessage Cmdlet. - - ## PARAMETERS ### -AdditionalProperties @@ -95,7 +85,7 @@ HelpMessage: '' ### -Body - +. To construct, see NOTES section for BODY properties and create a hash table. ```yaml @@ -223,7 +213,7 @@ HelpMessage: '' ### -MessageIds - +. ```yaml Type: System.String[] @@ -379,34 +369,12 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODY ``: . +BODY : . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: ## RELATED LINKS -- [Invoke-MgUnfavoriteServiceAnnouncementMessage](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgunfavoriteserviceannouncementmessage) -- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-unfavorite?view=graph-rest-1.0) - - - - - - - - - - - - - - - - - - - - - - +- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgunfavoriteserviceannouncementmessage) +- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-unfavorite?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Microsoft.Graph.Devices.ServiceAnnouncement.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Microsoft.Graph.Devices.ServiceAnnouncement.md index f5295bad64c1e..9cb438dc2094f 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Microsoft.Graph.Devices.ServiceAnnouncement.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Microsoft.Graph.Devices.ServiceAnnouncement.md @@ -1,6 +1,6 @@ --- Module Name: Microsoft.Graph.Devices.ServiceAnnouncement -Module Guid: e6f1a8e2-bf6b-4b02-ba8b-1791e0708739 +Module Guid: 39918cc9-1b57-4edc-8405-7fe68f2250c1 Download Help Link: https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.devices.serviceannouncement/?view=graph-powershell-1.0 Help Version: 1.0.0.0 Locale: en-US @@ -61,22 +61,3 @@ Microsoft Graph PowerShell Cmdlets ### [Invoke-MgUnfavoriteServiceAnnouncementMessage](Invoke-MgUnfavoriteServiceAnnouncementMessage.md) - - - - - - - - - - - - - - - - - - - From 8f9d16715bcca17e62640d82c68a80200ecdd94d Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 19:14:37 +0000 Subject: [PATCH 11/17] Escaped disallowed html tags --- ...Get-MgServiceAnnouncementHealthOverview.md | 24 ++++++++++++++++++- ...gServiceAnnouncementHealthOverviewCount.md | 22 +++++++++++++++++ ...gServiceAnnouncementHealthOverviewIssue.md | 24 ++++++++++++++++++- ...iceAnnouncementHealthOverviewIssueCount.md | 24 ++++++++++++++++++- .../Get-MgServiceAnnouncementIssue.md | 24 ++++++++++++++++++- .../Get-MgServiceAnnouncementIssueCount.md | 22 +++++++++++++++++ .../Get-MgServiceAnnouncementMessage.md | 24 ++++++++++++++++++- ...-MgServiceAnnouncementMessageAttachment.md | 24 ++++++++++++++++++- ...iceAnnouncementMessageAttachmentArchive.md | 24 ++++++++++++++++++- ...iceAnnouncementMessageAttachmentContent.md | 24 ++++++++++++++++++- ...rviceAnnouncementMessageAttachmentCount.md | 24 ++++++++++++++++++- .../Get-MgServiceAnnouncementMessageCount.md | 22 +++++++++++++++++ ...oke-MgArchiveServiceAnnouncementMessage.md | 24 ++++++++++++++++++- ...ke-MgFavoriteServiceAnnouncementMessage.md | 24 ++++++++++++++++++- ...ke-MgMarkServiceAnnouncementMessageRead.md | 24 ++++++++++++++++++- ...-MgMarkServiceAnnouncementMessageUnread.md | 24 ++++++++++++++++++- ...AnnouncementHealthOverviewIssueIncident.md | 24 ++++++++++++++++++- ...gReportServiceAnnouncementIssueIncident.md | 24 ++++++++++++++++++- ...e-MgUnarchiveServiceAnnouncementMessage.md | 24 ++++++++++++++++++- ...-MgUnfavoriteServiceAnnouncementMessage.md | 24 ++++++++++++++++++- ...osoft.Graph.Devices.ServiceAnnouncement.md | 19 +++++++++++++++ 21 files changed, 476 insertions(+), 17 deletions(-) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md index 9bba5651472f2..16dcd6613981c 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md @@ -532,7 +532,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -544,3 +544,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverview) - [](https://learn.microsoft.com/graph/api/servicehealth-get?view=graph-rest-1.0) - [](https://learn.microsoft.com/graph/api/serviceannouncement-list-healthoverviews?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md index 9831ffc00cedd..08d3829c278cb 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md @@ -282,3 +282,25 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewcount) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md index 3a021801b9160..99f5cc10fbb5b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md @@ -554,7 +554,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -564,3 +564,25 @@ INPUTOBJECT : Identity Parameter ## RELATED LINKS - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissue) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md index c5f793e7a39d1..b2b83e834b06a 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md @@ -341,7 +341,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -351,3 +351,25 @@ INPUTOBJECT : Identity Parameter ## RELATED LINKS - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissuecount) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md index 6066c302f7484..8c760117ffa82 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md @@ -528,7 +528,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -540,3 +540,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissue) - [](https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0) - [](https://learn.microsoft.com/graph/api/serviceannouncement-list-issues?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md index d613b4dbee190..6e603e80ffdba 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md @@ -282,3 +282,25 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissuecount) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md index f5a270d7f8696..73b23dfa782d4 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md @@ -528,7 +528,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -540,3 +540,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessage) - [](https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-1.0) - [](https://learn.microsoft.com/graph/api/serviceannouncement-list-messages?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md index 3507d923256dd..3922439f77b8a 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md @@ -552,7 +552,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -564,3 +564,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachment) - [](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) - [](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md index 35af92bf19f6b..f947ee1488df8 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -338,7 +338,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -349,3 +349,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentarchive) - [](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md index 1346198bd4d89..1bf4b8342dbbb 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -360,7 +360,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -371,3 +371,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcontent) - [](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md index 6081b2db6d4d6..2db660643113b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md @@ -341,7 +341,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -351,3 +351,25 @@ INPUTOBJECT : Identity Parameter ## RELATED LINKS - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcount) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md index c78bb5f25a515..4db286dd6071e 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md @@ -282,3 +282,25 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessagecount) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md index a5753911d72bd..ee036cb52ae08 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -369,7 +369,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODYPARAMETER : . +BODYPARAMETER ``: . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: @@ -378,3 +378,25 @@ BODYPARAMETER : . +BODY ``: . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: @@ -378,3 +378,25 @@ BODY : . +BODYPARAMETER ``: . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: @@ -378,3 +378,25 @@ BODYPARAMETER : . +BODYPARAMETER ``: . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: @@ -378,3 +378,25 @@ BODYPARAMETER : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -378,3 +378,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementhealthoverviewissueincident) - [](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md index 5216711b87c06..00e1fa6ded358 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -342,7 +342,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -INPUTOBJECT : Identity Parameter +INPUTOBJECT ``: Identity Parameter [ServiceAnnouncementAttachmentId ]: The unique identifier of serviceAnnouncementAttachment [ServiceHealthId ]: The unique identifier of serviceHealth [ServiceHealthIssueId ]: The unique identifier of serviceHealthIssue @@ -353,3 +353,25 @@ INPUTOBJECT : Identity Parameter - [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementissueincident) - [](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) + + + + + + + + + + + + + + + + + + + + + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md index 50ab15db54f37..f0209adb73ddf 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -369,7 +369,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -BODYPARAMETER : . +BODYPARAMETER ``: . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: @@ -378,3 +378,25 @@ BODYPARAMETER : . +BODY ``: . [(Any) ]: This indicates any property can be added to this object. [MessageIds ]: @@ -378,3 +378,25 @@ BODY Date: Fri, 31 Jul 2026 19:27:41 +0000 Subject: [PATCH 12/17] Inserted permissions Table --- .../Get-MgServiceAnnouncementHealthOverview.md | 8 ++++++++ .../Get-MgServiceAnnouncementHealthOverviewCount.md | 8 ++++++++ .../Get-MgServiceAnnouncementIssue.md | 8 ++++++++ .../Get-MgServiceAnnouncementIssueCount.md | 8 ++++++++ .../Get-MgServiceAnnouncementMessage.md | 8 ++++++++ .../Get-MgServiceAnnouncementMessageAttachment.md | 8 ++++++++ .../Get-MgServiceAnnouncementMessageAttachmentCount.md | 8 ++++++++ .../Get-MgServiceAnnouncementMessageCount.md | 8 ++++++++ .../Invoke-MgReportServiceAnnouncementIssueIncident.md | 8 ++++++++ 9 files changed, 72 insertions(+) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md index 16dcd6613981c..31fb6a74947c2 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md @@ -58,6 +58,14 @@ This cmdlet has the following aliases, Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceHealth.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceHealth.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md index 08d3829c278cb..746578750e5d4 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md @@ -35,6 +35,14 @@ This cmdlet has the following aliases, Get the number of the resource +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceHealth.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceHealth.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md index 8c760117ffa82..8f01df55aedf9 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md @@ -60,6 +60,14 @@ Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceHealth.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceHealth.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md index 6e603e80ffdba..2f209a5bf9ace 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md @@ -35,6 +35,14 @@ This cmdlet has the following aliases, Get the number of the resource +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceHealth.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceHealth.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md index 73b23dfa782d4..9515ca6e17fd0 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md @@ -60,6 +60,14 @@ Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceMessage.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceMessage.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md index 3922439f77b8a..12b5a49a91028 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md @@ -57,6 +57,14 @@ This cmdlet has the following aliases, Read the properties and relationships of a serviceAnnouncementAttachment object. +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceMessage.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceMessage.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md index 2db660643113b..4ddf9b49295bd 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md @@ -45,6 +45,14 @@ This cmdlet has the following aliases, Get the number of the resource +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceMessage.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceMessage.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md index 4db286dd6071e..0d1bdb472a5f2 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md @@ -35,6 +35,14 @@ This cmdlet has the following aliases, Get the number of the resource +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceMessage.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceMessage.Read.All, | + ## EXAMPLES ### EXAMPLE 1 diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md index 00e1fa6ded358..45f51da04142f 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -48,6 +48,14 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +**Permissions** + +| Permission type | Permissions (from least to most privileged) | +| --------------- | ------------------------------------------ | +| Delegated (work or school account) | ServiceHealth.Read.All, | +| Delegated (personal Microsoft account) | Not supported | +| Application | ServiceHealth.Read.All, | + ## EXAMPLES ### EXAMPLE 1 From 69d28592a2e3c7526016cc847492347b96d385bd Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 19:27:52 +0000 Subject: [PATCH 13/17] Updated metadata parameters --- .../Get-MgServiceAnnouncementHealthOverview.md | 3 +++ .../Get-MgServiceAnnouncementHealthOverviewCount.md | 3 +++ .../Get-MgServiceAnnouncementHealthOverviewIssue.md | 3 +++ .../Get-MgServiceAnnouncementHealthOverviewIssueCount.md | 3 +++ .../Get-MgServiceAnnouncementIssue.md | 3 +++ .../Get-MgServiceAnnouncementIssueCount.md | 3 +++ .../Get-MgServiceAnnouncementMessage.md | 3 +++ .../Get-MgServiceAnnouncementMessageAttachment.md | 3 +++ .../Get-MgServiceAnnouncementMessageAttachmentArchive.md | 3 +++ .../Get-MgServiceAnnouncementMessageAttachmentContent.md | 3 +++ .../Get-MgServiceAnnouncementMessageAttachmentCount.md | 3 +++ .../Get-MgServiceAnnouncementMessageCount.md | 3 +++ .../Invoke-MgArchiveServiceAnnouncementMessage.md | 3 +++ .../Invoke-MgFavoriteServiceAnnouncementMessage.md | 3 +++ .../Invoke-MgMarkServiceAnnouncementMessageRead.md | 3 +++ .../Invoke-MgMarkServiceAnnouncementMessageUnread.md | 3 +++ ...e-MgReportServiceAnnouncementHealthOverviewIssueIncident.md | 3 +++ .../Invoke-MgReportServiceAnnouncementIssueIncident.md | 3 +++ .../Invoke-MgUnarchiveServiceAnnouncementMessage.md | 3 +++ .../Invoke-MgUnfavoriteServiceAnnouncementMessage.md | 3 +++ 20 files changed, 60 insertions(+) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md index 31fb6a74947c2..0c9e28ac9caf1 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md @@ -16,6 +16,9 @@ title: Get-MgServiceAnnouncementHealthOverview Retrieve the properties and relationships of a serviceHealth object. This operation provides the health information of a specified service for a tenant. +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverview](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverview?view=graph-powershell-beta) + ## SYNTAX ### List (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md index 746578750e5d4..c4cea6992f918 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementHealthOverviewCount Get the number of the resource +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverviewCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverviewCount?view=graph-powershell-beta) + ## SYNTAX ### Get (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md index 99f5cc10fbb5b..f2316833b5456 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementHealthOverviewIssue A collection of issues that happened on the service, with detailed information for each issue. +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverviewIssue](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverviewIssue?view=graph-powershell-beta) + ## SYNTAX ### List (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md index b2b83e834b06a..c015b4564c196 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementHealthOverviewIssueCount Get the number of the resource +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementHealthOverviewIssueCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementHealthOverviewIssueCount?view=graph-powershell-beta) + ## SYNTAX ### Get (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md index 8f01df55aedf9..ed316f6376698 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md @@ -17,6 +17,9 @@ Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant. +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementIssue](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementIssue?view=graph-powershell-beta) + ## SYNTAX ### List (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md index 2f209a5bf9ace..d5066cb0ea654 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementIssueCount Get the number of the resource +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementIssueCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementIssueCount?view=graph-powershell-beta) + ## SYNTAX ### Get (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md index 9515ca6e17fd0..eb6359430a912 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md @@ -17,6 +17,9 @@ Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessage?view=graph-powershell-beta) + ## SYNTAX ### List (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md index 12b5a49a91028..0384916c15b60 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementMessageAttachment Read the properties and relationships of a serviceAnnouncementAttachment object. +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachment](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachment?view=graph-powershell-beta) + ## SYNTAX ### List (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md index f947ee1488df8..3aac0d5b291e4 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementMessageAttachmentArchive Get the list of attachments associated with a service message. +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachmentArchive](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachmentArchive?view=graph-powershell-beta) + ## SYNTAX ### Get (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md index 1bf4b8342dbbb..e379f5680a00b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementMessageAttachmentContent Read the properties and relationships of a serviceAnnouncementAttachment object. +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachmentContent](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachmentContent?view=graph-powershell-beta) + ## SYNTAX ### Get (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md index 4ddf9b49295bd..9088c5fb48bfd 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementMessageAttachmentCount Get the number of the resource +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageAttachmentCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageAttachmentCount?view=graph-powershell-beta) + ## SYNTAX ### Get (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md index 0d1bdb472a5f2..5ede2a79dff41 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md @@ -15,6 +15,9 @@ title: Get-MgServiceAnnouncementMessageCount Get the number of the resource +> [!NOTE] +> To view the beta release of this cmdlet, view [Get-MgBetaServiceAnnouncementMessageCount](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Get-MgBetaServiceAnnouncementMessageCount?view=graph-powershell-beta) + ## SYNTAX ### Get (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md index ee036cb52ae08..e7a9a90b24b8e 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -15,6 +15,9 @@ title: Invoke-MgArchiveServiceAnnouncementMessage Archive a list of serviceUpdateMessages for the signed in user. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaArchiveServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaArchiveServiceAnnouncementMessage?view=graph-powershell-beta) + ## SYNTAX ### ArchiveExpanded (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md index 99679c15497af..a862719e571c8 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -15,6 +15,9 @@ title: Invoke-MgFavoriteServiceAnnouncementMessage Change the status of a list of serviceUpdateMessages to favorite for the signed in user. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaFavoriteServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaFavoriteServiceAnnouncementMessage?view=graph-powershell-beta) + ## SYNTAX ### FavoriteExpanded (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md index c27525a5bb682..45efb97ccd758 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -15,6 +15,9 @@ title: Invoke-MgMarkServiceAnnouncementMessageRead Mark a list of serviceUpdateMessages as read for the signed in user. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaMarkServiceAnnouncementMessageRead](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaMarkServiceAnnouncementMessageRead?view=graph-powershell-beta) + ## SYNTAX ### MarkExpanded (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 4bc38d84a591a..9ecbc64a72ad0 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -15,6 +15,9 @@ title: Invoke-MgMarkServiceAnnouncementMessageUnread Mark a list of serviceUpdateMessages as unread for the signed in user. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaMarkServiceAnnouncementMessageUnread](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaMarkServiceAnnouncementMessageUnread?view=graph-powershell-beta) + ## SYNTAX ### MarkExpanded (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md index e4d21b00049fe..65489eff10e53 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md @@ -17,6 +17,9 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaReportServiceAnnouncementHealthOverviewIssueIncident](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaReportServiceAnnouncementHealthOverviewIssueIncident?view=graph-powershell-beta) + ## SYNTAX ### Report (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md index 45f51da04142f..923e83034190e 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -17,6 +17,9 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaReportServiceAnnouncementIssueIncident](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaReportServiceAnnouncementIssueIncident?view=graph-powershell-beta) + ## SYNTAX ### Report (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md index f0209adb73ddf..9660635586d1b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -15,6 +15,9 @@ title: Invoke-MgUnarchiveServiceAnnouncementMessage Unarchive a list of serviceUpdateMessages for the signed in user. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaUnarchiveServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaUnarchiveServiceAnnouncementMessage?view=graph-powershell-beta) + ## SYNTAX ### UnarchiveExpanded (Default) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index 69d4cb0b22936..f07cb471cfc93 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -15,6 +15,9 @@ title: Invoke-MgUnfavoriteServiceAnnouncementMessage Remove the favorite status of serviceUpdateMessages for the signed in user. +> [!NOTE] +> To view the beta release of this cmdlet, view [Invoke-MgBetaUnfavoriteServiceAnnouncementMessage](/powershell/module/Microsoft.Graph.Beta.Devices.ServiceAnnouncement/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage?view=graph-powershell-beta) + ## SYNTAX ### UnfavoriteExpanded (Default) From 02d47b5f70c2dc1ac679de16d2a91168f3408ef9 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 19:27:58 +0000 Subject: [PATCH 14/17] Repaired examples and descriptions --- .../Get-MgServiceAnnouncementHealthOverview.md | 16 +++++++++++++--- ...t-MgServiceAnnouncementHealthOverviewIssue.md | 12 ++---------- .../Get-MgServiceAnnouncementIssue.md | 7 ++++++- .../Get-MgServiceAnnouncementMessage.md | 7 ++++++- ...Get-MgServiceAnnouncementMessageAttachment.md | 7 ++++++- ...erviceAnnouncementMessageAttachmentArchive.md | 7 ++++++- ...erviceAnnouncementMessageAttachmentContent.md | 7 ++++++- ...Invoke-MgArchiveServiceAnnouncementMessage.md | 7 ++++++- ...nvoke-MgFavoriteServiceAnnouncementMessage.md | 7 ++++++- ...nvoke-MgMarkServiceAnnouncementMessageRead.md | 7 ++++++- ...oke-MgMarkServiceAnnouncementMessageUnread.md | 7 ++++++- ...iceAnnouncementHealthOverviewIssueIncident.md | 11 +---------- ...e-MgReportServiceAnnouncementIssueIncident.md | 7 ++++++- ...voke-MgUnarchiveServiceAnnouncementMessage.md | 7 ++++++- ...oke-MgUnfavoriteServiceAnnouncementMessage.md | 7 ++++++- 15 files changed, 88 insertions(+), 35 deletions(-) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md index 0c9e28ac9caf1..67a981eaa51e4 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md @@ -70,18 +70,28 @@ This operation provides the health information of a specified service for a tena | Application | ServiceHealth.Read.All, | ## EXAMPLES +### Example 1: Get serviceHealth resources -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementHealthOverview -### EXAMPLE 2 +``` +This example will get servicehealth resources + +### Example 2: Include navigation property issues + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" +Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" + +``` +This example will include navigation property issues + ## PARAMETERS diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md index f2316833b5456..389b8d35e1372 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md @@ -60,16 +60,6 @@ This cmdlet has the following aliases, A collection of issues that happened on the service, with detailed information for each issue. -## EXAMPLES - -### EXAMPLE 1 - -{{ Add code here }} - -### EXAMPLE 2 - -{{ Add code here }} - ## PARAMETERS ### -All @@ -586,6 +576,8 @@ INPUTOBJECT ``: Identity Parameter + + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md index ed316f6376698..7fd5496118cae 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md @@ -72,13 +72,18 @@ The operation returns an error if the issue does not exist for the tenant. | Application | ServiceHealth.Read.All, | ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementIssue +``` +This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. + + ## PARAMETERS ### -All diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md index eb6359430a912..e177f53668b88 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md @@ -72,13 +72,18 @@ The operation returns an error if the message does not exist for the tenant. | Application | ServiceMessage.Read.All, | ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessage +``` +This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. + + ## PARAMETERS ### -All diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md index 0384916c15b60..2674f6c00d11d 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md @@ -69,13 +69,18 @@ Read the properties and relationships of a serviceAnnouncementAttachment object. | Application | ServiceMessage.Read.All, | ## EXAMPLES +### Example 1: Get an attachment message ID -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId +``` +This example will get an attachment message id + + ## PARAMETERS ### -All diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md index 3aac0d5b291e4..694d229016e9d 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -48,13 +48,18 @@ This cmdlet has the following aliases, Get the list of attachments associated with a service message. ## EXAMPLES +### Example 1: Get a zip file of all attachments in stream for a message -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example will get a zip file of all attachments in stream for a message + + ## PARAMETERS ### -Break diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md index e379f5680a00b..a946e461d89f9 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -49,13 +49,18 @@ This cmdlet has the following aliases, Read the properties and relationships of a serviceAnnouncementAttachment object. ## EXAMPLES +### Example 1: Return a file stream of an attachment content for a message -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId +``` +This example will return a file stream of an attachment content for a message + + ## PARAMETERS ### -Break diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md index e7a9a90b24b8e..2ac77db3a447b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -49,8 +49,9 @@ This cmdlet has the following aliases, Archive a list of serviceUpdateMessages for the signed in user. ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -63,6 +64,10 @@ $params = @{ Invoke-MgArchiveServiceAnnouncementMessage -BodyParameter $params +``` +This example shows how to use the Invoke-MgArchiveServiceAnnouncementMessage Cmdlet. + + ## PARAMETERS ### -AdditionalProperties diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md index a862719e571c8..32465eb34e94a 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -49,8 +49,9 @@ This cmdlet has the following aliases, Change the status of a list of serviceUpdateMessages to favorite for the signed in user. ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -63,6 +64,10 @@ $params = @{ Invoke-MgFavoriteServiceAnnouncementMessage -BodyParameter $params +``` +This example shows how to use the Invoke-MgFavoriteServiceAnnouncementMessage Cmdlet. + + ## PARAMETERS ### -AdditionalProperties diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md index 45efb97ccd758..3b3d8d8d73a37 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -49,8 +49,9 @@ This cmdlet has the following aliases, Mark a list of serviceUpdateMessages as read for the signed in user. ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -63,6 +64,10 @@ $params = @{ Invoke-MgMarkServiceAnnouncementMessageRead -BodyParameter $params +``` +This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageRead Cmdlet. + + ## PARAMETERS ### -AdditionalProperties diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 9ecbc64a72ad0..32dfa6f34becb 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -49,8 +49,9 @@ This cmdlet has the following aliases, Mark a list of serviceUpdateMessages as unread for the signed in user. ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -63,6 +64,10 @@ $params = @{ Invoke-MgMarkServiceAnnouncementMessageUnread -BodyParameter $params +``` +This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageUnread Cmdlet. + + ## PARAMETERS ### -AdditionalProperties diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md index 65489eff10e53..6231e6387a013 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident.md @@ -53,16 +53,6 @@ Provide the Post-Incident Review (PIR) document of a specified service issue for An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue. -## EXAMPLES - -### EXAMPLE 1 - -{{ Add code here }} - -### EXAMPLE 2 - -{{ Add code here }} - ## PARAMETERS ### -Break @@ -401,5 +391,6 @@ INPUTOBJECT ``: Identity Parameter + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md index 923e83034190e..5d50372c79e78 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -60,13 +60,18 @@ The operation returns an error if the specified issue doesn't exist for the tena | Application | ServiceHealth.Read.All, | ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Invoke-MgReportServiceAnnouncementIssueIncident -ServiceHealthIssueId $serviceHealthIssueId +``` +This example shows how to use the Invoke-MgReportServiceAnnouncementIssueIncident Cmdlet. + + ## PARAMETERS ### -Break diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md index 9660635586d1b..a6a9efacb22c9 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -49,8 +49,9 @@ This cmdlet has the following aliases, Unarchive a list of serviceUpdateMessages for the signed in user. ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -63,6 +64,10 @@ $params = @{ Invoke-MgUnarchiveServiceAnnouncementMessage -BodyParameter $params +``` +This example shows how to use the Invoke-MgUnarchiveServiceAnnouncementMessage Cmdlet. + + ## PARAMETERS ### -AdditionalProperties diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index f07cb471cfc93..10ac1a21c5088 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -49,8 +49,9 @@ This cmdlet has the following aliases, Remove the favorite status of serviceUpdateMessages for the signed in user. ## EXAMPLES +### Example 1: Code snippet -### EXAMPLE 1 +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement @@ -63,6 +64,10 @@ $params = @{ Invoke-MgUnfavoriteServiceAnnouncementMessage -BodyParameter $params +``` +This example shows how to use the Invoke-MgUnfavoriteServiceAnnouncementMessage Cmdlet. + + ## PARAMETERS ### -AdditionalProperties From 9823ca3114fb082e3ee866e8924f05c7b9c2c573 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 19:28:02 +0000 Subject: [PATCH 15/17] Remove boiler plate code injected by Autorest --- .../Get-MgServiceAnnouncementHealthOverviewCount.md | 11 +---------- ...t-MgServiceAnnouncementHealthOverviewIssueCount.md | 11 +---------- .../Get-MgServiceAnnouncementIssueCount.md | 11 +---------- ...Get-MgServiceAnnouncementMessageAttachmentCount.md | 11 +---------- .../Get-MgServiceAnnouncementMessageCount.md | 11 +---------- 5 files changed, 5 insertions(+), 50 deletions(-) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md index c4cea6992f918..afe5627d8497e 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md @@ -46,16 +46,6 @@ Get the number of the resource | Delegated (personal Microsoft account) | Not supported | | Application | ServiceHealth.Read.All, | -## EXAMPLES - -### EXAMPLE 1 - -{{ Add code here }} - -### EXAMPLE 2 - -{{ Add code here }} - ## PARAMETERS ### -Break @@ -313,5 +303,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md index c015b4564c196..f3bb8573f163b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md @@ -48,16 +48,6 @@ This cmdlet has the following aliases, Get the number of the resource -## EXAMPLES - -### EXAMPLE 1 - -{{ Add code here }} - -### EXAMPLE 2 - -{{ Add code here }} - ## PARAMETERS ### -Break @@ -374,5 +364,6 @@ INPUTOBJECT ``: Identity Parameter + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md index d5066cb0ea654..b830d121d0218 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md @@ -46,16 +46,6 @@ Get the number of the resource | Delegated (personal Microsoft account) | Not supported | | Application | ServiceHealth.Read.All, | -## EXAMPLES - -### EXAMPLE 1 - -{{ Add code here }} - -### EXAMPLE 2 - -{{ Add code here }} - ## PARAMETERS ### -Break @@ -313,5 +303,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md index 9088c5fb48bfd..ee934b9d40108 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md @@ -56,16 +56,6 @@ Get the number of the resource | Delegated (personal Microsoft account) | Not supported | | Application | ServiceMessage.Read.All, | -## EXAMPLES - -### EXAMPLE 1 - -{{ Add code here }} - -### EXAMPLE 2 - -{{ Add code here }} - ## PARAMETERS ### -Break @@ -382,5 +372,6 @@ INPUTOBJECT ``: Identity Parameter + diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md index 5ede2a79dff41..c00a92cc4d243 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md @@ -46,16 +46,6 @@ Get the number of the resource | Delegated (personal Microsoft account) | Not supported | | Application | ServiceMessage.Read.All, | -## EXAMPLES - -### EXAMPLE 1 - -{{ Add code here }} - -### EXAMPLE 2 - -{{ Add code here }} - ## PARAMETERS ### -Break @@ -313,5 +303,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable + From fe148a1c903bc79bb440128f826965e36339d314 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 19:28:05 +0000 Subject: [PATCH 16/17] Removed invalid full stops from the beginning of lines --- .../Invoke-MgArchiveServiceAnnouncementMessage.md | 4 ++-- .../Invoke-MgFavoriteServiceAnnouncementMessage.md | 4 ++-- .../Invoke-MgMarkServiceAnnouncementMessageRead.md | 4 ++-- .../Invoke-MgMarkServiceAnnouncementMessageUnread.md | 4 ++-- .../Invoke-MgUnarchiveServiceAnnouncementMessage.md | 4 ++-- .../Invoke-MgUnfavoriteServiceAnnouncementMessage.md | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md index 2ac77db3a447b..0d3d0b15faf66 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -93,7 +93,7 @@ HelpMessage: '' ### -BodyParameter -. + To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -221,7 +221,7 @@ HelpMessage: '' ### -MessageIds -. + ```yaml Type: System.String[] diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md index 32465eb34e94a..549bc942337b4 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -93,7 +93,7 @@ HelpMessage: '' ### -Body -. + To construct, see NOTES section for BODY properties and create a hash table. ```yaml @@ -221,7 +221,7 @@ HelpMessage: '' ### -MessageIds -. + ```yaml Type: System.String[] diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md index 3b3d8d8d73a37..94bd6e197d496 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -93,7 +93,7 @@ HelpMessage: '' ### -BodyParameter -. + To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -221,7 +221,7 @@ HelpMessage: '' ### -MessageIds -. + ```yaml Type: System.String[] diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 32dfa6f34becb..212c06e41c6a9 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -93,7 +93,7 @@ HelpMessage: '' ### -BodyParameter -. + To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -221,7 +221,7 @@ HelpMessage: '' ### -MessageIds -. + ```yaml Type: System.String[] diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md index a6a9efacb22c9..4dec33f57c7f1 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -93,7 +93,7 @@ HelpMessage: '' ### -BodyParameter -. + To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ```yaml @@ -221,7 +221,7 @@ HelpMessage: '' ### -MessageIds -. + ```yaml Type: System.String[] diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index 10ac1a21c5088..66955fe474aba 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -93,7 +93,7 @@ HelpMessage: '' ### -Body -. + To construct, see NOTES section for BODY properties and create a hash table. ```yaml @@ -221,7 +221,7 @@ HelpMessage: '' ### -MessageIds -. + ```yaml Type: System.String[] From cf7f13e28decb6e264d4bb39e04f857f7e516e9b Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 19:28:19 +0000 Subject: [PATCH 17/17] Corrected related link to conform to the new platyps rules --- .../Get-MgServiceAnnouncementHealthOverview.md | 6 +++--- .../Get-MgServiceAnnouncementHealthOverviewCount.md | 2 +- .../Get-MgServiceAnnouncementHealthOverviewIssue.md | 2 +- .../Get-MgServiceAnnouncementHealthOverviewIssueCount.md | 2 +- .../Get-MgServiceAnnouncementIssue.md | 6 +++--- .../Get-MgServiceAnnouncementIssueCount.md | 2 +- .../Get-MgServiceAnnouncementMessage.md | 6 +++--- .../Get-MgServiceAnnouncementMessageAttachment.md | 6 +++--- .../Get-MgServiceAnnouncementMessageAttachmentArchive.md | 4 ++-- .../Get-MgServiceAnnouncementMessageAttachmentContent.md | 4 ++-- .../Get-MgServiceAnnouncementMessageAttachmentCount.md | 2 +- .../Get-MgServiceAnnouncementMessageCount.md | 2 +- .../Invoke-MgArchiveServiceAnnouncementMessage.md | 4 ++-- .../Invoke-MgFavoriteServiceAnnouncementMessage.md | 4 ++-- .../Invoke-MgMarkServiceAnnouncementMessageRead.md | 4 ++-- .../Invoke-MgMarkServiceAnnouncementMessageUnread.md | 4 ++-- ...gReportServiceAnnouncementHealthOverviewIssueIncident.md | 4 ++-- .../Invoke-MgReportServiceAnnouncementIssueIncident.md | 4 ++-- .../Invoke-MgUnarchiveServiceAnnouncementMessage.md | 4 ++-- .../Invoke-MgUnfavoriteServiceAnnouncementMessage.md | 4 ++-- 20 files changed, 38 insertions(+), 38 deletions(-) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md index 67a981eaa51e4..6aef4ec643c09 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverview.md @@ -562,9 +562,9 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverview) -- [](https://learn.microsoft.com/graph/api/servicehealth-get?view=graph-rest-1.0) -- [](https://learn.microsoft.com/graph/api/serviceannouncement-list-healthoverviews?view=graph-rest-1.0) +- [Get-MgServiceAnnouncementHealthOverview](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverview) +- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealth-get?view=graph-rest-1.0) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncement-list-healthoverviews?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md index afe5627d8497e..faae575022b20 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewCount.md @@ -282,7 +282,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewcount) +- [Get-MgServiceAnnouncementHealthOverviewCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewcount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md index 389b8d35e1372..1d34b6b48416b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssue.md @@ -556,7 +556,7 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissue) +- [Get-MgServiceAnnouncementHealthOverviewIssue](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissue) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md index f3bb8573f163b..86acf8deaab4b 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementHealthOverviewIssueCount.md @@ -343,7 +343,7 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissuecount) +- [Get-MgServiceAnnouncementHealthOverviewIssueCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementhealthoverviewissuecount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md index 7fd5496118cae..18f164294c3da 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssue.md @@ -553,9 +553,9 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissue) -- [](https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0) -- [](https://learn.microsoft.com/graph/api/serviceannouncement-list-issues?view=graph-rest-1.0) +- [Get-MgServiceAnnouncementIssue](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissue) +- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncement-list-issues?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md index b830d121d0218..82bd32a7d47ed 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementIssueCount.md @@ -282,7 +282,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissuecount) +- [Get-MgServiceAnnouncementIssueCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementissuecount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md index e177f53668b88..7d8392f17cc16 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessage.md @@ -553,9 +553,9 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessage) -- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-1.0) -- [](https://learn.microsoft.com/graph/api/serviceannouncement-list-messages?view=graph-rest-1.0) +- [Get-MgServiceAnnouncementMessage](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessage) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-1.0) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncement-list-messages?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md index 2674f6c00d11d..fdf257fe22645 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachment.md @@ -577,9 +577,9 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachment) -- [](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) -- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) +- [Get-MgServiceAnnouncementMessageAttachment](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachment) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md index 694d229016e9d..3042cf7f11850 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -355,8 +355,8 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentarchive) -- [](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) +- [Get-MgServiceAnnouncementMessageAttachmentArchive](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentarchive) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceupdatemessage-list-attachments?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md index a946e461d89f9..d25ede7540cde 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -377,8 +377,8 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcontent) -- [](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) +- [Get-MgServiceAnnouncementMessageAttachmentContent](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcontent) +- [Graph API Reference](https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md index ee934b9d40108..928e9c026f0e3 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageAttachmentCount.md @@ -351,7 +351,7 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcount) +- [Get-MgServiceAnnouncementMessageAttachmentCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessageattachmentcount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md index c00a92cc4d243..a354ce4bc7200 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Get-MgServiceAnnouncementMessageCount.md @@ -282,7 +282,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessagecount) +- [Get-MgServiceAnnouncementMessageCount](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/get-mgserviceannouncementmessagecount) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md index 0d3d0b15faf66..076249459272d 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -384,8 +384,8 @@ BODYPARAMETER ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementhealthoverviewissueincident) -- [](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) +- [Invoke-MgReportServiceAnnouncementHealthOverviewIssueIncident](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementhealthoverviewissueincident) +- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md index 5d50372c79e78..8ca54b3e7f7f1 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -367,8 +367,8 @@ INPUTOBJECT ``: Identity Parameter ## RELATED LINKS -- [](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementissueincident) -- [](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) +- [Invoke-MgReportServiceAnnouncementIssueIncident](https://learn.microsoft.com/powershell/module/microsoft.graph.devices.serviceannouncement/invoke-mgreportserviceannouncementissueincident) +- [Graph API Reference](https://learn.microsoft.com/graph/api/servicehealthissue-incidentreport?view=graph-rest-1.0) diff --git a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md index 4dec33f57c7f1..7c0ad84990cc5 100644 --- a/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Devices.ServiceAnnouncement/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -384,8 +384,8 @@ BODYPARAMETER `