Bicep resource definition
The azureTrafficCollectors 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 Network Function Azure Traffic Collector.
param resourceName string = 'acctest0001'
param location string = 'westus'
resource azureTrafficCollector 'Microsoft.NetworkFunction/azureTrafficCollectors@2022-11-01' = {
name: resourceName
location: location
properties: {}
}
To create a Microsoft.NetworkFunction/azureTrafficCollectors resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.NetworkFunction/azureTrafficCollectors@2022-05-01' = {
location: 'string'
name: 'string'
properties: {
collectorPolicies: [
{
properties: {
emissionPolicies: [
{
emissionDestinations: [
{
destinationType: 'string'
}
]
emissionType: 'string'
}
]
ingestionPolicy: {
ingestionSources: [
{
resourceId: 'string'
sourceType: 'string'
}
]
ingestionType: 'string'
}
}
}
]
virtualHub: {}
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.NetworkFunction/azureTrafficCollectors
| Name |
Description |
Value |
| collectorPolicies |
Collector Policies for Azure Traffic Collector. |
CollectorPolicy[] |
| virtualHub |
The virtualHub to which the Azure Traffic Collector belongs. |
ResourceReference |
CollectorPolicy
| Name |
Description |
Value |
| emissionDestinations |
Emission policy destinations. |
EmissionPolicyDestination[] |
| emissionType |
Emission format type. |
'IPFIX' |
EmissionPolicyDestination
| Name |
Description |
Value |
| destinationType |
Emission destination type. |
'AzureMonitor' |
| Name |
Description |
Value |
| resourceId |
Resource ID. |
string |
| sourceType |
Ingestion source type. |
'Resource' |
ResourceReference
ARM template resource definition
The azureTrafficCollectors resource type can be deployed with operations that target:
Usage Examples
To create a Microsoft.NetworkFunction/azureTrafficCollectors resource, add the following JSON to your template.
{
"type": "Microsoft.NetworkFunction/azureTrafficCollectors",
"apiVersion": "2022-05-01",
"name": "string",
"location": "string",
"properties": {
"collectorPolicies": [
{
"properties": {
"emissionPolicies": [
{
"emissionDestinations": [
{
"destinationType": "string"
}
],
"emissionType": "string"
}
],
"ingestionPolicy": {
"ingestionSources": [
{
"resourceId": "string",
"sourceType": "string"
}
],
"ingestionType": "string"
}
}
}
],
"virtualHub": {
}
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.NetworkFunction/azureTrafficCollectors
| Name |
Description |
Value |
| apiVersion |
The api version |
'2022-05-01' |
| location |
Resource location. |
string |
| name |
The resource name |
string (required) |
| properties |
Properties of the Azure Traffic Collector. |
AzureTrafficCollectorPropertiesFormat |
| tags |
Resource tags |
Dictionary of tag names and values. See Tags in templates |
| type |
The resource type |
'Microsoft.NetworkFunction/azureTrafficCollectors' |
| Name |
Description |
Value |
| collectorPolicies |
Collector Policies for Azure Traffic Collector. |
CollectorPolicy[] |
| virtualHub |
The virtualHub to which the Azure Traffic Collector belongs. |
ResourceReference |
CollectorPolicy
| Name |
Description |
Value |
| emissionDestinations |
Emission policy destinations. |
EmissionPolicyDestination[] |
| emissionType |
Emission format type. |
'IPFIX' |
EmissionPolicyDestination
| Name |
Description |
Value |
| destinationType |
Emission destination type. |
'AzureMonitor' |
| Name |
Description |
Value |
| resourceId |
Resource ID. |
string |
| sourceType |
Ingestion source type. |
'Resource' |
ResourceReference
The azureTrafficCollectors 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
A basic example of deploying Network Function Azure Traffic Collector.
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" "azureTrafficCollector" {
type = "Microsoft.NetworkFunction/azureTrafficCollectors@2022-11-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {}
}
}
To create a Microsoft.NetworkFunction/azureTrafficCollectors resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.NetworkFunction/azureTrafficCollectors@2022-05-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
collectorPolicies = [
{
properties = {
emissionPolicies = [
{
emissionDestinations = [
{
destinationType = "string"
}
]
emissionType = "string"
}
]
ingestionPolicy = {
ingestionSources = [
{
resourceId = "string"
sourceType = "string"
}
]
ingestionType = "string"
}
}
}
]
virtualHub = {
}
}
}
}
Property Values
Microsoft.NetworkFunction/azureTrafficCollectors
| Name |
Description |
Value |
| location |
Resource location. |
string |
| name |
The resource name |
string (required) |
| properties |
Properties of the Azure Traffic Collector. |
AzureTrafficCollectorPropertiesFormat |
| tags |
Resource tags |
Dictionary of tag names and values. |
| type |
The resource type |
"Microsoft.NetworkFunction/azureTrafficCollectors@2022-05-01" |
| Name |
Description |
Value |
| collectorPolicies |
Collector Policies for Azure Traffic Collector. |
CollectorPolicy[] |
| virtualHub |
The virtualHub to which the Azure Traffic Collector belongs. |
ResourceReference |
CollectorPolicy
| Name |
Description |
Value |
| emissionDestinations |
Emission policy destinations. |
EmissionPolicyDestination[] |
| emissionType |
Emission format type. |
'IPFIX' |
EmissionPolicyDestination
| Name |
Description |
Value |
| destinationType |
Emission destination type. |
'AzureMonitor' |
| Name |
Description |
Value |
| resourceId |
Resource ID. |
string |
| sourceType |
Ingestion source type. |
'Resource' |
ResourceReference