Hi Mirra Artificial Intelligence,
Make sure you have below settings added in Azure function App with Flex Consumption under Settings=>Environment Variables=>App Settings
.
"DEPLOYMENT_STORAGE_CONNECTION_STRING"
"AzureWebJobsStorage"
"APPLICATIONINSIGHTS_CONNECTION_STRING(If needed)
Validate the Storage configuration of function App under Deployment Settings.
You can zip deploy the function to flex consumption plan using Azure CLI.
I have tested the same and able to perform zip deploy using command az functionapp deployment source config-zip -g "Resourcegroup" -n FunctionappName --src "FunctionProject.zip" --build-remote true
.
D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\cryptography/hazmat/backends/openssl/backend.py:17: UserWarning: You are using cryptography on a 32-bit Python on a 64-bit Windows Operating System. Cryptography will be significantly faster if you switch to using a 64-bit Python.
Getting scm site credentials for zip deployment
Starting zip deployment. This operation can take a while to complete ...
Deployment endpoint responded with status code 202 for deployment id "6643302e-9612-4d6b-b6e4-72881fb048af"
Waiting for sync triggers...
Checking the health of the function app
"Deployment was successful.
Portal:
Deployed function is available under FunctionApp=>Overview
.
Hope it helps!
Please do not forget to click "Accept the answer” and Yes wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.