Templates/Azs-TeamsIntegration-Update-InProgress.json

{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "items": [
                        {
                            "type": "Container",
                            "spacing": "None",
                            "style": "accent",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "size": "ExtraLarge",
                                    "weight": "Bolder",
                                    "color": "Light",
                                    "text": "${Banner}",
                                    "wrap": true
                                },
                                {
                                    "type": "ColumnSet",
                                    "isVisible": "${ShowProgress}",
                                    "columns": [
                                        {
                                            "type": "Column",
                                            "width": "stretch",
                                            "items": [
                                                {
                                                    "type": "FactSet",
                                                    "facts": [
                                                        {
                                                            "title": "Status",
                                                            "value": "${Update.Status}"
                                                        },
                                                        {
                                                            "title": "Duration",
                                                            "value": "${Update.Duration}"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "FactSet",
                                                    "facts": [
                                                        {
                                                            "title": "Scoped Repair",
                                                            "value": "${Update.UpdateProgress.ScopedRepairStatus}"
                                                        }
                                                    ],
                                                    "isVisible": "${ShowScopedRepair}"
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Column",
                                            "width": "stretch",
                                            "items": [
                                                {
                                                    "type": "ColumnSet",
                                                    "columns": [
                                                        {
                                                            "type": "Column",
                                                            "width": 1,
                                                            "items": [
                                                                {
                                                                    "type": "TextBlock",
                                                                    "text": "Completed",
                                                                    "weight": "Bolder"
                                                                }
                                                            ]
                                                        },
                                                        {
                                                            "type": "Column",
                                                            "items": [
                                                                {
                                                                    "type": "TextBlock",
                                                                    "horizontalAlignment": "Right",
                                                                    "size": "Medium",
                                                                    "text": "${Update.Summary.Completed}"
                                                                }
                                                            ],
                                                            "width": 1
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "ColumnSet",
                                                    "spacing": "None",
                                                    "columns": [
                                                        {
                                                            "type": "Column",
                                                            "items": [
                                                                {
                                                                    "type": "TextBlock",
                                                                    "text": "In Progress",
                                                                    "isSubtle": true,
                                                                    "wrap": true,
                                                                    "weight": "Bolder"
                                                                }
                                                            ],
                                                            "width": 1
                                                        },
                                                        {
                                                            "type": "Column",
                                                            "width": 1,
                                                            "items": [
                                                                {
                                                                    "type": "TextBlock",
                                                                    "horizontalAlignment": "Right",
                                                                    "text": "${Update.Summary.InProgress}",
                                                                    "isSubtle": true,
                                                                    "wrap": true
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "ColumnSet",
                                                    "spacing": "None",
                                                    "columns": [
                                                        {
                                                            "type": "Column",
                                                            "items": [
                                                                {
                                                                    "type": "TextBlock",
                                                                    "text": "Failed",
                                                                    "isSubtle": true,
                                                                    "weight": "Bolder"
                                                                }
                                                            ],
                                                            "width": 1
                                                        },
                                                        {
                                                            "type": "Column",
                                                            "width": 1,
                                                            "items": [
                                                                {
                                                                    "type": "TextBlock",
                                                                    "horizontalAlignment": "Right",
                                                                    "text": "${Update.Summary.Failed}",
                                                                    "isSubtle": true
                                                                }
                                                            ]
                                                        }
                                                    ]
                                                }
                                            ],
                                            "isVisible": "${ShowProgress}"
                                        }
                                    ]
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "[Join Bridge](${BridgeInformation})",
                                    "isVisible": "${ShowBridge}",
                                    "separator": true
                                },
                                {
                                    "type": "Container",
                                    "isVisible": "${showPrepProgress}",
                                    "items": [
                                        {
                                            "type": "ColumnSet",
                                            "columns": [
                                                {
                                                    "type": "Column",
                                                    "width": "stretch",
                                                    "items": [
                                                        {
                                                            "type": "TextBlock",
                                                            "text": "Name",
                                                            "weight": "Bolder"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Column",
                                                    "width": "100px",
                                                    "horizontalAlignment": "Right",
                                                    "items": [
                                                        {
                                                            "type": "TextBlock",
                                                            "text": "Status",
                                                            "weight": "Bolder",
                                                            "horizontalAlignment": "Right"
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "type": "ColumnSet",
                                            "$data": "${Update.Prep}",
                                            "columns": [
                                                {
                                                    "type": "Column",
                                                    "width": "stretch",
                                                    "items": [
                                                        {
                                                            "type": "TextBlock",
                                                            "text": "${Name}",
                                                            "weight": "Bolder"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Column",
                                                    "width": "100px",
                                                    "horizontalAlignment": "Right",
                                                    "items": [
                                                        {
                                                            "type": "TextBlock",
                                                            "text": "${Status}",
                                                            "weight": "Bolder",
                                                            "horizontalAlignment": "Right"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ],
                            "bleed": true,
                            "height": "stretch"
                        }
                    ],
                    "width": 45,
                    "height": "stretch"
                }
            ],
            "height": "stretch"
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "In Progress",
                    "size": "Large",
                    "weight": "Bolder",
                    "color": "Accent"
                },
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "115px",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Step",
                                    "weight": "Bolder"
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Name",
                                    "weight": "Bolder"
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "70px",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Duration",
                                    "weight": "Bolder",
                                    "horizontalAlignment": "Right"
                                }
                            ],
                            "horizontalAlignment": "Right"
                        }
                    ]
                },
                {
                    "$data": "${Update.UpdateProgress.StepsInProgress}",
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "115px",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "${FullStepIndex}",
                                    "weight": "Bolder"
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "${Name}",
                                    "weight": "Bolder",
                                    "wrap": true
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "70px",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "${duration}",
                                    "weight": "Bolder",
                                    "horizontalAlignment": "Right"
                                }
                            ],
                            "horizontalAlignment": "Right"
                        }
                    ]
                }
            ],
            "separator": true,
            "isVisible": "${ShowProgress}"
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "FactSet",
                    "facts": [
                        {
                            "title": "Version",
                            "value": "${Stamp.Version}"
                        },
                        {
                            "title": "Admin Portal",
                            "value": "[${Stamp.AdminPortal}](${Stamp.AdminPortal})"
                        },
                        {
                            "title": "Tenant Portal",
                            "value": "[${Stamp.TenantPortal}](${Stamp.TenantPortal})"
                        },
                        {
                            "title": "Stamp Prefix",
                            "value": "${Stamp.Prefix}"
                        },
                        {
                            "title": "Hardware",
                            "value": "${Stamp.Hardware}"
                        },
                        {
                            "title": "Nodes",
                            "value": "${Stamp.NumberOfNodes}"
                        },
                        {
                            "title": "CloudId",
                            "value": "${Stamp.CloudId}"
                        },
                        {
                            "title": "Update Name",
                            "value": "${Update.UpdateName}"
                        }
                    ],
                    "isVisible": "${ShowEnvDetail}"
                },
                {
                    "type": "FactSet",
                    "facts": [
                        {
                            "title": "Version",
                            "value": "${Stamp.Version}"
                        },
                        {
                            "title": "Stamp Name",
                            "value": "${Stamp.Name}"
                        },
                        {
                            "title": "Last Update Name",
                            "value": "${Update.UpdateName}"
                        }
                    ],
                    "isVisible": "${ShowNoEnvDetail}"
                },
                {
                    "type": "TextBlock",
                    "text": "${moduleName} - ${commandletName} - ${moduleVersion} (Brevity: ${Brief})",
                    "wrap": true,
                    "weight": "Lighter",
                    "color": "Accent",
                    "size": "Small",
                    "isSubtle": true,
                    "horizontalAlignment": "Right"
                }
            ],
            "separator": true,
            "isVisible": "${ShowStampInfo}"
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2"
}