Azure Citadel
  • Blogs

  • Azure Arc
    • Overview
    • Azure Arc-enabled Kubernetes
      • Prereqs
      • Background
      • Deploy Cluster
      • Connect to Arc
      • Enable GitOps
      • Deploy Application
      • Enable Azure AD
      • Enforce Policy
      • Enable Monitoring
      • Enable Azure Defender
      • Enable Data Services
      • Enable Application Delivery
    • Azure Arc-enabled Servers
      • Prereqs
      • Scenario
      • Hack Overview
      • Azure Landing Zone
      • Arc Pilot resource group
      • Azure Monitoring Agent
      • Additional policy assignments
      • Access your on prem VMs
      • Create onboarding scripts
      • Onboarding using scripts
      • Inventory
      • Monitoring
      • SSH
      • Windows Admin Center
      • Governance
      • Custom Script Extension
      • Key Vault Extension
      • Managed Identity
    • Useful Links
  • Azure CLI
    • Install
    • Get started
    • JMESPATH queries
    • Integrate with Bash
  • Azure landing zone
    • ALZ Accelerator
      • Prereqs
      • Elevate
      • Bootstrap
      • Demote
      • Components
    • Deploy an Azure landing zone
      • Create an initial ALZ config
      • Add a local override library
      • Test locally
      • Run through the CI/CD workflow
    • Libraries
      • What is a library?
      • Policies, Assignments and Roles
      • Archetypes, Overrides and Architecture
      • Metadata and Policy Default Values
      • Custom libraries
    • Example Library Configs
      • Azure landing zone library
      • Azure landing zone library with overrides
  • Azure Lighthouse
    • Minimal Lighthouse definition
    • Using service principals
    • Privileged Identity Management
  • Azure Policy
    • Azure Policy Basics
      • Policy Basics in the Azure Portal
      • Creating Policy via the CLI
      • Deploy If Not Exists
      • Management Groups and Initiatives
    • Creating Custom Policies
      • Customer scenario
      • Policy Aliases
      • Determine the logic
      • Create the custom policy
      • Define, assign and test
  • Marketplace
    • Introduction
      • Terminology
      • Offer Types
    • Partner Center
    • Offer Type
    • Publish a VM Offer HOL
      • Getting Started
      • Create VM Image
      • Test VM Image
      • VM Offer with SIG
      • VM Offer with SAS
      • Publish Offer
      • Other VM Resources
    • Publish a Solution Template HOL
      • Getting Started
      • Create ARM Template
      • Validate ARM Template
      • Create UI Definition
      • Package Assets
      • Publish Offer
    • Publish a Managed App HOL
      • Getting Started
      • Create ARM Template
      • Validate ARM Template
      • Create UI Definition
      • Package Assets
      • Publish Offer
    • Managed Apps with AKS HOL
    • Other Managed App Resources
    • SaaS Offer HOLs
    • SaaS Offer Video Series
      • Video 1 - SaaS Offer Overview
      • Video 2 - Purchasing a SaaS Offer
      • Video 3 - Purchasing a Private SaaS Plan
      • Video 4 - Publishing a SaaS Offer
      • Video 5 - Publishing a Private SaaS Plan
      • Video 6 - SaaS Offer Technical Overview
      • Video 7 - Azure AD Application Registrations
      • Video 8 - Using the SaaS Offer REST Fulfillment API
      • Video 9 - The SaaS Client Library for .NET
      • Video 10 - Building a Simple SaaS Landing Page in .NET
      • Video 11 - Building a Simple SaaS Publisher Portal in .NET
      • Video 12 - SaaS Webhook Overview
      • Video 13 - Implementing a Simple SaaS Webhook in .NET
      • Video 14 - Securing a Simple SaaS Webhook in .NET
      • Video 15 - SaaS Metered Billing Overview
      • Video 16 - The SaaS Metered Billing API with REST
  • Microsoft Fabric
    • Theory
    • Prereqs
    • Fabric Capacity
    • Set up a Remote State
    • Create a repo from a GitHub template
    • Configure an app reg for development
    • Initial Terraform workflow
    • Expanding your config
    • Configure a workload identity
    • GitHub Actions for Microsoft Fabric
    • GitLab pipeline for Microsoft Fabric
  • Packer & Ansible
    • Packer
    • Ansible
    • Dynamic Inventories
    • Playbooks & Roles
    • Custom Roles
    • Shared Image Gallery
  • Partner Admin Link
    • Understanding PAL
    • Service principals with credentials
    • PAL tagging with a service principal
    • CI/CD pipelines & OpenID Connect
    • Using AzAPI in Terraform
    • User and guest IDs
    • Azure Lighthouse & PAL
    • PAL FAQ
  • REST API
    • REST API theory
    • Using az rest
  • Setup
  • Sovereign landing zone
    • ALZ Accelerator
      • Prereqs
      • Elevate
      • Bootstrap
      • Demote
      • Components
    • Deploy Sovereign landing zone
      • Create an initial SLZ config
      • Add a local override library
      • Test locally
      • Run through the CI/CD workflow
    • Libraries
      • What is a library?
      • Policies, Assignments and Roles
      • Archetypes, Overrides and Architecture
      • Metadata and Policy Default Values
      • Custom libraries
    • Reference Library Configs
      • Sovereign landing zone
      • Sovereign landing zone library with overrides
      • SLZ extended with a country pack
  • Terraform
    • Fundamentals
      • Initialise
      • Format
      • Validate
      • Plan
      • Apply
      • Adding resources
      • Locals and outputs
      • Managing state
      • Importing resources
      • Destroy
    • Get set up for Terraform
      • Cloud Shell
      • macOS
      • Windows with PowerShell
      • Windows with Ubuntu in WSL2
    • Using AzAPI
      • Using the REST API
      • azapi_resource
      • Removing azapi_resource
      • azapi_update_resource
      • Data sources and outputs
      • Removing azapi_update_resource
  • Virtual Machines
    • Azure Bastion with native tools & AAD
    • Managed Identities

  • About
  • Archive
  1. Home
  2. About
  3. Shortcodes
  4. output
