I am trying to deploy my custom startup script to App Service following the CLI command mentioned in the documentation.
https://learn.microsoft.com/en-us/azure/app-service/deploy-zip#deploy-a-startup-script
After running the command I got Jason response without any errors. I executed : aż webapp deploy --resource-group my-group --name my-app --src-path startupfiles/my-app-startup-file.sh --type=startup --target-path=/home/site/wwwroot/
Then I checked in server using Kudu tools (connected with SSH) and couldn't find the script which I expected to see in /home/site/wwwroot/ directory.
Maybe I did something wrong?
Thanks in advance!
I tried to connect to the server and check if the startup file deployed successfully, but I couldn't find it.
I have created a sample node js project and added a startup.sh
text file in the same path where the app configuration is present.
After that, I have added below pip install
sample command as shown below.
Once it is done, I have given the same command as you and was able to view the output as expected.
az webapp deploy --resource-group "xxxx" --name "linuxnodeapp" --src-path "/home/pathofstartupfile/startup.sh.txt" --type=s
tartup --target-path=xxxxx
Note: Check the startup.sh
is in the same directory path of the deploying application.
If still the issue persists, try adding the below configuration setting under an app service and execute the above process as detailed.
az webapp config appsettings set --resource-group "xxxx" --name "linuxnodeapp" --settings CUSTOM_SCRIPT_PATH=/home
/site/scripts/startup.sh.txt