Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

  • Project A
    • Function A1
    • Function A2

Solution B

  • Project B
    • Function B1
    • Function B2

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)?

like image 645
Mag Avatar asked May 03 '19 19:05

Mag


People also ask

Can multiple Azure functions use the same storage account?

It's possible for multiple function apps to share the same storage account without any issues. For example, in Visual Studio you can develop multiple apps using the Azure Storage Emulator.

Can an Azure function have multiple routes?

Azure Functions only allow you to map a single route to a function.

How many Azure functions can I have?

So As per Microsoft By default, The Azure Function App that is under the Consumption plan will scale out to as many as 200 instances. Same way, If the Azure Function App is under the Premium plan, then, the Azure Function App can scales out a maximum of 100 instances as per Microsoft.


1 Answers

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.

like image 61
George Chen Avatar answered Oct 13 '22 01:10

George Chen