我需要使用工作流参数对象中的参数,如下所示。但我在 Azure 验证方面失败了。
"parameters": {
"$apprelatedparams": {
"value": {
"testId": "<GUID>",
"testGroupName": "<GroupName>"
}
},
"$connections": {
"value": {
"connectionName": {
"connectionId": /test/@parameters['$apprelatedparams']['testId']/resourceGroups/@parameters['$apprelatedparams']['testGroupName']/providers/connectionName,
"id": /test/@parameters['$apprelatedparams']['testId']/providers/testName
}
}
}
}
这是带有参数对象的完整工作流程 -
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Response": {
"inputs": {
"body": "\"message\": \"Hello World!\"",
"statusCode": 200
},
"runAfter": {},
"type": "Response"
}
},
"contentVersion": "",
"outputs": {},
"parameters": {},
},
"parameters": {
"$apprelatedparams": {
"value": {
"testId": "TestID",
"testGroupName": "GroupName"
}
},
"$apprelatedparamstest": {
"value": {
"testsId": "@parameters['$apprelatedparams']['testId']",
"testGroupsName": "@parameters['$apprelatedparams']['testGroupName']"
}
}
}
}