Cake addin that provides aliases for remotely communicating with the Azure App Service Kudu engine.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/input
nuspec/nuget
src
tests/integration
.gitignore
LICENSE
README.md
appveyor.yml
build.ps1
build.sh
config.wyam
setup.cake

README.md

Cake Kudu Client

Cake addin that provides aliases for remotely communicating with the Azure App Service Kudu engine.

Fetures

The addin lets you

  • Execute remote shell commands
  • Enumerate remote files and directories on
  • Upload files and directories to AppService
  • Download files and directories from AppService
  • Deploy to AppService from local folder or zip file

Usage

A Kudu client is obtained by using the KuduClient alias.

#addin nuget:?package=Cake.Kudu.Client

 string  baseUri     = EnvironmentVariable("KUDU_CLIENT_BASEURI"),
         userName    = EnvironmentVariable("KUDU_CLIENT_USERNAME"),
         password    = EnvironmentVariable("KUDU_CLIENT_PASSWORD");

 IKuduClient kuduClient = KuduClient(
     baseUri,
     userName,
     password);

Example deploying local folder

DirectoryPath sourceDirectoryPath = "./Documentation/";
DirectoryPath remoteDirectoryPath = "/site/wwwroot/docs/";

kuduClient.ZipUploadDirectory(
    sourceDirectoryPath,
    remoteDirectoryPath);

Full documentation available at cakebuild.net/dsl/kudu/.