def main():
<EOL>arg_parser = argparse.ArgumentParser()<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=True, action='<STR_LIT:store>',<EOL>help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=True,<EOL>action='<STR_LIT:store>', help='<STR_LIT>')<EOL>arg_parser.add_argument('<STR_LIT>', '<STR_LIT>', required=True,<EOL>action='<STR_LIT:store>', 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>vmssname = args.vmssname<EOL>rgname = args.rgname<EOL>operation = args.operation<EOL>vmid = args.vmid<EOL>lun = int(args.lun)<EOL>diskname = args.diskname<EOL>if operation != '<STR_LIT>' and operation != '<STR_LIT>':<EOL><INDENT>sys.exit('<STR_LIT>')<EOL><DEDENT>if diskname is None and operation == '<STR_LIT>':<EOL><INDENT>sys.exit('<STR_LIT>')<EOL><DEDENT>subscription_id = azurerm.get_subscription_from_cli()<EOL>access_token = azurerm.get_access_token_from_cli()<EOL>vmssvm_model = azurerm.get_vmss_vm(access_token, subscription_id, rgname, vmssname, vmid)<EOL>if operation == '<STR_LIT>':<EOL><INDENT>new_model = attach_model(subscription_id, rgname, vmssvm_model, diskname, lun)<EOL><DEDENT>else:<EOL><INDENT>if operation == '<STR_LIT>':<EOL><INDENT>new_model = detach_model(vmssvm_model, lun)<EOL><DEDENT><DEDENT>rmreturn = azurerm.put_vmss_vm(access_token, subscription_id, rgname, vmssname, vmid,<EOL>new_model)<EOL>if rmreturn.status_code != <NUM_LIT>:<EOL><INDENT>sys.exit('<STR_LIT>' + str(rmreturn.status_code) +<EOL>'<STR_LIT>' + rmreturn.text)<EOL><DEDENT>print(json.dumps(rmreturn, sort_keys=False, indent=<NUM_LIT:2>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL>
Main routine.