Azure provides the excellent Azure REST API that can be used for managing all your Azure resources programatically. Azure also provides access to manage resources and services by other interfaces including Azure CLI 2.0, Azure PowerShell, Azure SDK for various languages and Kudu.

Microsoft Azure Project Kudu

Kudu is deployed on all Microsoft Azure App Services (including Web apps, Mobile apps, Logic apps, and others) by default. Kudu provides a web based inteface, called Kudu Console, that is accessible usually by the URL https://${sitename}

Kudu also has API URL end points for a wide varity of actions that can be performed on the App Service instances. These URL end points are simpler than the full fledged Azure REST API, can be invoked via simple cURL commands and are usable for quick & dirty scripting.

### Zip API

# upload content to site folder in Web App instance
curl -X PUT --data-binary https://${sitename} -u "user:pass"

# download files to a zip from a Web App instance folder
curl -X GET -o https://${sitename} -u "user:pass"


# list files
curl -X GET https://${sitename} -u "user:pass"

# download a file
curl -X GET https://${sitename}${customlogsfolder}/${myapp.log} -u "user:pass"

### Site Extensions API

# get list of extensions installed
curl -X GET https://${sitename} -u "user:pass"

# get list of all extensions available for install from Gallery
curl -X GET https://${sitename} -u "user:pass"

# install a MS extension from
curl -X PUT https://${sitename} -d "" -u "user:pass"

# install Python 2.7.11 x64 from Gallery
curl -X PUT https://${sitename} -d "" -u "user:pass"

### WebJobs API

# list webjobs
curl -X GET https://${sitename} -u "user:pass"

See also