I'm having real trouble deploying my Microsoft teams app to azure. I've been using the local. I believe I've set up the local git correctly and the error message being returned post deployment is "Error - Changes committed to remote repository but deployment to website failed."
And i managed to extract this from the logs...
2019-09-02T13:19:15.053Z - Updating branch 'master'.
2019-09-02T13:19:16.415Z - Updating submodules.
2019-09-02T13:19:16.549Z - Preparing deployment for commit id '401185b3e6'.
2019-09-02T13:19:16.867Z - Running custom deployment command...
2019-09-02T13:19:16.950Z - Not setting execute permissions for deploy.cmd
2019-09-02T13:19:17.032Z - Running deployment command...
2019-09-02T13:19:17.055Z - Command: deploy.cmd
2019-09-02T13:19:18.030Z - /opt/Kudu/bin/Scripts/starter.sh: line 2: exec: deploy.cmd: not found
2019-09-02T13:19:18.093Z - /opt/Kudu/bin/Scripts/starter.sh: line 2: exec: deploy.cmd: not found\n/opt/Kudu/bin/Scripts/starter.sh deploy.cmd
2019-09-02T13:19:18.570Z - App container will begin restart within 10 seconds.
I've been trying to follow these instructions
https://learn.microsoft.com/en-us/azure/app-service/deploy-local-git
Everything seems to be working as expected up until the Deploy the Web App step. The previous step to this return a url to the Azzure CLI that end with scm.azurewebsites.net. However it when i follow the step immediately after as instructed it's expecting a URL to a git file and produces the following error...
fatal: Not a git repository (or any of the parent directories): .git
Unfortunately because this walk-through requires me to show web app credentials and URLs I cant share exact details of each step in powershell. I should add though on step one I am including the web app in the user name like so....
<webapp>/<username>
If I dont then PowerShell returns the following error...
az webapp deployment user set: error: argument --user-name: expected one argument