question

Marc-2577 avatar image
0 Votes"
Marc-2577 asked DavidBroggy-5270 rolled back

Deploying Logic App With SFTP-SSH API Connector via ARM Template Gives Unhelpful Error About Swagger

Hi,

I am attempting to deploy a Logic App via ARM Template via Azure DevOps Release Pipeline (ARM template deployment task). I'm using an ARM Template as well as a parameters file.

The deployment is successful, the Logic App and its API connections show up in Azure Portal, however in my Logic App's Web Designer, I have the same error for two of my components ("List files in folder" (SFTP-SSH) and "List blobs" (Azure Blob Storage)).

44787-image.png

Here's what it looks like when I create the Logic App using the Web Designer. This method works well, though the idea is that I would like to automate the creation of this Logic App in a Disaster Recovery scenario.

44901-image.png

I have tried understanding the error message, though I kept coming up empty after many searches online.

"List blobs" component

Swagger not found for connector '/subscriptions/xxxxxxxx/providers/Microsoft.Web/locations/South Central US/managedApis/azureblob'

"List files in folder" component

Swagger not found for connector '/subscriptions/xxxxxxxx/providers/Microsoft.Web/locations/South Central US/managedApis/sftpwithssh'

I really don't know what Swagger has to do with this Logic App API Connection.
I was hoping someone here could help.

Let me know if I can specify additional information that might help.

Thanks,
Marc


azure-logic-apps
image.png (40.1 KiB)
image.png (41.0 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

With the information that this thread shares, can I use it to solve this issue? I was able to get the JSON of the Swagger for my logic app, though I don't really know if it's what I actually need to solve it.

0 Votes 0 ·

Ultimately, this would be a workaround for the issue, and I would rather tackle the immediate issue at hand, which is the fact that I am unable to deploy a functional logic app via ARM template deployment.

0 Votes 0 ·
Marc-2577 avatar image
0 Votes"
Marc-2577 answered

I was able to make it work by recreating the Logic App in Visual Studio 2019 via a Logic App project, as described at the end of this article.

https://medium.com/@derek_li/create-api-connection-via-arm-template-b018e8069808

I deployed the ARM template via Azure DevOps Release Pipeline, and was able to create a brand new Logic App with new SFTP-SSH and Azure Blob API Connections.

Not sure what the root cause was, however. Maybe this will help someone in the future.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidBroggy-5270 avatar image
0 Votes"
DavidBroggy-5270 answered DavidBroggy-5270 rolled back

With Marc's solution is it sounds like he had to recreate the entire logic app in VS.
If you do that, then it's a push button solution since you can right click deploy to any tenant/resource group.

But I don't think his suggestion is relevant to those of you who are trying to create a template like azuredeploy.json for the purpose of uploading to Github.

I haven't found an alternative procedure for the one posted here (but I'm hoping I do..):

https://github.com/Azure/Azure-Sentinel/tree/master/Playbooks#instructions-for-templatizing-a-playbook

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.