Skip to content

Instantly share code, notes, and snippets.

@lmazuel
Created June 8, 2017 20:44
Show Gist options
  • Select an option

  • Save lmazuel/f68992e1a865b4cc8690e7179f614b4e to your computer and use it in GitHub Desktop.

Select an option

Save lmazuel/f68992e1a865b4cc8690e7179f614b4e to your computer and use it in GitHub Desktop.
Batch Template peuso code
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