How to update changes to Azure app service after it's deployed from CLI

Viewed 66

IDE used is VSCode.

Deployment is done using CLI

The command I am using doesn't update it as I have checked the code files using ssh under development tools in azure portal

az webapp update --name <name> --resource-group <resource group name>

1 Answers
  • I have created Azure Linux Web App with the command which you have provided in SO.
 az webapp up --resource-group YourRGName --location westus  --os-type Linux --runtime "PYTHON:3.9" --sku B1

enter image description here

  • We can check the deployed files/folders from Azure Portal => Development Tools => Advanced Tools => Go => SSH OR Development Tools => Advanced Tools => SSH

enter image description here

  • As we have deployed Sample WebApp from CLI, we can only see the hostingstart.html.
  • If you want to add/update any files, you can connect to FTP and push the changes.
  • We can find the FTP credentials in Portal Deployment => Deployment Center => FTPS Credentials These credentials can be used for both FTP/WINSCP.

enter image description here

  • All the files have to be under wwwroot folder.

az webapp update --name --resource-group

The above command is used to update and manage the deployed webapp Configurations.

Related