microsoft / azuredevopslabs

Learn how you can plan smartly, collaborate better, and ship faster with a set of modern development services with Azure DevOps.
https://www.azuredevopslabs.com
MIT License
806 stars 905 forks source link

CI/CD pipeline for Logic app (consumption) with parameterized connections #692

Open Nevinia210 opened 7 months ago

Nevinia210 commented 7 months ago

Hello, I would like to ask if it is possible to deploy LogicApp to azure with parameterized connections, currently im using task:

                - task: AzureResourceManagerTemplateDeployment@3
                  displayName: "Deploy ARM template"
                  inputs:
                    azureResourceManagerConnection: $(connectionName)
                    subscriptionName: $(subscriptionId)
                    resourceGroupName: $(resourceGroupName)
                    location: $(location)
                    csmFile: $(Pipeline.Workspace)/armtemplate/**/workflow.json
                    csmParametersFile: $(Pipeline.Workspace)/armtemplate/**/parameters.json
                    deploymentMode: "Incremental"
                    overrideParameters: -subscriptionId $(subscriptionId) -resourceGroupName $(resourceGroupName) -location $(locationParameter)

this task deploy my logic app correctly, but there are no parameters my workflow.json looks like this: image

Im getting this kind of error:

[error]LinkedAuthorizationFailed: The client has permission to perform action 'Microsoft.Web/connections/join/action' on scope '/subscriptions/xxxxx/resourcegroups/xxxx/providers/Microsoft.Logic/workflows/LogicAppTestDeploy2', however the linked subscription '[parameters('subscriptionId')]' was not found.

Am i doing something wrong? or is it even possible to make connections parameterized?

thank you for your answers

Nevinia210 commented 6 months ago

if anyone would face the same issue, i found answer there https://stackoverflow.com/questions/77745466/ci-cd-pipeline-for-logic-app-consumption-with-parameterized-connections/77757076#77757076