This is a simple app to do provisioning of statics files on multiple app services.
appsevdeployer don't required dependencies it use built-in function at moment.
INSTALL BY PIP
pip install appservice-deployerThe 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.
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
python3 -m appsrvdeployer -n <APP_SERVER_NAME> -g <RESOURCE_GROUP> -s <SUBSCRIPTION> -z <ZIP_FILE> --path <ROOT_PATH>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
└── file7You 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
This project is open sourced under MIT license, see the LICENSE file for more details.