def main():
<EOL>arg_parser = argparse.ArgumentParser()<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=True, action='<STR_LIT:store>', help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=True, action='<STR_LIT:store>',<EOL>help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=True, action='<STR_LIT:store>',<EOL>help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=False, action='<STR_LIT:store>',<EOL>help='<STR_LIT>')<EOL>args = arg_parser.parse_args()<EOL>template_uri = args.uri<EOL>params = args.params<EOL>rgname = args.rg<EOL>subscription_id = args.sub<EOL>try:<EOL><INDENT>with open(params) as params_file:<EOL><INDENT>param_data = json.load(params_file)<EOL><DEDENT><DEDENT>except FileNotFoundError:<EOL><INDENT>print('<STR_LIT>' + params + '<STR_LIT>')<EOL>sys.exit()<EOL><DEDENT>access_token = azurerm.get_access_token_from_cli()<EOL>if subscription_id is None:<EOL><INDENT>subscription_id = azurerm.get_subscription_from_cli()<EOL><DEDENT>deployment_name = Haikunator().haikunate()<EOL>print('<STR_LIT>' + deployment_name)<EOL>deploy_return = azurerm.deploy_template_uri(<EOL>access_token, subscription_id, rgname, deployment_name, template_uri, param_data)<EOL>print(json.dumps(deploy_return.json(), sort_keys=False, indent=<NUM_LIT:2>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL>
Main routine.