azNetworkInterface

Use the resource azNetworkInterface to deploy an Azure Network Interface to the relevant subscription.

Attributes

Attribute Type Mandatory Values Default Notes
Name String Yes
ResourceGroupName String Yes
Location String Yes
VirtualNetwork Object Yes
NSGName String No
EnableAcceleratedNetworking Boolean No False
IPConfig Object
Diagnostic Object
Tag Object
Lock Object

Virtual Network

Attribute Type Mandatory Values Default Notes
Name String Yes
SubnetName String Yes
ResourceGroupName String No Defaults to RG of resource

IPConfig

Attribute Type Mandatory Values Default Notes
Name String Yes
PublicIPName String No
LoadBalancer Object No

IPConfig LoadBalancer

Attribute Type Mandatory Values Default Notes
Name String Yes
ResourceGroupName String No Defaults to RG of resource
BackendPool String Yes

Diagnostic

Attribute Type Mandatory Values Default Notes
Name String Yes
Metric Object No
Target Object No

Diagnostic Metric

Attribute Type Mandatory Values Default Notes
Enabled Boolean No Defaults to true if Category is not null
Category Array No AllMetrics

Input by YAML

Object model for YAML deployment:

azNetworkInterface:
    # Mandatory
  - Name: 'string'
    ResourceGroupName: 'string'
    Location: 'string'
    VirtualNetwork:
      Name: 'string'
      SubnetName: 'string'
      # Optional
      ResourceGroupName: 'string'                   # Defaults to RG of resource
    IPConfig:
      - Name: 'string'
        PublicIPName: 'string'
        LoadBalancer:
          Name: 'string'
          ResourceGroupName: 'string'               # Defaults to RG of resource      
          BackendPool: 'string'  
    NSGName: 'string'
    EnableAcceleratedNetworking: boolean            # True, False(D)
    Diagnostic:
      - Name: 'string'
        Metric:
          Enabled: boolean                          # True (D if MetricCategory not null), False
          Category: [array]                         # Defaults to all if enabled
        Target:
          Blob:
            StorageAccount: 'string' 
            ResourceGroupName: 'string'             # Defaults to RG of resource
            Subscription: 'string'                  # Defaults to Sub of resource
            StorageKeyType: 'string'                # Primary, Secondary
            RetentionInDays: number
          EventHub:
            Name: 'string'
            Namespace: 'string'
            ResourceGroupName: 'string'             # Defaults to RG of resource
            Subscription: 'string'                  # Defaults to Sub of resource
            SharedAccessPolicy: 'string'            # RootManageSharedAccessKey (D)
          LogAnalytics:
            Workspace: 'string'
            ResourceGroupName: 'string'             # Defaults to RG of resource
            Subscription: 'string'                  # Defaults to Sub of resource
    Tag: 
      'keyvalue-pairs'
    Lock:
      - Name: 'string'
        Level: 'string'                             # CanNotDelete, ReadOnly
        Notes: 'string'

Input by JSON

Object model for JSON deployment:

{
  "azNetworkInterface": [
    {
      "Name": "string",
      "ResourceGroupName": "string",
      "Location": "string",
      "VirtualNetwork": [
        {
          "Name": "string",
          "SubnetName": "string",
          "ResourceGroupName": "string"
        }
      ],
      "IPConfig": [
        {
          "Name": "string",
          "PublicIPName": "string"
        }
      ],
      "NSGName": "string",
      "EnableAcceleratedNetworking":  boolean,
      "Diagnostic": [
        {
          "Name": "string",
          "Metric": {
            "Enabled": boolean,
            "Category": [array]
          },
          "Target": {
            "Blob": {
              "StorageAccount": "string",
              "ResourceGroupName": "string",
              "Subscription": "string",
              "StorageKeyType": "string",
              "RetentionInDays": number
            },
            "EventHub": {
              "Name": "string",
              "Namespace": "string",
              "ResourceGroupName": "string",
              "Subscription": "string",
              "SharedAccessPolicy": "string"
            },
            "LogAnalytics": {
              "Workspace": "string",
              "ResourceGroupName": "string",
              "Subscription": "string"
            }
          }
        }
      ],
      "Tag": {
        "key": "value"
      },
      "Lock": [
        {
          "Name": "string",
          "Level": "string",
          "Notes": "string"
        }
      ]
    }
  ]
}