def main():
<EOL>arg_parser = argparse.ArgumentParser()<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,<EOL>action='<STR_LIT:store>', 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>public_ips = azurerm.get_vmss_public_ips(access_token, subscription_id, rgname, name)<EOL>if details is True:<EOL><INDENT>print(json.dumps(public_ips, sort_keys=False, indent=<NUM_LIT:2>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL><DEDENT>else:<EOL><INDENT>for pip in public_ips['<STR_LIT:value>']:<EOL><INDENT>vm_id = re.search('<STR_LIT>', pip['<STR_LIT:id>']).group(<NUM_LIT:1>)<EOL>ipaddr = pip['<STR_LIT>']['<STR_LIT>']<EOL>print('<STR_LIT>' + vm_id + '<STR_LIT>' + ipaddr)<EOL><DEDENT><DEDENT>
main reoutine