2 Azure functions are being created for non-prod and prod environments.
We have CI and CD pipeline in azure Devops which we use for build and deploy. Ideally for each code change, only CI pipeline should run and wait for Devops team to manually trigger CD pipeline to deploy to function since our code is not matured enough to allow auto deploy for every change.
Issue we are facing is: If both the functions are in connected state and some code change happens in GitHub, deployment auto triggers on both prod and non prod functions through CI pipeline.
So CI pipeline once run the build state post it, the deployment happens in functions directly without going to CD release pipeline.
Workaround followed:
Disconnect all available functions
Commit code changes which will trigger CI
manually trigger release CD pipeline
This will then establish connection to correct function and deploy
Can someone please suggest me the fix for this issue on how I can disable this auto deploy to functions caused due to code changes