Created
June 8, 2017 20:44
-
-
Save lmazuel/f68992e1a865b4cc8690e7179f614b4e to your computer and use it in GitHub Desktop.
Batch Template peuso code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def upload_template(client, resource_group, json_template): | |
| api_version = extract_from_template(json_template) | |
| new_batch_client = BatchClient(client.config.credentials, client.config.subscription_id, api_version) | |
| models = new_batch_client.models(api_version) | |
| built_model = build_template_model(models, json_template) | |
| return new_batch_client.template.upload(resource_group, built_model).result() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment