I am deploying Python code to Azure Functions and deployment is failing with this error:
The deployment ID couldn't be found. Please try again.
Environments details:
- Python version: 3.11
- Local environment: macOS sequoia 15.2
- OS: Linux
- Azure environment: Function App Flex Consumption, Basic tier
- Deployment method: Azure CLI
I ran the following command:
func azure functionapp publish <APP_NAME> --verbose --debug
The deployment is timing out.
I am deploying Python code to Azure Functions and deployment is failing with this error:
The deployment ID couldn't be found. Please try again.
Environments details:
- Python version: 3.11
- Local environment: macOS sequoia 15.2
- OS: Linux
- Azure environment: Function App Flex Consumption, Basic tier
- Deployment method: Azure CLI
I ran the following command:
func azure functionapp publish <APP_NAME> --verbose --debug
The deployment is timing out.
Share Improve this question edited Mar 7 at 15:38 Péter Szilvási 2,1882 gold badges26 silver badges48 bronze badges asked Mar 6 at 17:26 Demetris GerogiannisDemetris Gerogiannis 1 1 |1 Answer
Reset to default 0The deployment ID couldn't be found. Please try again.
The error sometimes occurs when using large packages like sentence_transformers in the function project, as they take a long time to install and can cause a timeout during the deployment process.
You can use the zip deployment instead of the Azure Functions CLI (func azure functionapp publish <APP_NAME> --verbose --debug) for faster deployment.
Zip the function project and use the below command to deploy the zipped function to the Azure Function App.
az functionapp deployment source config-zip --resource-group resourceGroupName --name FunctionAppName --src path/to/zipFile
The function was successfully deployed to the Azure Function App as shown below.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744959161a4603384.html
func azure functionapp publish <APP_NAME> --build remote --python --verbose --debug
, this should fix the timeout and package size issues. – Dasari Kamali Commented Mar 7 at 3:30