Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The trafficControllers/frontends resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
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: {}
}
Resource format
To create a Microsoft.ServiceNetworking/trafficControllers/frontends resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.ServiceNetworking/trafficControllers/frontends@2025-03-01-preview' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
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 |
FrontendProperties
| Name | Description | Value |
|---|---|---|
| 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:
- Resource groups - See resource group deployment commands For a list of changed properties in each API version, see change log.
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": "2025-03-01-preview",
"name": "string",
"location": "string",
"properties": {
"securityPolicyConfigurations": {
"ipAccessRulesSecurityPolicy": {
"id": "string"
},
"wafSecurityPolicy": {
"id": "string"
}
}
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.ServiceNetworking/trafficControllers/frontends
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2025-03-01-preview' |
| 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' |
FrontendProperties
| Name | Description | Value |
|---|---|---|
| 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@2025-03-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
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@2025-03-01-preview" |
FrontendProperties
| Name | Description | Value |
|---|---|---|
| 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) |