Microsoft.NetworkCloud l2Networks

Bicep resource definition

The l2Networks resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.NetworkCloud/l2Networks resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.NetworkCloud/l2Networks@2026-07-01' = {
  extendedLocation: {
    name: 'string'
    type: 'string'
  }
  location: 'string'
  name: 'string'
  properties: {
    hybridAksPluginType: 'string'
    interfaceName: 'string'
    l2IsolationDomainId: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.NetworkCloud/l2Networks

Name Description Value
extendedLocation The extended location of the resource. This property is required when creating the resource. AzureResourceManagerCommonTypesExtendedLocation (required)
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$ (required)
properties The list of the resource properties. L2NetworkProperties (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates

AzureResourceManagerCommonTypesExtendedLocation

Name Description Value
name The name of the extended location. string (required)
type The type of the extended location. 'CustomLocation'
'EdgeZone' (required)

L2NetworkProperties

Name Description Value
hybridAksPluginType Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS. 'DPDK'
'OSDevice'
'SRIOV'
interfaceName The default interface name for this L2 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine. string

Constraints:
Max length = 12
Pattern = ^[a-zA-Z0-9@._-]*$
l2IsolationDomainId The resource ID of the Network Fabric l2IsolationDomain. string (required)

TrackedResourceTags

Name Description Value

ARM template resource definition

The l2Networks resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.NetworkCloud/l2Networks resource, add the following JSON to your template.

{
  "type": "Microsoft.NetworkCloud/l2Networks",
  "apiVersion": "2026-07-01",
  "name": "string",
  "extendedLocation": {
    "name": "string",
    "type": "string"
  },
  "location": "string",
  "properties": {
    "hybridAksPluginType": "string",
    "interfaceName": "string",
    "l2IsolationDomainId": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.NetworkCloud/l2Networks

Name Description Value
apiVersion The api version '2026-07-01'
extendedLocation The extended location of the resource. This property is required when creating the resource. AzureResourceManagerCommonTypesExtendedLocation (required)
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$ (required)
properties The list of the resource properties. L2NetworkProperties (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.NetworkCloud/l2Networks'

AzureResourceManagerCommonTypesExtendedLocation

Name Description Value
name The name of the extended location. string (required)
type The type of the extended location. 'CustomLocation'
'EdgeZone' (required)

L2NetworkProperties

Name Description Value
hybridAksPluginType Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS. 'DPDK'
'OSDevice'
'SRIOV'
interfaceName The default interface name for this L2 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine. string

Constraints:
Max length = 12
Pattern = ^[a-zA-Z0-9@._-]*$
l2IsolationDomainId The resource ID of the Network Fabric l2IsolationDomain. string (required)

TrackedResourceTags

Name Description Value

Terraform (AzAPI provider) resource definition

The l2Networks resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.NetworkCloud/l2Networks resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.NetworkCloud/l2Networks@2026-07-01"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    extendedLocation = {
      name = "string"
      type = "string"
    }
    properties = {
      hybridAksPluginType = "string"
      interfaceName = "string"
      l2IsolationDomainId = "string"
    }
  }
}

Property Values

Microsoft.NetworkCloud/l2Networks

Name Description Value
extendedLocation The extended location of the resource. This property is required when creating the resource. AzureResourceManagerCommonTypesExtendedLocation (required)
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$ (required)
properties The list of the resource properties. L2NetworkProperties (required)
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.NetworkCloud/l2Networks@2026-07-01"

AzureResourceManagerCommonTypesExtendedLocation

Name Description Value
name The name of the extended location. string (required)
type The type of the extended location. 'CustomLocation'
'EdgeZone' (required)

L2NetworkProperties

Name Description Value
hybridAksPluginType Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS. 'DPDK'
'OSDevice'
'SRIOV'
interfaceName The default interface name for this L2 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine. string

Constraints:
Max length = 12
Pattern = ^[a-zA-Z0-9@._-]*$
l2IsolationDomainId The resource ID of the Network Fabric l2IsolationDomain. string (required)

TrackedResourceTags

Name Description Value