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')"
}
}
}