Sentence-transformers module causes deployment failure in Azure Function App - Stack Overflow

I am deploying Python code to Azure Functions and deployment is failing with this error:The deployment

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
  • Use zip deployment with remote build: 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
Add a comment  | 

1 Answer 1

Reset to default 0

The 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

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信