A logic app Get-VirusTotalIPReport is not working

Bhupender Singh 0 Reputation points
2024-07-30T11:07:58.4133333+00:00

I am trying to automate IP enrichment using the Virus Total API.

I have set up a logic app and tied it to a respective analytical rule but I am getting the following error.

This is a test instance and we have only few resources running on it.

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,551 questions
Microsoft Security | Microsoft Sentinel
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,180 Reputation points MVP
    2024-07-30T11:33:30.39+00:00

    if you are using Public API

    it is limited to 500 requests per day and a rate of 4 requests per minute.

    To solve the 4 request per min problem

    you can add a delay to ensure requests do not exceed the quota.

    {
      "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
          "HTTP": {
            "inputs": {
              "method": "GET",
              "uri": "https://www.virustotal.com/api/v3/ip_addresses/@{variables('IPAddress')}",
              "headers": {
                "x-apikey": "@{variables('APIKey')}"
              }
            },
            "runAfter": {},
            "type": "Http"
          },
          "Delay": {
            "type": "Delay",
            "inputs": {
              "interval": {
                "count": 1,
                "unit": "Minute"
              }
            },
            "runAfter": {
              "HTTP": [
                "Succeeded"
              ]
            }
          }
        },
        "triggers": {
          "manual": {
            "type": "Request",
            "inputs": {
              "schema": {}
            }
          }
        },
        "outputs": {},
        "description": ""
      },
      "parameters": {
        "IPAddress": {
          "defaultValue": "8.8.8.8",
          "type": "String"
        },
        "APIKey": {
          "defaultValue": "your_virustotal_api_key",
          "type": "SecureString"
        }
      }
    }
    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.