-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the MvRAdaptiveCards PowerShell Module Wiki! This comprehensive guide will help you master creating, posting, and working with Adaptive Cards in PowerShell.
Work in progress: This wiki is actively being developed. Some sections may be incomplete or under construction. Check back soon for updates!
MvRAdaptiveCards is a feature rich PowerShell module that provides a framework of easy-to-use functions for working with Adaptive Cards. If you're familiar with PSWriteHTML, you'll find the approach in MvRAdaptiveCards quite similar - it uses a declarative, scriptblock-based syntax that makes creating complex cards intuitive and maintainable.
- β Declarative Syntax - Build cards using PowerShell scriptblocks, similar to PSWriteHTML
- β Rich Elements - Support for text, images, inputs, charts, icons, badges, and more
- β PowerShell integration - Leverage PowerShell's capabilities to create dynamic and data-driven cards usable to prompt the local user
- β Multiple Display Methods - EdgeApp windows, Teams integration, Browser, Online designer
- β
Template System - Dynamic content with template tags like
{{variable}} - β Construct support - Pre-defined card constructs for common patterns like wizards and notificationss
- β Chart Integration - Donut, gauge, horizontal bar charts (with Chart.js for local rendering)
- β Fluent UI Icons - Built-in support for Microsoft Fluent UI icons for local rendering
- β Custom Extensions - JavaScript/CSS extension system allowing for local sollutions to render the latest Adaptive Card features
Install the module from the PowerShell Gallery using the following command:
Install-Module -Name MvRAdaptiveCardsNote: This module is compatible with PowerShell 5.1, however, for the best experience, using it with PowerShell 7.x or later is recommended.
Compatible with PowerShell 5.1 and later versions.
New-AdaptiveCard {
New-CardTextBlock -Text "Hello, Adaptive Cards!" -Size Large -Weight Bolder
New-CardTextBlock -Text "Built with PowerShell" -Wrap
New-CardImage -Url "https://adaptivecards.io/content/cats/1.png" -Size Medium
New-CardActionSet -Actions {
New-CardActionOpenUrl -Title "Learn More" -Url "https://adaptivecards.io"
}
} | Get-CardResponse- Card structure
- Elements vs Containers vs Actions
- Scriptblock pattern
- Template system
- Styling and themes
-
Card Creation:
New-AdaptiveCard - Elements: Text, Images, Icons, Charts, Progress bars
- Containers: Columns, Container, FactSet, Table
- Inputs: Text, Date, Time, Number, Toggle, ChoiceSet
- Actions: Submit, OpenUrl, ToggleVisibility, ShowCard
- Charts: Donut, Gauge, HorizontalBar
- Templates: Template tags, dynamic content
- Simple notifications
- Interactive forms
- Multi-page wizards
- Data dashboards
- Status reports
- Team notifications
- Custom extensions (JavaScript/CSS)
- Hidden element management
- Toggle visibility patterns
- Chart customization
- Icon rendering
- Performance optimization
For help and support, check out the following resources:
- Issues: GitHub Issues
- Discussions: GitHub Discussions If you have questions or need assistance, feel free to start a discussion or open an issue on GitHub.
- PowerShell Gallery: MvRAdaptiveCards
Contributions are welcome! Please check the main repository for contribution guidelines.
Last updated: November 2025
MvRAdaptiveCards PowerShell Module