Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

the azure dev support mentiones i cant trigger/start logic apps with azure cli on dictionary parameters #19932

Closed rifaterdemsahin closed 2 years ago

rifaterdemsahin commented 2 years ago

if that is true why they are here and documented here? https://docs.microsoft.com/en-us/cli/azure/logicapp?view=azure-cli-latest#az_logicapp_start

If the logic apps can't be used in automation with parameters why do they exist in the first place ?

this trigger to take in a dictionary parameter to start image

### This is regarding the ticket you have raised with Microsoft - 2109170050000932


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

rifaterdemsahin commented 2 years ago

I need this start with a dictionary parameter to work from my dockercontainer image

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-logicapps-team.

Issue Details
if that is true why they are here and documented here? https://docs.microsoft.com/en-us/cli/azure/logicapp?view=azure-cli-latest#az_logicapp_start **If the logic apps cant be used in automation why do they exist in the first place ?** **### _This is regarding the ticket you have raised with Microsoft - 2109170050000932_** --- #### Document Details ⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.* * ID: 81e21e02-e42f-a0aa-e437-0ec8e73ab81b * Version Independent ID: 29316eb6-a99d-6ccf-6e4d-5e352e391c31 * Content: [az logicapp](https://docs.microsoft.com/en-us/cli/azure/logicapp?view=azure-cli-latest) * Content Source: [latest/docs-ref-autogen/logicapp.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/logicapp.yml) * GitHub Login: @rloutlaw * Microsoft Alias: **routlaw**
Author: rifaterdemsahin
Assignees: -
Labels: `Service Attention`, `Logic App`, `customer-reported`
Milestone: -
yonzhan commented 2 years ago

route to service team

DevArjun23 commented 2 years ago

The commands starting with az logicapp are used for Logic App Standard SKU offering only. az logicapp start starts the logic app site. This doesn't trigger the workflows in it. To trigger a workflow, we need workflow level commands which are not released yet.

From the screenshot, it looks like you are using the LogicApp Consumption SKU. For that these are the commands you can use- https://docs.microsoft.com/en-us/cli/azure/logic?view=azure-cli-latest

rifaterdemsahin commented 2 years ago

So if I move on to the standard one can I trigger the logic apps with a dictionary parameter ? Or right now they are still now released so logic apps can not be used for automation ?

DevArjun23 commented 2 years ago

In LogicApps standard, we don't have workflow level commands yet. So to trigger a workflow with custom payload(dictionary parameter) won't be possible from logicapp CLI extension.

I have not tried this but other workaround I can think of, is if you get the call back URL for your workflow trigger from portal, then you can use ARM client to make requests to trigger the workflow from CLI. They also accept payload for your dictionary paramter. https://github.com/projectkudu/ARMClient

Currently, we are working on adding CLI command to get the call back URL, so soon in the next couple versions you can get the callback URL from CLI and call it using armclient.

mbarqawi commented 2 years ago

@rifaterdemsahin , for logic app consumption may be you can copy the trigger request from the portal as powershell and use it in your automation , does this solve your problem

image

rifaterdemsahin commented 2 years ago

The issue is I wanna have a secure call using the logic apps CLI and use it from Azure DevOps. I don't wanna declare multiple service connections in Azure DevOps use the az commands trigger and get the results back.

Using an HTTP calls creates another security black hole. Does project kudu ARMClient overcome this ? https://github.com/projectkudu/ARMClient

I need to integrate this with Azure DevOps Yaml pipelines.

Step 1: Declare resources in the YAML pipelines in Azure

DevArjun23 commented 2 years ago

I understand, so your ask for logicapp CLI extension is of a command to trigger a workflow with custom payload(like a dictionary). As of latest version, we do not have a command for that.

only workaround I can think of is to get the callback URI from portal or from ARM client, and then call it again using ARM client. What are your security concerns with ARMClient?