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.
Microsoft Security | Microsoft Sentinel
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Sedat SALMAN 14,285 Reputation points MVP Volunteer Moderator
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.