Azure / azure-functions-on-container-apps

Docs , samples and issues for Azure Functions on Azure Container Apps
MIT License
73 stars 17 forks source link

Support for start/stop Azure functions hosted on Azure Containers Apps #48

Closed benoitsautierecellenza closed 2 weeks ago

benoitsautierecellenza commented 7 months ago

While performing update of environment variables on Azure function hosted on Azure Container Apps Azure Activity log report :

Is there an alternate way to perform Environment variables on Azure Function hosted on Azure Container Apps.

raorugan commented 7 months ago

Can you confirm which function appsettings are you planning to update?

Can you please provide use-case scenario details of start/stop? We are actively looking into this

benoitsautierecellenza commented 7 months ago

Hi,

I had a set of Azure functions working on consumption / premium plan that I moved to Azure Container Apps. Because I needed to start and stop my application that rely on multiple functions, I had a Github Action Workflow that organize the start/ stop of each function using Update-AzFunctionAppSetting (Az.Functions module version 4.0.7). By managing environments variables just like “AzureWebJobs.Function_Name.Disabled”. This approach was working before Container Apps but not now. When performing such operation I faced to multiple errors such as one mentioned in my issue.

At the beginning, I was thinking that I needed to update Az.Functions module to latest version but I discovered those entries as illustrated bellow : image

raorugan commented 7 months ago

May I know which trigger/binding are you using? Why do you need to start , stop these function apps?

raorugan commented 7 months ago

Since you have multiple queries, would like to understand your scenarios and requirements better. Please let me know if you would like to hop onto a call to discuss the same. Please drop a note to raorugan@microsoft.com

benoitsautierecellenza commented 7 months ago

Hi,

Mail just sent.

raorugan commented 7 months ago

Thanks for the conversation!

raorugan commented 2 months ago

this feature is now out , you may check it out using "az functionapp stop --name --resource-group . The portal access will be out soon as it is currently work in progress.

benoitsautierecellenza commented 2 months ago

Hi @raorugan. That's a fantastic news. Will be tested within three weeks.

benoitsautierecellenza commented 2 weeks ago

Hi,

Tested, fully functionnal.