Helper to create large large deployment-parameters.json files from small yaml files
Project description
azyc: Yaml to azure deployment parameter json converter
Helper to create large large deployment-parameters.json files from small yaml files
Usage
You can specify deployment variables in a yml file.
Additionally to simple variables, you can add file pathes, which are read and written into the deplyoemnt file as string.
KeyVault values as also supported.
Examples:
foo: bar
booleanParam: true
numericParam: 22
arrayParam:
array:
- id: firstId
name: firstName
- id: secondId
name: secondName
objectParam:
object:
id: firstId
name: firstName
fileParam:
file: path_to_file # will be read as utf-8, escaped and passed as string
binaryFileParam:
binary: path_to_binary_file # will be read as binary, base64 encoded and passed as string
yamlParam:
yaml: path_to_file # will be read as utf-8 yaml, optionally transformed and passed as escaped string
overwrite: # optional, you can overwrite or add some parts in the yaml file with overwrite
title: other title
keyVaultParam:
keyVault: /subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.KeyVault/vaults/<vault-name>
secretName: ExamplePassword
keyVaultParamWitVersion:
keyVault: /subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.KeyVault/vaults/<vault-name>
secretName: ExamplePassword
secretVersion: cd91b2b7e10e492ebb870a6ee0591b68
Basic call:
python3 -m azyc -i path_to_config.yml -o paramters.json
You can add/overwrite parameters on the call:
python3 -m azyc -i path_to_config.yml -o paramters.json --param suffix=bar --param booleanParam=false
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azyc-0.5.0.tar.gz.
File metadata
- Download URL: azyc-0.5.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b3669d5e6ee824bc19ee4c317a258b379e31263a02177538c9ff2305b31af46
|
|
| MD5 |
7dd2331c3778388651afff1debb05450
|
|
| BLAKE2b-256 |
40dcc36c4dd1fb6db50795cbaf10e6f58e82ca29d78da606cfa49112f47495b3
|
File details
Details for the file azyc-0.5.0-py3-none-any.whl.
File metadata
- Download URL: azyc-0.5.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be556d4788beb7b53c50fca1462c0cdb0d9df9ab3264380b63394a7ba2095263
|
|
| MD5 |
cbbee5d861e51928e2e41dd369155a7d
|
|
| BLAKE2b-256 |
7f4696a8f0c37e2c6ab1c058418249deaf5ddbeb460c81d2c8a86ab20052d887
|