output
output
code
details
flash
gist
img
output
raw
tabs and modes
youtube
  • Hugo shortcode
  • Usage with different languages
    • Parameters
    • Usage variants
  • Example with JSON output
  • Example with CLI output
  • Example with custom label
  • Example with no label
  • Example with collapsible details
  • Example with custom collapsible label
  • Visual distinction

output

Custom. Display expected command output with visual distinction from input commands.

Table of Contents

  • Hugo shortcode
  • Usage with different languages
    • Parameters
    • Usage variants
  • Example with JSON output
  • Example with CLI output
  • Example with custom label
  • Example with no label
  • Example with collapsible details
  • Example with custom collapsible label
  • Visual distinction

Hugo shortcode

The output shortcode creates a visually distinct section for displaying expected command output. It adds an “Expected output:” label and applies a dark grey background to code blocks within it, helping differentiate command input from expected results.

{{< output >}}
Your expected output content goes here.
You can include code blocks with syntax highlighting.
{{< /output >}}

Usage with different languages

The shortcode supports all standard markdown code block syntax highlighting. You can include any language-specific code blocks within the output shortcode, and they will render with the dark grey background to distinguish them from command input.

Parameters

The output shortcode accepts two optional parameters:

  1. Details title: If provided, wraps the output in a collapsible details section
  2. Label text (default: “Example output:”):
    • Use custom text to replace the default label
    • Supports markdown formatting (e.g., backticks for code)
    • Use "-" to hide the label entirely

Usage variants

{{< output >}}                                       <!-- Default label -->
{{< output "" "API Response:" >}}                   <!-- Custom label -->
{{< output "" "-" >}}                              <!-- No label -->
{{< output "Show output" >}}                        <!-- Collapsible with default label -->
{{< output "Click to expand" "Results:" >}}        <!-- Collapsible with custom label -->
{{< output "Show details" "-" >}}                  <!-- Collapsible with no label -->
{{< output "Expand" "Example `az` output:" >}}     <!-- Collapsible with markdown in label -->

Example with JSON output

Example output:
{
    "name": "@microsoft/workiq",
    "version": "0.2.8",
    "description": "MCP server for Microsoft 365 Copilot",
    "keywords": ["copilot", "m365", "mcp"],
    "bin": {
        "workiq": "./bin/workiq"
    }
}

Example with CLI output

Example output:
workiq.cmd ask --question "Who is my manager?"

Query: Who is my manager?
Result: Based on your organizational data, your manager is John Smith (john.smith@company.com).

Example with custom label

API Response:
{
    "success": true,
    "data": {
        "userId": "123",
        "email": "user@example.com"
    }
}

Example with no label

Connection established successfully
Authenticated as: admin@domain.com
Ready to proceed...

Example with collapsible details

Click to see full npm output
Example output:
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher
npm WARN deprecated request@2.88.2: request has been deprecated

added 847 packages, and audited 848 packages in 45s
found 0 vulnerabilities

Example with custom collapsible label

Show debug output
Console log:
[DEBUG] Starting application initialization
[INFO] Loading configuration from config.json
[DEBUG] Database connection established
[INFO] Server listening on port 3000
[DEBUG] All middleware loaded successfully

Visual distinction

The output shortcode provides clear visual separation between:

  • Command input: Standard code blocks with the theme’s default styling
  • Expected output: Dark grey background (#161b22) matching the theme’s subtle canvas color

This helps readers quickly distinguish between what they should type and what they should expect to see.

Source: https://www.azurecitadel.com/about/shortcodes/output/
Printed:
img output raw