I have tried to retrieve the HTTP trigger URL from my singel-tenant logic app, but without success.
using:
listCallbackUrl(resourceId('resource-group-name','Microsoft.Logic/workflows', 'logic-app-name', 'manual'), '2016-06-01').value
Also tried:
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/listCallbackUrl?api-version=2016-06-01
This does not find the actual workflow.
and
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/listsecrets?api-version=2019-08-01
This request returns an URL which seem to be a function URL but not the actual trigger URL. Any ideas why this doesn't work? Are there any work-arounds?
To get the callback URL for a standard logic app workflow in ARM template:
[listCallbackUrl(resourceId('Microsoft.Web/sites/hostruntime/webhooks/api/workflows/triggers', parameters('logicAppName'), 'runtime', 'workflow', 'management', parameters('workflowName'), 'manual'),'2021-03-01').value]
To get the callback URL for a consumption logic app in ARM template:
[listCallbackUrl(resourceId('Microsoft.Logic/workflows/triggers', parameters('workflowName'), 'manual'),'2021-03-01').value]
Please check this article for further information:
https://github.com/yasseralissa/standard-logicapp-callbackurl