Mag
Mag

Reputation: 179

How to deploy multiple Microsoft azure functions from different projects (solutions) to same resource group

I have multiple projects with different functions for example

Solution A

Solution B

I have 1 Resource Group (R1) which has Project A functions. If I deploy Project B functions to Resource Group "R1" its removing Project A functions and replacing it with Project B functions.

Is there way to deploy functions from both Project A and Project B together to same Resource Group (R1)?

Upvotes: 5

Views: 5097

Answers (2)

John
John

Reputation: 11

George Chen only works if your not zip deploying.

If you used zip method.

  • Delete it.
  • Create a new profile.
  • Uncheck Run from a package file(recommended)
  • Click finish.
  • Follow the steps in George Chen's post

Note. You will need to manually stop the host to delete old functions from your storage and restart the service. Should you need to remove one.

Uncheck Run from package file

Upvotes: 0

George Chen
George Chen

Reputation: 14334

I test with Visual Studio and it works well.

Your function are overwritten by default is because the value Delete existing files is set to true when you deploy you choose Select Existing.

enter image description here

So yo could Edit your Publish Profile Settings. Uncheck the Remove additional files at destination.

enter image description here

Then you will be able to deploy them together. However the recommend way is to deploy everything as one package.

Upvotes: 5

Related Questions