Azure App service deployer
Simple azure app service file provisioner
This is a simple app to do provisioning of statics files on multiple app services.
Installation
appsevdeployer don't required dependencies it use built-in function at moment.
INSTALL BY PIP
pip install appservice-deployer
Usage
The basic utility for this program at now is to provision static file on app service, it's automatically retrive information on FTPS connection USER and PASSWORD of one or more app services.
It's recommended to make dry run before run provisioning to see every changes that the run will be affect and what app are involved.
Dry run
python3 -m appsrvdeployer -n <APP_SERVER_NAME> -g <RESOURCE_GROUP> -s <SUBSCRIPTION> -z <ZIP_FILE> --path <ROOT_PATH> -C
-C option or --dry-run will make a dry run
Real run
python3 -m appsrvdeployer -n <APP_SERVER_NAME> -g <RESOURCE_GROUP> -s <SUBSCRIPTION> -z <ZIP_FILE> --path <ROOT_PATH>
FAQ
1. How should my zip file be built?
At moment the zip file must be built starting not from the source data but from an initial directory, the software will unpack and load everything starting from that directory onwards.
Ex.
init
βββ dir1
β βββ subdir1
β β βββ subdir1.1
β β βββ file1
β β βββ file2
β βββ subdir2
β β βββ file
β βββ file1
β βββ file2
β βββ file3
β βββ file4
β βββ file5
β βββ subdir2
β βββ file1
β βββ file2
βββ dir2
βββ subdir1
βββ file1
βββ file2
βββ file3
βββ file4
βββ file5
βββ file6
βββ file7
it will unzip dir like this.
$ tree <ROOT_PATH>
.
βββ dir1
β βββ subdir1
β β βββ subdir1.1
β β βββ file1
β β βββ file2
β βββ subdir2
β β βββ file
β βββ file1
β βββ file2
β βββ file3
β βββ file4
β βββ file5
β βββ subdir2
β βββ file1
β βββ file2
βββ dir2
βββ subdir1
βββ file1
βββ file2
βββ file3
βββ file4
βββ file5
βββ file6
βββ file7
2. How i can deploy on my slot?
You can deploy on specific app service slot with --slot <SLOT_NAME>
Like this
python3 -m appsrvdeployer -n <APP_SERVER_NAME> -g <RESOURCE_GROUP> -s <SUBSCRIPTION> -z <ZIP_FILE> --path <ROOT_PATH> --slot <SLOT_NAME>
It will deploy only on your app service slot
License
This project is open sourced under MIT license, see the LICENSE file for more details.