question

FrederikL-5944 avatar image
0 Votes"
FrederikL-5944 asked FrederikL-5944 answered

Logic apps standard - service bus connection parameter


I'm currently developing a logic app standard with service bus connector in Visual Studio code.
But now I'm having issues with the SB connection when deploying to Azure.

The definition below works, but this is the local connection which only works for 7 days.
I would like to parameterize this for the different environments.

Does somebody now how I can pass the SB connectionstring from my VS code project to the Azure deployment.
Which syntax in the connections.json do I need to use?

I tried to find the right combination , but couldn't find it.




"managedApiConnections": {
"servicebus": {
"api": {
"id": "/subscriptions/<sub-id>/providers/Microsoft.Web/locations/westeurope/managedApis/servicebus"
},
"connection": {
"id": "/subscriptions/<sub-id>/resourceGroups/<rg-name>/providers/Microsoft.Web/connections/servicebus"
},
"connectionRuntimeUrl": "https://<la-name>.common.logic-westeurope.azure-apihub.net/apim/servicebus/51df3b78cdcf4861acb57d8ce72f3244/",
"authentication": {
"type": "Raw",
"scheme": "Key",
"parameter": "@appsetting('servicebus-connectionKey')"
}
}
}

azure-logic-appsazure-service-bus
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.

1 Answer

FrederikL-5944 avatar image
0 Votes"
FrederikL-5944 answered

I'm able to create the API connection through ARM template or even do it manually. But the problem is I can't refer to it from the connections.json file.

So passing the connectionsyring is probably not needed I guess, but what to do with the connectionruntomeurl and authentication values?

I removed them from the definition, deployed the logic app, but then my logic app connection was broken.

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.