Deploy files to Azure kudu console

 Uploading files to the Azure Kudu console can be done in several ways, depending on your preferences and the type of files you want to upload. Here are a few methods:

1. Zip Deploy UI:

  • This is the easiest method for uploading individual files or entire directories.
  • Open the Zip Deploy UI in your browser by navigating to https://<your_app_name>.scm.azurewebsites.net/ZipDeployUI.
  • Drag and drop the desired files or zipped folder into the file explorer area.
  • The upload progress will be displayed, and upon completion, the files will be extracted and placed in the appropriate location.

2. Drag and Drop in Kudu Console:

  • Access the Kudu console through the Azure portal by navigating to Advanced Tools > Go > Debug Console (CMD).
  • Open the desired directory in the file browser.
  • Drag and drop individual files onto the file explorer area.
  • You'll see a progress bar indicating the upload status.

3. FTP Client:

Use an FTP client like FileZilla or WinSCP to connect to the Kudu service using the following details:

  • Host: <your_app_name>.scm.azurewebsites.net
  • Username: USER (provided in the Kudu console)
  • Password: PASSWORD (provided in the Kudu console)
  • Port: 12000 (for Windows app services) or 22 (for Linux app services)
  • Upload your files as you would with any FTP server.

4. Command-Line Tools:

  • You can use tools like az webapp deploy (Azure CLI) or Publish-AzWebapp (PowerShell) to deploy zipped packages containing your files.
  • These tools leverage the Kudu publish API for more customizable deployments.

Important Notes:

Remember that the Kudu file system is separate from your website's content directory. You need to place files in the appropriate directory within the Kudu console for them to be accessible by your web app.

For Linux app services, the Zip Deploy UI method is currently unavailable. Use FTP, CLI, or API-based deployments instead.

Always refer to the official Azure documentation for detailed instructions and specific requirements based on your app service configuration and desired outcome.

I hope this helps! If you have any further questions or need clarification on specific steps, feel free to ask.

Post a Comment

0 Comments