简体   繁体   中英

How to fix deployment failing to azure deployment slot?

I have made an Azure function that I deployed with Azure CLI since deployment from Visual studio did not work. But I now added a slot "development" to the Azure fuction and want to deploy my code to this slot. But when I do this I get an error and the deployment fails.

在此处输入图像描述

In the link that is given are no logs.

I used this command:

az functionapp deployment source config-zip -g Applications-WE -n \cubigo-dev-alexa --src C:\Users\Joren\stage\Birthday.zip --slot development

The command to deploy to the production slot does work:

az functionapp deployment source config-zip -g Applications-WE -n \cubigo-dev-alexa --src C:\Users\Joren\stage\Birthday.zip

What am I doing wrong? Thanks in adavance

Go to your azure function and click Configuration > Application settings and click Deployment slog setting for all your application settings like below:

在此处输入图像描述

Deployment to the development slot worked when I changed the value from the application setting "WEBSITE_CONTENTSHARE" to the value of the variable in the production slot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM