From 9d8d8c71d2e9d32843437f4441a99186220b35a2 Mon Sep 17 00:00:00 2001 From: btardif Date: Mon, 23 Nov 2026 16:59:48 -0800 Subject: [PATCH] Add Azure PowerShell App Service blog skill Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8b8c75fb-ea3f-4a8a-9f98-0c3cf7b26a36 --- .../SKILL.md | 99 +++++++++++ .../references/article-contract.md | 112 +++++++++++++ .../references/release-research.md | 158 ++++++++++++++++++ 3 files changed, 369 insertions(+) create mode 100644 .github/skills/azure-powershell-app-service-blog/SKILL.md create mode 100644 .github/skills/azure-powershell-app-service-blog/references/article-contract.md create mode 100644 .github/skills/azure-powershell-app-service-blog/references/release-research.md diff --git a/.github/skills/azure-powershell-app-service-blog/SKILL.md b/.github/skills/azure-powershell-app-service-blog/SKILL.md new file mode 100644 index 0000000000..f9ab03e590 --- /dev/null +++ b/.github/skills/azure-powershell-app-service-blog/SKILL.md @@ -0,0 +1,99 @@ +--- +name: azure-powershell-app-service-blog +description: Generate and stage Azure App Service Team Blog posts from Azure PowerShell (Az) releases. Use when asked to audit an Az or Az.Websites version or month, identify App Service cmdlet changes, check existing PowerShell blog coverage, enrich release content from the product-planning board, or draft an App Service Azure PowerShell release post. +--- + +# Azure PowerShell App Service Blog + +Generate a factual, customer-focused App Service Team Blog post for one or more Azure PowerShell (Az) releases. Research the exact release boundary, classify `Az.Websites` changes using the module ChangeLog, check existing blog coverage, enrich customer framing from product planning, verify every shipped claim, write the post, and stage it for review. + +Read these references before starting: + +- [Release research](references/release-research.md) +- [Article contract](references/article-contract.md) + +## Required inputs and defaults + +- Accept an Az version such as `16.5`, `16.5.0`, or `v16.5.0-November2026`; an `Az.Websites` version such as `4.3.0`; a month such as `2026/11`; or a range such as "the last three months". +- Normalize Az versions to `X.Y.Z` and resolve the matching `vX.Y.Z-MonthYYYY` release tag. +- If given a month, resolve every Az release published for that month from the official release notes. A month can contain more than one Az release, such as a minor release and a major breaking-change release. +- If given an `Az.Websites` version, resolve the first Az release whose tag ships that module version. +- Default to Az rollup releases. Cover standalone or preview module releases only when the user requests them. +- Use `Byron Tardif` as `author_name` unless the user specifies another author. +- Work only in the current App Service Blog repository and preserve unrelated staged or unstaged changes. + +## Non-negotiable publication rules + +1. **Keep the article App Service-only.** + - Include customer behavior for App Service cmdlets in `Az.Websites`, such as `*-AzWebApp*`, `*-AzWebAppSlot*`, `*-AzAppServicePlan*`, `*-AzAppServiceEnvironment*`, and App Service certificate, binding, backup, and access-restriction cmdlets. + - Exclude Static Web Apps (`*-AzStaticWebApp*`), `Az.Functions` and Function Apps, Flex Consumption, and `Az.LogicApp` and Logic Apps from both the article and examples. + - A change in `src/Websites` is not sufficient if its customer surface belongs to another service. + +2. **Require a customer-facing ChangeLog entry.** + - Azure PowerShell PR titles do not use a reliable service marker. The `Az.Websites` `ChangeLog.md` entry under the version shipped by the target tag is the customer-facing signal. + - Exclude changes with no ChangeLog entry, and entries that describe only build, test, code-scanning, generation, or refactoring work with no customer behavior. Keep them in the internal ledger. + - The entry is necessary, not sufficient. Verification can still block a customer-facing change. + +3. **Prove release inclusion.** + - The PR's merged commit must be present in the target Az release tag and absent from the previous release tag. + - Confirm the `Az.Websites` module version in the target tag's `Az.Websites.psd1`, and confirm the change in that version's ChangeLog section and the official Az release notes. + - An Az release with no `Az.Websites` section ships no App Service cmdlet changes. + - Never use merge date, PR state, the ChangeLog `Upcoming Release` section, or release-note wording alone as proof. + +4. **Treat pinned public implementation as the shipping authority.** + - Verify cmdlet parameters, parameter sets, help, implementation, and tests at the target tag. + - Treat PR descriptions and planning-board statements as intent, not proof. + - Withhold a claim when tagged source, tests, SDK models, platform documentation, or public availability disagree. + - State preview status, operating-system scope, SKU and regional limits, platform dependencies, and breaking changes explicitly. + +5. **Avoid duplicate coverage.** + - Search `_posts` for existing Azure PowerShell posts and recaps before drafting. + - Do not republish changes already covered unless the user asks for an update. Reference the earlier post instead. + +6. **Use private planning context safely.** + - Search `coreai-microsoft/azure-app-service` by cmdlet, parameter, property, and customer outcome. + - Use problem statements and “why it matters” material to strengthen customer framing. + - Treat “We need to” statements and timeline comments as desired or tentative behavior until public evidence confirms shipment. + - Never put private issue links, internal system links, private quotations, or unshipped roadmap details in the public post. + - Keep PM, workstream, SME, and reviewer discoveries in the private evidence ledger. + +7. **Use canonical terminology.** + - Always write `SCM (Kudu)`. + - Never write `KuduLite`, `Kudu+`, or standalone `Kudu` in prose. + - Do not alter literal cmdlet names, parameter names, API paths, settings, or quoted output that legitimately contain another form. + +## Workflow + +1. Resolve the target and previous Az release tags, immutable commit SHAs, `Az.Websites` versions, and release dates. +2. Check existing blog coverage for those releases. +3. Build a bounded candidate inventory from the tagged `Az.Websites` ChangeLog, the release notes, and PR metadata. +4. Apply the ChangeLog and App Service cmdlet-scope filters. +5. Search the planning board only for surviving customer-facing candidates. +6. Verify every candidate against tag-pinned source, help, tests, and contemporaneous public documentation. +7. Record include, exclude, and blocked decisions in a private evidence ledger. +8. If no verified, uncovered App Service changes survive, do not create a post. Report that the release produced no article. +9. Group related changes by customer outcome and draft the article using the article contract. +10. Open the repository Markdown for review when an editor surface is available. +11. Re-read the file from disk after review because user edits may have changed it. +12. Validate and stage only the generated post. Do not commit, push, or create a pull request unless explicitly requested. + +## Research stopping rule + +Do not perform open-ended PR archaeology. Stop when all of these are true: + +- Every `Az.Websites` ChangeLog entry in scope maps to a merged PR. +- Every mapped PR has an include, exclude, or blocked decision. +- Every included claim has tag-pinned implementation, help, or test evidence. +- Existing blog coverage has been checked. +- Relevant planning matches have been classified as exact, partial, weak, or none. +- Known documentation or rollout conflicts are recorded. + +## Expected handoff + +Provide: + +1. The staged post path, or a clear no-post decision. +2. A compact ledger of included, excluded, blocked, and already-covered changes. +3. Material rollout, preview, breaking-change, or evidence caveats. + +Keep the public article free of research notes and private planning references. diff --git a/.github/skills/azure-powershell-app-service-blog/references/article-contract.md b/.github/skills/azure-powershell-app-service-blog/references/article-contract.md new file mode 100644 index 0000000000..619ff6da9f --- /dev/null +++ b/.github/skills/azure-powershell-app-service-blog/references/article-contract.md @@ -0,0 +1,112 @@ +# Article contract + +## Filename and front matter + +Name the post after the newest Az release it covers: + +```text +_posts/YYYY-MM-DD-azure-powershell-X-Y-app-service-updates.md +``` + +- Use the newest covered release's GitHub `publishedAt` date, converted to US Pacific time, unless the user specifies a publication date. +- For an `X.Y.0` release, omit the patch component from the slug. Keep any non-zero patch, for example `azure-powershell-16-5-1`. +- Confirm the filename does not collide with an existing post. + +For a single release, start with: + +```yaml +--- +title: "What's new for Azure App Service in Azure PowerShell Az X.Y.Z" +author_name: "Byron Tardif" +toc: true +toc_sticky: true +--- +``` + +For a multi-release recap, use a month range, for example `"What's new for Azure App Service in Azure PowerShell: September-November 2026"`. + +Do not repeat the title as an H1 in the body. + +## Opening + +- Link the first body mention of each Az version to its GitHub release, for example `https://github.com/Azure/azure-powershell/releases/tag/vX.Y.Z-MonthYYYY`. +- Name the `Az.Websites` module version that contains the changes. +- Use one or two information-dense paragraphs that identify the major customer outcomes, breaking changes, and important scope. +- For a recap, add a table with these columns: monthly release, Az version, `Az.Websites` version, and App Service updates. +- Do not add a closing `## Summary`; strengthen the introduction instead. +- Do not link to articles or documentation that did not exist on the post's release date. + +Example: + +```markdown +[Azure PowerShell Az X.Y.Z](https://github.com/Azure/azure-powershell/releases/tag/vX.Y.Z-MonthYYYY) adds ... The App Service cmdlets are in the `Az.Websites` module, version N.N.N. +``` + +## Body + +- Organize H2 sections by customer outcome, not by PR number, release, or implementation file. +- Use benefit-first, sentence-style headings. +- Group closely related changes into one section. +- Explain what changed, why it matters, how to use it, and material limitations. +- Use short, verified `powershell` examples with backtick line continuations and quoted placeholders such as `""` and `""`. +- Use a table when introducing several related cmdlets. +- State breaking changes before migration guidance. +- Mark preview cmdlets and parameters explicitly. +- Preserve Linux-only, Windows-only, slot, region, SKU, and rollout boundaries. +- Distinguish “request accepted” from operation completion. Do not confuse service-side asynchronous behavior with PowerShell `-AsJob`. +- Explain update semantics when they matter: omitted parameters preserved, collection parameters replaced, and empty arrays cleared. +- Recommend `-WhatIf` for disruptive operations when the cmdlet supports it. +- Treat returned credentials and secrets as sensitive, and never display them in examples. +- Use `SCM (Kudu)` for every prose reference. +- Exclude Static Web Apps, Function Apps, Flex Consumption, and Logic Apps. +- Do not expose private planning links or internal terminology. + +Add first-party Microsoft Learn links when they materially help the reader and were public by the article date. Do not create feature-specific mandatory links from one-off editorial feedback. + +## Release section + +End the article with: + +````markdown +## Get the release + +Use Az X.Y.Z / Az.Websites N.N.N or later for the capabilities in this post. Update using the same installation method you originally used. For a PowerShellGet-based installation: + +```powershell +Update-Module -Name Az +``` + +Start a new PowerShell session after updating, then check the available App Service module versions: + +```powershell +Get-Module -ListAvailable Az.Websites | + Select-Object Name, Version +``` +```` + +Do not add a summary after this section. + +## Review and staging + +Before staging: + +1. Re-read the file from disk after editor or canvas review. +2. Confirm the filename date and version match the newest covered release. +3. Confirm the title, release links, and `Az.Websites` versions agree with the tagged manifest and release notes. +4. Confirm every published change has a customer-facing `Az.Websites` ChangeLog entry in a shipped version section. +5. Confirm no change duplicates an earlier post unless the user requested an update. +6. Confirm no Static Web Apps, Function App, Flex Consumption, or Logic Apps content remains. +7. Confirm prose contains only `SCM (Kudu)`, not standalone variants. +8. Confirm there is no `## Summary`. +9. Confirm code examples use tag-verified cmdlets, parameters, and values. +10. Run `git diff --check`. +11. Run the repository's existing Jekyll validation only when its dependencies are already available. Do not install Ruby dependencies from an unapproved source. + +Stage only the generated post: + +```text +git add -- _posts/YYYY-MM-DD-azure-powershell-X-Y-app-service-updates.md +git diff --cached --check +``` + +Do not overwrite or unstage unrelated user changes. Do not commit, push, or create a pull request unless requested. diff --git a/.github/skills/azure-powershell-app-service-blog/references/release-research.md b/.github/skills/azure-powershell-app-service-blog/references/release-research.md new file mode 100644 index 0000000000..6eb2ca51b4 --- /dev/null +++ b/.github/skills/azure-powershell-app-service-blog/references/release-research.md @@ -0,0 +1,158 @@ +# Release research + +Use authenticated GitHub tools or `gh`. Prefer structured API responses and exact tag boundaries over broad web search. + +## 1. Resolve the release + +Use these sources: + +- Az releases: `Azure/azure-powershell`, tagged `vX.Y.Z-MonthYYYY` +- Module source: `src/Websites` in `Azure/azure-powershell` +- Module ChangeLog: `src/Websites/Websites/ChangeLog.md` +- Module manifest: `src/Websites/Websites/Az.Websites.psd1` +- Az release notes source: + `MicrosoftDocs/azure-docs-powershell/docs-conceptual/azps-X.Y.Z/release-notes-azureps.md` +- Breaking-change guidance: `migrate-az-X.0.0.md` and `upcoming-breaking-changes.md` in the same docs folder + +For the target and previous Az release: + +1. Record the official Az version, the release-notes heading (for example, `16.5.0 - November 2026`), and the GitHub release `publishedAt` timestamp. +2. Resolve both tag refs to immutable commit SHAs. +3. Read `ModuleVersion` from `Az.Websites.psd1` at each tag. If the versions match, the target release has no `Az.Websites` changes. +4. Record the exact base-exclusive, target-inclusive boundary. +5. Treat a major release (`X.0.0`) as a breaking-change release, and check its migration guide for `Az.Websites`. + +Useful commands: + +~~~text +gh release list --repo Azure/azure-powershell --limit 20 +gh release view vX.Y.Z-MonthYYYY --repo Azure/azure-powershell --json name,tagName,publishedAt,url,body +# Tag refs may be annotated; if the ref object's type is "tag", dereference it via /git/tags/{sha} to get the commit SHA. +gh api repos/Azure/azure-powershell/git/ref/tags/vX.Y.Z-MonthYYYY +gh api "repos/Azure/azure-powershell/contents/src/Websites/Websites/Az.Websites.psd1?ref=vX.Y.Z-MonthYYYY" -H "Accept: application/vnd.github.raw" +gh api "repos/Azure/azure-powershell/contents/src/Websites/Websites/ChangeLog.md?ref=vX.Y.Z-MonthYYYY" -H "Accept: application/vnd.github.raw" +gh api repos/Azure/azure-powershell/compare/vPREV...vTARGET +~~~ + +In the GitHub release body, the `#### Az.Websites N.N.N` section lists the module changes. If that section is missing, the release has no App Service cmdlet changes. + +Release tags are cut from release branches. When they diverge from `main`: + +- Use the target tag's ChangeLog `## Version N.N.N` section as the candidate index. +- Verify each candidate's merged commit, or its cherry-pick, is contained in the target tag. +- Ensure the commit was not already contained in the previous release tag. +- Do not infer inclusion from a three-dot comparison alone. +- Never treat `## Upcoming Release` entries as shipped. + +## 2. Check existing coverage + +Search the blog before drafting: + +```text +_posts/*azure-powershell* +_posts/*.md containing "Az.Websites" or "Azure PowerShell" +``` + +Record which Az and `Az.Websites` versions earlier posts and roll-ups already cover. Mark covered changes as **Already covered** in the ledger. + +## 3. Discover candidates + +Search the target ChangeLog section, the release notes, and the bounded comparison for changes under `src/Websites`. Search `Az.Functions`, `Az.LogicApp`, and `StaticWebApp` only to identify and explicitly exclude them. + +For each change, collect: + +| Field | Purpose | +|---|---| +| ChangeLog entry and module version | Customer-facing classification | +| PR number and exact title | Traceability | +| Merge commit | Tag containment | +| Contributor | Reviewer or acknowledgment context | +| Changed paths | Cmdlet relevance | +| Cmdlets and parameters | Customer-facing surface | +| Help examples | Safe article examples | +| Tests | Shipped behavior and edge cases | + +Find PRs for a ChangeLog entry by searching changed paths and entry text: + +```text +gh pr list --repo Azure/azure-powershell --state merged --search "Websites in:title" --json number,title,mergedAt +gh pr view PR --repo Azure/azure-powershell --json number,title,body,url,author,mergedAt,mergeCommit,baseRefName,files +``` + +PR titles vary (`[Websites]`, `[Az.Websites]`, `[PS] Websites`, or no prefix). Use them for discovery, not classification. + +## 4. Apply classification + +Use this order: + +1. Is the merged commit in the target tag and absent from the previous release tag? +2. Does the target `Az.Websites` ChangeLog version section contain a customer-facing entry for it? +3. Is the customer surface an App Service cmdlet, and not Static Web Apps, Function Apps, Flex Consumption, or Logic Apps? +4. Has an earlier blog post already covered it? +5. Does tag-pinned source show the claimed behavior? + +Possible decisions: + +- **Include**: customer-facing, in scope, tag-contained, uncovered, and verified. +- **Exclude — not customer-facing**: no ChangeLog entry, or an entry for build, test, code-scanning, generation, or refactoring work only. +- **Exclude — scope**: Static Web Apps, Function Apps, Flex Consumption, Logic Apps, or unrelated surface. +- **Exclude — boundary**: not in the target tag, already in the previous tag, or only in `Upcoming Release`. +- **Already covered**: published in an earlier blog post. +- **Blocked**: eligible and in the boundary, but evidence conflicts or the functionality is unsafe to claim. + +## 5. Enrich from product planning + +Search `coreai-microsoft/azure-app-service` using the exact cmdlet, parameter, property, and customer outcome. Avoid downloading the entire board. + +Capture privately: + +- Workstream and PM +- Problem statement +- Why the change matters +- Customer gaps +- “We need to” goals +- Dependencies +- Timeline comments +- Potential SMEs or reviewers + +Classify each match: + +- **Exact**: same cmdlet or property, and same shipped outcome +- **Partial**: same problem, but the release implements only part of the requested outcome +- **Weak**: adjacent context only +- **None** + +Only exact or carefully bounded partial matches should shape the article. Never turn a planning goal into a release claim. + +## 6. Verify claims + +At the target tag, inspect: + +1. `src/Websites/Websites/help/.md` for syntax, parameter sets, examples, and documented limitations. +2. `src/Websites/Websites/Cmdlets/**` for `[Cmdlet]` and `[Parameter]` attributes, parameter sets, `ValidateSet` values, defaults, `SupportsShouldProcess`, `-AsJob`, and `-PassThru` behavior. +3. Preview and breaking-change attributes, such as `CmdletPreview`, `CmdletParameterBreakingChange`, `CmdletOutputBreakingChange`, and `GenericBreakingChange`. +4. `Utilities`, `Models.WebApp`, `Strategies`, and `Validations` for actual behavior and error handling. +5. `src/Websites/Websites.Autorest/custom` and `docs` for generated cmdlets. Confirm the cmdlet is an App Service cmdlet before including it. +6. `src/Websites/Websites.Test/ScenarioTests` and `SessionRecords` for supported boundaries and rollout behavior. +7. `src/Websites/Websites.Management.Sdk` and `Az.Websites.psd1` for the Microsoft.Web API version, exported cmdlets, and the required `Az.Accounts` version. + +Then compare with contemporaneous public Microsoft documentation. A later `learn.microsoft.com/powershell/module/az.websites` page is not immutable evidence for an older release. + +Block or narrow claims when: + +- Public product documentation disagrees with the module ChangeLog or release notes. +- A platform endpoint or feature is still rolling out. +- The pinned SDK or API version cannot serialize the new property. +- Tests prove only discovery or acceptance, not completion or availability. +- A ChangeLog entry overstates what the cmdlet returns. + +Examples in the article must come from tag-pinned help, tests, or implementation. Never invent a plausible PowerShell parameter. + +## 7. Build the private ledger + +Use a compact table: + +| Change | Az / Az.Websites | PR | Scope | Decision | Public evidence | Planning match | Caveat | +|---|---|---|---|---|---|---|---| + +Do not write the ledger into `_posts`. Keep it in the response or session artifacts.