trainer-demo-deploy: Instructions file for GitHub Copilot

.github/instructions/az-powershell.instructions.md

trainer-demo-deploy az-powershell.instructions.md is an instructions file for GitHub Copilot from MicrosoftLearning/trainer-demo-deploy. It costs 612 tokens per session, scanned A, a copy of apex-accelerator powershell.instructions.md, MIT.

A set of PowerShell coding guidelines based on Microsoft recommendations. PowerShell is a command-line and scripting language commonly used to automate Windows and Azure tasks.

In plain words
What is it for?
Writing or reviewing PowerShell cmdlets and scripts with standard names, validation, indentation, and built-in help.
Why use it?
It reduces inconsistent naming, parameter handling, documentation, and script structure in PowerShell projects.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is MicrosoftLearning/trainer-demo-deploy's own configuration. It tells GitHub Copilot how to work on trainer-demo-deploy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything trainer-demo-deploy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MicrosoftLearning/trainer-demo-deploy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MicrosoftLearning/trainer-demo-deploy/main/.github/instructions/az-powershell.instructions.md
Clone the repo
git clone --depth 1 https://github.com/MicrosoftLearning/trainer-demo-deploy

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trainer-demo-deploy az-powershell.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/microsoftlearning/trainer-demo-deploy/az-powershell/github.svg)](https://agentmods.dev/instructions/microsoftlearning/trainer-demo-deploy/az-powershell)
Your own site
<a href="https://agentmods.dev/instructions/microsoftlearning/trainer-demo-deploy/az-powershell"><img src="https://agentmods.dev/badge/instructions/microsoftlearning/trainer-demo-deploy/az-powershell/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trainer-demo-deploy az-powershell.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/microsoftlearning/trainer-demo-deploy/az-powershell"><img src="https://agentmods.dev/badge/instructions/microsoftlearning/trainer-demo-deploy/az-powershell.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 612 This file is loaded in full into every session.
When invoked 612 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00612 $0.00612
Opus 5.5 $0.00245 $0.00245
Sonnet 5.5 $0.00122 $0.00122
Haiku 4.5 $0.00061 $0.00061

Measured today against content hash ea886f051aba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trainer-demo-deploy az-powershell.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to apex-accelerator powershell.instructions.md — 88 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/instructions/az-powershell.instructions.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PowerShell Cmdlet Development Guidelines

Quick Reference

Rule Standard
Naming Verb-Noun with approved verbs (Get-Verb), PascalCase
Parameters PascalCase, singular, descriptive; use ValidateSet/ValidateNotNullOrEmpty
Variables PascalCase (public), camelCase (private); avoid abbreviations
Aliases Never in scripts — use full cmdlet and parameter names
Indentation 4 spaces, opening { on same line as statement

Mandatory Patterns

CmdletBinding and Comment-Based Help

Every public function MUST have [CmdletBinding()] and comment-based help:

function Get-UserProfile {
    <#
    .SYNOPSIS
        Retrieves user profile details.
    .DESCRIPTION
        Fetches the profile for a given username with optional detail level.
    .PARAMETER Username
        The target user's login name.
    .EXAMPLE
        Get-UserProfile -Username 'jdoe' -ProfileType Detailed
    #>
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [string]$Username,

        [Parameter()]
        [ValidateSet('Basic', 'Detailed')]
        [string]$ProfileType = 'Basic'
    )
    process { <# logic #> }
}

ShouldProcess for Destructive Operations

Use SupportsShouldProcess with appropriate ConfirmImpact for any function that modifies system state:

[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]

Pipeline Support

  • Use ValueFromPipeline / ValueFromPipelineByPropertyName
  • Implement Begin/Process/End blocks
  • Return rich objects ([PSCustomObject]), not formatted text
  • Implement -PassThru for action cmdlets that normally produce no output

Error Handling

  • Set $ErrorActionPreference = 'Stop' in begin block
  • Use try/catch with specific exception types
  • In [CmdletBinding()] functions, prefer $PSCmdlet.WriteError() and $PSCmdlet.ThrowTerminatingError() over Write-Error and throw
  • Construct proper ErrorRecord objects with category, target, and exception
  • Use Write-Verbose for operational detail, Write-Warning for warnings, avoid Write-Host except for UI text

Read the full file on GitHub · 79 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 79 lines · 612 tokens per session scan A ea886f051aba

Subscribe to this mod's changes

trainer-demo-deploy az-powershell.instructions.md is an instructions file published in the GitHub repository MicrosoftLearning/trainer-demo-deploy (31 stars, last pushed 11d ago), licensed MIT. It adds 612 tokens to every session, about $0.0024 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to apex-accelerator powershell.instructions.md, differing in 88 lines, and is treated as a copy.

Related

trainer-demo-deploy az-powershell.instructions.md compared with instructions from other repositories

trainer-demo-deploy az-powershell.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trainer-demo-deploy az-powershell.instructions.mdMicrosoftLearning/trainer-demo-deployInstructions file3111d agoMITA612GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode