Skip to content

Instantly share code, notes, and snippets.

@JayDoubleu
Created May 17, 2023 17:44
Show Gist options
  • Save JayDoubleu/79145df9aced80633f8e392f85a6e101 to your computer and use it in GitHub Desktop.
Save JayDoubleu/79145df9aced80633f8e392f85a6e101 to your computer and use it in GitHub Desktop.
Bicep code to deploy network watchers
param tags object = {}
param environment
param prefix string
param regions array = [
'uksouth'
'ukwest'
'northeurope'
'westeurope'
'eastus'
'southcentralus'
]
var abbrev = 'nw'
resource networkWatchers 'Microsoft.Network/networkWatchers@2022-07-01' = [for region in regions: {
name: '${abbrev}-${prefix}-${environment}-${region}'
location: region
tags: tags
properties: {}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment