I've the following directory structure for an Azure function app:
.
|-test
|-TriggerTrainingApp
-host.json
|---azure_ws
|---test_func
-__init__.py
-function.json
-requirements.json
-local.settings.json
I created a function app using the following command from inside TriggerTrainingApp
directory using the cmd:
az functionapp create --consumption-plan-location eastus --runtime python --runtime-version 3.9 --functions-version 4 --name <APP_NAME> --os-type linux --storage-account <STORAGE_ACCOUNT> --resource-group <resource_group>
It was created as expected --verified on ui.
Then I tried to publish the function by cd into test_func
and running the cmd:
func azure functionapp publish TriggerTrainingApp
The logs say the command ran succesfully but when I run func azure functionapp list-functions TriggerTrainingApp
, it doesn't list any functions. The output is simply:
Functions in TriggerTrainingApp:
The files inside test_func
are now available under the function app`s app files on the ui. What am I doing wrong? How do I push these files to a new function under TriggerTrainingApp?