Microsoft.ServiceNetworking trafficControllers/frontends

Bicep resource definition

The trafficControllers/frontends resource type can be deployed with operations that target:

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

Usage Examples

Bicep Samples

A basic example of deploying Application Gateway for Containers Frontend.

param resourceName string = 'acctest0001'
param location string = 'westus'

resource trafficController 'Microsoft.ServiceNetworking/trafficControllers@2023-11-01' = {
  name: resourceName
  location: location
}

resource frontend 'Microsoft.ServiceNetworking/trafficControllers/frontends@2023-11-01' = {
  name: '${resourceName}-frontend'
  location: location
  parent: trafficController
  properties: {}
}

Azure Verified Modules

The following Azure Verified Modules can be used to deploy this resource type.

Module Description
Application Gateway for Containers (Traffic Controller) - Frontend AVM Child Module for Application Gateway for Containers (Traffic Controller) - Frontend

Resource format

To create a Microsoft.ServiceNetworking/trafficControllers/frontends resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.ServiceNetworking/trafficControllers/frontends@2026-03-01' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    association: {
      id: 'string'
    }
    publicNetworkAccess: 'string'
    securityPolicyConfigurations: {
      ipAccessRulesSecurityPolicy: {
        id: 'string'
      }
      wafSecurityPolicy: {
        id: 'string'
      }
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.ServiceNetworking/trafficControllers/frontends

Name Description Value
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,62}[A-Za-z0-9])?$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: trafficControllers
properties The resource-specific properties for this resource. FrontendProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

FrontendAssociation

Name Description Value
id Resource ID of the Association. string (required)

FrontendProperties

Name Description Value
association Reference to an Association resource that contains the subnet where the private frontend should be deployed. FrontendAssociation
publicNetworkAccess Whether public network access is allowed for the frontend. Enabled indicates a public frontend; Disabled indicates a private frontend. 'Disabled'
'Enabled'
securityPolicyConfigurations Frontend Security Policy Configuration SecurityPolicyConfigurations

IpAccessRulesSecurityPolicy

Name Description Value
id Resource ID of the Ip Access Rules Security Policy string (required)

SecurityPolicyConfigurations

Name Description Value
ipAccessRulesSecurityPolicy Contains reference to a IpAccessRules-type security policy. IpAccessRulesSecurityPolicy
wafSecurityPolicy Contains reference to a WAF-type security policy. WafSecurityPolicy

TrackedResourceTags

Name Description Value

WafSecurityPolicy

Name Description Value
id Resource ID of the Waf Security Policy string (required)

ARM template resource definition

The trafficControllers/frontends resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.ServiceNetworking/trafficControllers/frontends resource, add the following JSON to your template.

{
  "type": "Microsoft.ServiceNetworking/trafficControllers/frontends",
  "apiVersion": "2026-03-01",
  "name": "string",
  "location": "string",
  "properties": {
    "association": {
      "id": "string"
    },
    "publicNetworkAccess": "string",
    "securityPolicyConfigurations": {
      "ipAccessRulesSecurityPolicy": {
        "id": "string"
      },
      "wafSecurityPolicy": {
        "id": "string"
      }
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.ServiceNetworking/trafficControllers/frontends

Name Description Value
apiVersion The api version '2026-03-01'
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,62}[A-Za-z0-9])?$ (required)
properties The resource-specific properties for this resource. FrontendProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ServiceNetworking/trafficControllers/frontends'

FrontendAssociation

Name Description Value
id Resource ID of the Association. string (required)

FrontendProperties

Name Description Value
association Reference to an Association resource that contains the subnet where the private frontend should be deployed. FrontendAssociation
publicNetworkAccess Whether public network access is allowed for the frontend. Enabled indicates a public frontend; Disabled indicates a private frontend. 'Disabled'
'Enabled'
securityPolicyConfigurations Frontend Security Policy Configuration SecurityPolicyConfigurations

IpAccessRulesSecurityPolicy

Name Description Value
id Resource ID of the Ip Access Rules Security Policy string (required)

SecurityPolicyConfigurations

Name Description Value
ipAccessRulesSecurityPolicy Contains reference to a IpAccessRules-type security policy. IpAccessRulesSecurityPolicy
wafSecurityPolicy Contains reference to a WAF-type security policy. WafSecurityPolicy

TrackedResourceTags

Name Description Value

WafSecurityPolicy

Name Description Value
id Resource ID of the Waf Security Policy string (required)

Terraform (AzAPI provider) resource definition

The trafficControllers/frontends resource type can be deployed with operations that target:

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

Usage Examples

Terraform Samples

A basic example of deploying Application Gateway for Containers Frontend.

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westus"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "trafficController" {
  type      = "Microsoft.ServiceNetworking/trafficControllers@2023-11-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
}

resource "azapi_resource" "frontend" {
  type      = "Microsoft.ServiceNetworking/trafficControllers/frontends@2023-11-01"
  parent_id = azapi_resource.trafficController.id
  name      = "${var.resource_name}-frontend"
  location  = var.location
  body = {
    properties = {}
  }
}

Resource format

To create a Microsoft.ServiceNetworking/trafficControllers/frontends resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ServiceNetworking/trafficControllers/frontends@2026-03-01"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      association = {
        id = "string"
      }
      publicNetworkAccess = "string"
      securityPolicyConfigurations = {
        ipAccessRulesSecurityPolicy = {
          id = "string"
        }
        wafSecurityPolicy = {
          id = "string"
        }
      }
    }
  }
}

Property Values

Microsoft.ServiceNetworking/trafficControllers/frontends

Name Description Value
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,62}[A-Za-z0-9])?$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: trafficControllers
properties The resource-specific properties for this resource. FrontendProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ServiceNetworking/trafficControllers/frontends@2026-03-01"

FrontendAssociation

Name Description Value
id Resource ID of the Association. string (required)

FrontendProperties

Name Description Value
association Reference to an Association resource that contains the subnet where the private frontend should be deployed. FrontendAssociation
publicNetworkAccess Whether public network access is allowed for the frontend. Enabled indicates a public frontend; Disabled indicates a private frontend. 'Disabled'
'Enabled'
securityPolicyConfigurations Frontend Security Policy Configuration SecurityPolicyConfigurations

IpAccessRulesSecurityPolicy

Name Description Value
id Resource ID of the Ip Access Rules Security Policy string (required)

SecurityPolicyConfigurations

Name Description Value
ipAccessRulesSecurityPolicy Contains reference to a IpAccessRules-type security policy. IpAccessRulesSecurityPolicy
wafSecurityPolicy Contains reference to a WAF-type security policy. WafSecurityPolicy

TrackedResourceTags

Name Description Value

WafSecurityPolicy

Name Description Value
id Resource ID of the Waf Security Policy string (required)