Я настраиваю шаблон развертывания рабочего процесса для приложения логики и пытаюсь настроить параметр внутри определения приложения логики, но не могу получить к нему доступ в приложении логики.
Я загрузил существующие логические приложения в визуальную студию и создал параметр Get_Profisee_Integrator_output_Path_LA внутри логического приложения (в разделе определения рабочего процесса). Я также установил значение для этого параметра. Когда я пытаюсь получить доступ к этому параметру в приложении логики, он показывает, что параметр не определен.
Объявление параметра в шаблоне развертывания рабочего процесса:
"azure_automation_account_ARM": {
"type": "string",
"defaultValue": "BFC-Automation"
}
Объявление параметра внутри определения рабочего процесса:
"parameters": {
"Get_Profisee_Integrator_output_Path_LA": {
"defaultValue": "[concat(subscription().id,'/resourceGroups/',resourceGroup().name,'/providers/Microsoft.Automation/automationAccounts/',parameters('azure_automation_account_ARM'),'/jobs/@{encodeURIComponent(body(''Run_Profisee_Integrator_Job'')?[''properties'']?[''jobId''])}/output')]",
"type": "String"
}
}
**Parameter set value:**
"Get_Profisee_Integrator_output_Path_LA": {
"value": "[concat(subscription().id,'/resourceGroups/',resourceGroup().name,'/providers/Microsoft.Automation/automationAccounts/',parameters('azure_automation_account_ARM'),'/jobs/@{encodeURIComponent(body(''Run_Profisee_Integrator_Job'')?[''properties'']?[''jobId''])}/output')]"
}
Доступ к параметру Get_Profisee_Integrator_output_Path_LA внутри приложения логики:
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Get_Profisee_Integrator_output": {
"runAfter": {
"Run_Profisee_Integrator_Job": [
"Succeeded"
]
},
"type": "ApiConnection",
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['azureautomation']['connectionId']"
}
},
"method": "get",
"path": "[parameters('Get_Profisee_Integrator_output_Path_LA')]",
"queries": {
"x-ms-api-version": "2015-10-31"
}
}
}
Я должен иметь доступ к параметру Get_Profisee_Integrator_output_Path_LA, чтобы установить путь действия, но не могу. Пожалуйста помоги.