Azure 逻辑应用程序函数调用非 json 正文

问题描述 投票:0回答:1

我正在配置逻辑应用程序,我有以下输出,但它不是来自此输出的 json 格式,我需要单独的 AlertID 值,因为它的非 json 格式函数显示无效格式错误,有人可以帮助我解决这个问题吗

:azure: :alert: 
*Non-Prod Alert: RuleCpupercetange*
*Severity*: Sev4
*Timestamp*: 2024-10-10T17:55:18.5144302Z 
*Alert Id*: ```/subscriptions/32476574-bf58-4703-96d9-4378327845/providers/Microsoft.AlertsManagement/alerts/629bd98a-f9b5-c79a-75b1-b807b48d0002```
Click here to find the code 
*****************************************************
*Affected resource: W008ssaltmost* 
*Resource modified by:[email protected]*
*****************************************************
*Select a response:*, with interactive elements

azure-logic-apps
1个回答
0
投票

这个表达会为你做...

split(variables('Text'), '```')[1]

...有一个巨大的警告,那就是数据将保持原样,不会偏离您提供的内容。

variables('Text')
替换为您向 Compose 步骤提供的内容。

© www.soinside.com 2019 - 2024. All rights reserved.