def main():
<EOL>arg_parser = argparse.ArgumentParser()<EOL>arg_parser.add_argument(<EOL>'<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=False, action='<STR_LIT:store_true>',<EOL>default=False, help='<STR_LIT>')<EOL>args = arg_parser.parse_args()<EOL>name = args.vmssname<EOL>rgname = args.rgname<EOL>details = args.details<EOL>try:<EOL><INDENT>with open('<STR_LIT>') as config_file:<EOL><INDENT>config_data = json.load(config_file)<EOL><DEDENT><DEDENT>except FileNotFoundError:<EOL><INDENT>print("<STR_LIT>")<EOL>sys.exit()<EOL><DEDENT>tenant_id = config_data['<STR_LIT>']<EOL>app_id = config_data['<STR_LIT>']<EOL>app_secret = config_data['<STR_LIT>']<EOL>subscription_id = config_data['<STR_LIT>']<EOL>access_token = azurerm.get_access_token(tenant_id, app_id, app_secret)<EOL>upgrade_status = azurerm.get_vmss_rolling_upgrades(<EOL>access_token, subscription_id, rgname, name)<EOL>if details is True:<EOL><INDENT>print(json.dumps(upgrade_status, sort_keys=False,<EOL>indent=<NUM_LIT:2>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL><DEDENT>else:<EOL><INDENT>print(json.dumps(upgrade_status, sort_keys=False,<EOL>indent=<NUM_LIT:2>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL><DEDENT>
Main routine.