Skip to content
Connector

Azure Network Security Group v2

Manage Azure Network Security Groups and their rules

Lists, creates, updates and deletes Network Security Groups and their security rules, lists subscriptions, resource groups and locations, and sends any Azure Resource Manager request with the connector's own token.

@ftnt-dspilleMaintainer v2.0.1 Platform 8.0.1+ Published Nov 29, 2026
Download .tgz · 19 KB

azure-network-security-group-v2_2.0.1.tgz

sha256:889f5468988bd7daaeb530ca7952f8eebf4e4188ea317383113ee3cb5d09a1df

Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.

Connector for Azure Network Security Groups (v2, the next major version of the stock 1.2.0 connector, installed alongside it). Pydantic input and output models cover all 14 operations. Subscriptions, resource groups and locations: list and get. Network Security Groups: create, read, list (full or names only), delete, and list rule names. Update adds or deletes security rules; it refuses a rule whose name or priority is already taken, before the write. Delete reads the group first, because Azure answers a delete of a missing group with success. Execute API Request calls any Azure Resource Manager endpoint with the connector's token.

Authentication is a Microsoft Entra ID app registration (client credentials, service principal). The app needs Network Contributor on the resource groups that hold the NSGs it manages.

Live-tested on FortiSOAR 8.0.1 against an Azure subscription: every operation ran, including the write methods of Execute API Request (POST, PUT, PATCH, DELETE), and the success and error mocks are captured from those runs.

Not live-tested

  • The 429 status is synthetic: Azure throttling cannot be provoked on demand.
  • Delete is asynchronous in Azure: the connector returns once Azure accepts the delete. A playbook that creates a rule right after deleting the group should check the group first.

Configuration · 7 fields

  • Directory (tenant) ID tenant_id text required

    Tenant ID of the Entra ID directory that holds the app registration.

  • Application (client) ID client_id text required

    Client ID of the app registration. Grant it Network Contributor on the resource groups it manages.

  • Client Secret client_secret password required

    A client secret of the app registration.

  • Management Endpoint resource text

    Azure Resource Manager endpoint. Leave the default for public Azure.

    Default https://management.azure.com

  • Entra ID Authority authority_host text

    Entra ID login endpoint. Leave the default for public Azure.

  • Verify SSL verify_ssl checkbox

    Verify the TLS certificate of the Azure endpoints.

    Default true

  • Timeout (seconds) timeout text

    Per-request timeout in seconds.

    Default 30

Operations · 14

  • Health Check
    health_check

    Acquire a token and list subscriptions to confirm the connector can reach Azure Resource Manager.

    No parameters.

  • List of Subscriptions
    list_of_subscriptions

    List the subscriptions the app registration can see.

    No parameters.

  • Get Subscription Info 1 param
    get_subscription_info

    Get the details of one subscription.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

  • List of Resource Groups 1 param
    list_of_resource_groups

    List the resource groups in a subscription.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

  • Get Resource Group Info 2 params
    get_resource_group_info

    Get one resource group.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text required

      Name of the resource group that holds the Network Security Group.

  • List of Locations 1 param
    list_of_locations

    List the Azure regions available to a subscription.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

  • Create Network Security Group 6 params
    create_network_security_group

    Create a Network Security Group with optional security rules.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text required

      Name of the resource group that holds the Network Security Group.

    • Network Security Group Name nsg_name text required

      Name of the Network Security Group.

    • Location location text required

      Azure region, for example eastus.

    • Security Rules security_rules object

      JSON array of security rules: name, priority (100-4096), direction (Inbound or Outbound), access (Allow or Deny), protocol (Tcp, Udp, Icmp, Esp, Ah or *), source_address_prefix, destination_address_prefix, source_port_range, destination_port_range (each a value or a JSON list).

    • Tags tags object

      Optional JSON object of tags.

  • Update Network Security Group 6 params
    update_network_security_group

    Add security rules to a Network Security Group, or delete rules by name. Adding refuses a rule whose name or priority is taken.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text required

      Name of the resource group that holds the Network Security Group.

    • Network Security Group Name nsg_name text required

      Name of the Network Security Group.

    • Operation operation_to_perform_on_network_security_group select required

      Add Rules or Delete Rules.

      Options Add RulesDelete Rules
    • Security Rules security_rules object

      JSON array of security rules: name, priority (100-4096), direction (Inbound or Outbound), access (Allow or Deny), protocol (Tcp, Udp, Icmp, Esp, Ah or *), source_address_prefix, destination_address_prefix, source_port_range, destination_port_range (each a value or a JSON list).

    • Rules to Delete rules_to_delete object

      JSON array of rule names to delete (Delete Rules).

  • Delete Network Security Group 3 params
    delete_network_security_group

    Delete a Network Security Group.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text required

      Name of the resource group that holds the Network Security Group.

    • Network Security Group Name nsg_name text required

      Name of the Network Security Group.

  • List of Network Security Groups 2 params
    list_of_network_security_groups

    List the Network Security Groups in a resource group, or in the whole subscription when the resource group is empty.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text

      Empty lists the whole subscription.

  • List of Network Security Group Names 2 params
    list_of_network_security_groups_only_names

    List only the names of the Network Security Groups in a resource group, or in the subscription when it is empty.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text

      Empty lists the whole subscription.

  • Get Network Security Group Info 3 params
    get_network_security_group_info

    Get one Network Security Group with its rules.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text required

      Name of the resource group that holds the Network Security Group.

    • Network Security Group Name nsg_name text required

      Name of the Network Security Group.

  • List of Rule Names in a Network Security Group 3 params
    list_of_rule_names_in_a_nsg

    List the security rule names of one Network Security Group.

    • Subscription ID subscription_id text required

      Subscription GUID, for example from List of Subscriptions.

    • Resource Group Name resource_group_name text required

      Name of the resource group that holds the Network Security Group.

    • Network Security Group Name nsg_name text required

      Name of the Network Security Group.

  • Execute API Request 4 params
    execute_api_request

    Call any management endpoint with the connector's own token, so new Azure Resource Manager capabilities are usable without a connector update.

    • Endpoint endpoint text required

      Path on the management endpoint with its api-version, for example /subscriptions/<id>/resourceGroups?api-version=2021-04-01.

    • Method method select

      HTTP method.

      Options GETPOSTPUTPATCHDELETE
    • Query Parameters query_params object

      Optional JSON object of extra query parameters.

    • Request Body request_body object

      Optional JSON request body.

Something wrong with this item? Sign in to report

Report a problem

Sensitive data, copied content, broken imports, anything that shouldn't be here.

At least 10 characters. Please don't paste the sensitive value itself.0/1000