Microsoft.Network networkWatchers 2021-05-01
The networkWatchers 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.
To create a Microsoft.Network/networkWatchers resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/networkWatchers@2021-05-01' = {
location: 'string'
name: 'string'
properties: {}
tags: {
{customized property}: 'string'
}
}
Name | Description | Value |
---|---|---|
location | Resource location. | string |
name | The resource name | string (required) |
properties | Properties of the network watcher. | NetworkWatcherPropertiesFormat |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
Name | Description | Value |
---|
Name | Description | Value |
---|
The following Azure Verified Modules can be used to deploy this resource type.
Module | Description |
---|---|
Network Watcher | AVM Resource Module for Network Watcher |
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
Bicep File | Description |
---|---|
Create a Network Watcher | This template creates a Network Watcher resource. |
Enable NSG Flow Logs | This template create an NSG Flow Logs resource |
The networkWatchers 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.
To create a Microsoft.Network/networkWatchers resource, add the following JSON to your template.
{
"type": "Microsoft.Network/networkWatchers",
"apiVersion": "2021-05-01",
"name": "string",
"location": "string",
"properties": {
},
"tags": {
"{customized property}": "string"
}
}
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2021-05-01' |
location | Resource location. | string |
name | The resource name | string (required) |
properties | Properties of the network watcher. | NetworkWatcherPropertiesFormat |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
type | The resource type | 'Microsoft.Network/networkWatchers' |
Name | Description | Value |
---|
Name | Description | Value |
---|
The following Azure Quickstart templates deploy this resource type.
Template | Description |
---|---|
Create a Network Watcher |
This template creates a Network Watcher resource. |
Enable NSG Flow Logs |
This template create an NSG Flow Logs resource |
The networkWatchers resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
To create a Microsoft.Network/networkWatchers resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/networkWatchers@2021-05-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
}
})
}
Name | Description | Value |
---|---|---|
location | Resource location. | string |
name | The resource name | string (required) |
properties | Properties of the network watcher. | NetworkWatcherPropertiesFormat |
tags | Resource tags | Dictionary of tag names and values. |
type | The resource type | "Microsoft.Network/networkWatchers@2021-05-01" |
Name | Description | Value |
---|
Name | Description | Value |
---|
The following Azure Verified Modules can be used to deploy this resource type.
Module | Description |
---|---|
Azure Network Watcher | AVM Resource Module for Azure Network Watcher |