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>sa_list = azurerm.list_storage_accounts_sub(access_token, subscription_id)<EOL>for sta in sa_list['<STR_LIT:value>']:<EOL><INDENT>print(sta['<STR_LIT:name>'] + '<STR_LIT:U+002CU+0020>' + sta['<STR_LIT>']['<STR_LIT>'] + '<STR_LIT:U+002CU+0020>'<EOL>+ rgfromid(sta['<STR_LIT:id>']))<EOL><DEDENT>quota_info = azurerm.get_storage_usage(access_token, subscription_id)<EOL>used = quota_info['<STR_LIT:value>'][<NUM_LIT:0>]['<STR_LIT>']<EOL>limit = quota_info["<STR_LIT:value>"][<NUM_LIT:0>]["<STR_LIT>"]<EOL>print('<STR_LIT>' + str(used) + '<STR_LIT>' + str(limit) + '<STR_LIT:.>')<EOL>
main routine