def main():
<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>sys.exit("<STR_LIT>")<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>locations = azurerm.list_locations(access_token, subscription_id)<EOL>for location in locations['<STR_LIT:value>']:<EOL><INDENT>print(location['<STR_LIT:name>']<EOL>+ '<STR_LIT>' + location['<STR_LIT>']<EOL>+ '<STR_LIT>' + location['<STR_LIT>']<EOL>+ '<STR_LIT:U+002CU+0020>' + location['<STR_LIT>'])<EOL><DEDENT>
Main routine.