We recommend using Azure Native.
azure.network.NetworkConnectionMonitor
Explore with Pulumi AI
Manages a Network Connection Monitor.
NOTE: Any Network Connection Monitor resource created with API versions 2019-06-01 or earlier (v1) are now incompatible with this provider, which now only supports v2.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-Watcher-resources",
location: "West Europe",
});
const exampleNetworkWatcher = new azure.network.NetworkWatcher("example", {
name: "example-Watcher",
location: example.location,
resourceGroupName: example.name,
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
name: "example-Vnet",
addressSpaces: ["10.0.0.0/16"],
location: example.location,
resourceGroupName: example.name,
});
const exampleSubnet = new azure.network.Subnet("example", {
name: "example-Subnet",
resourceGroupName: example.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["10.0.2.0/24"],
});
const exampleNetworkInterface = new azure.network.NetworkInterface("example", {
name: "example-Nic",
location: example.location,
resourceGroupName: example.name,
ipConfigurations: [{
name: "testconfiguration1",
subnetId: exampleSubnet.id,
privateIpAddressAllocation: "Dynamic",
}],
});
const exampleVirtualMachine = new azure.compute.VirtualMachine("example", {
name: "example-VM",
location: example.location,
resourceGroupName: example.name,
networkInterfaceIds: [exampleNetworkInterface.id],
vmSize: "Standard_D2s_v3",
storageImageReference: {
publisher: "Canonical",
offer: "0001-com-ubuntu-server-jammy",
sku: "22_04-lts",
version: "latest",
},
storageOsDisk: {
name: "osdisk-example01",
caching: "ReadWrite",
createOption: "FromImage",
managedDiskType: "Standard_LRS",
},
osProfile: {
computerName: "hostnametest01",
adminUsername: "testadmin",
adminPassword: "Password1234!",
},
osProfileLinuxConfig: {
disablePasswordAuthentication: false,
},
});
const exampleExtension = new azure.compute.Extension("example", {
name: "example-VMExtension",
virtualMachineId: exampleVirtualMachine.id,
publisher: "Microsoft.Azure.NetworkWatcher",
type: "NetworkWatcherAgentLinux",
typeHandlerVersion: "1.4",
autoUpgradeMinorVersion: true,
});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
name: "example-Workspace",
location: example.location,
resourceGroupName: example.name,
sku: "PerGB2018",
});
const exampleNetworkConnectionMonitor = new azure.network.NetworkConnectionMonitor("example", {
name: "example-Monitor",
networkWatcherId: exampleNetworkWatcher.id,
location: exampleNetworkWatcher.location,
endpoints: [
{
name: "source",
targetResourceId: exampleVirtualMachine.id,
filter: {
items: [{
address: exampleVirtualMachine.id,
type: "AgentAddress",
}],
type: "Include",
},
},
{
name: "destination",
address: "mycompany.io",
},
],
testConfigurations: [{
name: "tcpName",
protocol: "Tcp",
testFrequencyInSeconds: 60,
tcpConfiguration: {
port: 80,
},
}],
testGroups: [{
name: "exampletg",
destinationEndpoints: ["destination"],
sourceEndpoints: ["source"],
testConfigurationNames: ["tcpName"],
}],
notes: "examplenote",
outputWorkspaceResourceIds: [exampleAnalyticsWorkspace.id],
}, {
dependsOn: [exampleExtension],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-Watcher-resources",
location="West Europe")
example_network_watcher = azure.network.NetworkWatcher("example",
name="example-Watcher",
location=example.location,
resource_group_name=example.name)
example_virtual_network = azure.network.VirtualNetwork("example",
name="example-Vnet",
address_spaces=["10.0.0.0/16"],
location=example.location,
resource_group_name=example.name)
example_subnet = azure.network.Subnet("example",
name="example-Subnet",
resource_group_name=example.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["10.0.2.0/24"])
example_network_interface = azure.network.NetworkInterface("example",
name="example-Nic",
location=example.location,
resource_group_name=example.name,
ip_configurations=[{
"name": "testconfiguration1",
"subnet_id": example_subnet.id,
"private_ip_address_allocation": "Dynamic",
}])
example_virtual_machine = azure.compute.VirtualMachine("example",
name="example-VM",
location=example.location,
resource_group_name=example.name,
network_interface_ids=[example_network_interface.id],
vm_size="Standard_D2s_v3",
storage_image_reference={
"publisher": "Canonical",
"offer": "0001-com-ubuntu-server-jammy",
"sku": "22_04-lts",
"version": "latest",
},
storage_os_disk={
"name": "osdisk-example01",
"caching": "ReadWrite",
"create_option": "FromImage",
"managed_disk_type": "Standard_LRS",
},
os_profile={
"computer_name": "hostnametest01",
"admin_username": "testadmin",
"admin_password": "Password1234!",
},
os_profile_linux_config={
"disable_password_authentication": False,
})
example_extension = azure.compute.Extension("example",
name="example-VMExtension",
virtual_machine_id=example_virtual_machine.id,
publisher="Microsoft.Azure.NetworkWatcher",
type="NetworkWatcherAgentLinux",
type_handler_version="1.4",
auto_upgrade_minor_version=True)
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
name="example-Workspace",
location=example.location,
resource_group_name=example.name,
sku="PerGB2018")
example_network_connection_monitor = azure.network.NetworkConnectionMonitor("example",
name="example-Monitor",
network_watcher_id=example_network_watcher.id,
location=example_network_watcher.location,
endpoints=[
{
"name": "source",
"target_resource_id": example_virtual_machine.id,
"filter": {
"items": [{
"address": example_virtual_machine.id,
"type": "AgentAddress",
}],
"type": "Include",
},
},
{
"name": "destination",
"address": "mycompany.io",
},
],
test_configurations=[{
"name": "tcpName",
"protocol": "Tcp",
"test_frequency_in_seconds": 60,
"tcp_configuration": {
"port": 80,
},
}],
test_groups=[{
"name": "exampletg",
"destination_endpoints": ["destination"],
"source_endpoints": ["source"],
"test_configuration_names": ["tcpName"],
}],
notes="examplenote",
output_workspace_resource_ids=[example_analytics_workspace.id],
opts = pulumi.ResourceOptions(depends_on=[example_extension]))
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-Watcher-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleNetworkWatcher, err := network.NewNetworkWatcher(ctx, "example", &network.NetworkWatcherArgs{
Name: pulumi.String("example-Watcher"),
Location: example.Location,
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
Name: pulumi.String("example-Vnet"),
AddressSpaces: pulumi.StringArray{
pulumi.String("10.0.0.0/16"),
},
Location: example.Location,
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
Name: pulumi.String("example-Subnet"),
ResourceGroupName: example.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("10.0.2.0/24"),
},
})
if err != nil {
return err
}
exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "example", &network.NetworkInterfaceArgs{
Name: pulumi.String("example-Nic"),
Location: example.Location,
ResourceGroupName: example.Name,
IpConfigurations: network.NetworkInterfaceIpConfigurationArray{
&network.NetworkInterfaceIpConfigurationArgs{
Name: pulumi.String("testconfiguration1"),
SubnetId: exampleSubnet.ID(),
PrivateIpAddressAllocation: pulumi.String("Dynamic"),
},
},
})
if err != nil {
return err
}
exampleVirtualMachine, err := compute.NewVirtualMachine(ctx, "example", &compute.VirtualMachineArgs{
Name: pulumi.String("example-VM"),
Location: example.Location,
ResourceGroupName: example.Name,
NetworkInterfaceIds: pulumi.StringArray{
exampleNetworkInterface.ID(),
},
VmSize: pulumi.String("Standard_D2s_v3"),
StorageImageReference: &compute.VirtualMachineStorageImageReferenceArgs{
Publisher: pulumi.String("Canonical"),
Offer: pulumi.String("0001-com-ubuntu-server-jammy"),
Sku: pulumi.String("22_04-lts"),
Version: pulumi.String("latest"),
},
StorageOsDisk: &compute.VirtualMachineStorageOsDiskArgs{
Name: pulumi.String("osdisk-example01"),
Caching: pulumi.String("ReadWrite"),
CreateOption: pulumi.String("FromImage"),
ManagedDiskType: pulumi.String("Standard_LRS"),
},
OsProfile: &compute.VirtualMachineOsProfileArgs{
ComputerName: pulumi.String("hostnametest01"),
AdminUsername: pulumi.String("testadmin"),
AdminPassword: pulumi.String("Password1234!"),
},
OsProfileLinuxConfig: &compute.VirtualMachineOsProfileLinuxConfigArgs{
DisablePasswordAuthentication: pulumi.Bool(false),
},
})
if err != nil {
return err
}
exampleExtension, err := compute.NewExtension(ctx, "example", &compute.ExtensionArgs{
Name: pulumi.String("example-VMExtension"),
VirtualMachineId: exampleVirtualMachine.ID(),
Publisher: pulumi.String("Microsoft.Azure.NetworkWatcher"),
Type: pulumi.String("NetworkWatcherAgentLinux"),
TypeHandlerVersion: pulumi.String("1.4"),
AutoUpgradeMinorVersion: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
Name: pulumi.String("example-Workspace"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: pulumi.String("PerGB2018"),
})
if err != nil {
return err
}
_, err = network.NewNetworkConnectionMonitor(ctx, "example", &network.NetworkConnectionMonitorArgs{
Name: pulumi.String("example-Monitor"),
NetworkWatcherId: exampleNetworkWatcher.ID(),
Location: exampleNetworkWatcher.Location,
Endpoints: network.NetworkConnectionMonitorEndpointArray{
&network.NetworkConnectionMonitorEndpointArgs{
Name: pulumi.String("source"),
TargetResourceId: exampleVirtualMachine.ID(),
Filter: &network.NetworkConnectionMonitorEndpointFilterArgs{
Items: network.NetworkConnectionMonitorEndpointFilterItemArray{
&network.NetworkConnectionMonitorEndpointFilterItemArgs{
Address: exampleVirtualMachine.ID(),
Type: pulumi.String("AgentAddress"),
},
},
Type: pulumi.String("Include"),
},
},
&network.NetworkConnectionMonitorEndpointArgs{
Name: pulumi.String("destination"),
Address: pulumi.String("mycompany.io"),
},
},
TestConfigurations: network.NetworkConnectionMonitorTestConfigurationArray{
&network.NetworkConnectionMonitorTestConfigurationArgs{
Name: pulumi.String("tcpName"),
Protocol: pulumi.String("Tcp"),
TestFrequencyInSeconds: pulumi.Int(60),
TcpConfiguration: &network.NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs{
Port: pulumi.Int(80),
},
},
},
TestGroups: network.NetworkConnectionMonitorTestGroupArray{
&network.NetworkConnectionMonitorTestGroupArgs{
Name: pulumi.String("exampletg"),
DestinationEndpoints: pulumi.StringArray{
pulumi.String("destination"),
},
SourceEndpoints: pulumi.StringArray{
pulumi.String("source"),
},
TestConfigurationNames: pulumi.StringArray{
pulumi.String("tcpName"),
},
},
},
Notes: pulumi.String("examplenote"),
OutputWorkspaceResourceIds: pulumi.StringArray{
exampleAnalyticsWorkspace.ID(),
},
}, pulumi.DependsOn([]pulumi.Resource{
exampleExtension,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-Watcher-resources",
Location = "West Europe",
});
var exampleNetworkWatcher = new Azure.Network.NetworkWatcher("example", new()
{
Name = "example-Watcher",
Location = example.Location,
ResourceGroupName = example.Name,
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
{
Name = "example-Vnet",
AddressSpaces = new[]
{
"10.0.0.0/16",
},
Location = example.Location,
ResourceGroupName = example.Name,
});
var exampleSubnet = new Azure.Network.Subnet("example", new()
{
Name = "example-Subnet",
ResourceGroupName = example.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes = new[]
{
"10.0.2.0/24",
},
});
var exampleNetworkInterface = new Azure.Network.NetworkInterface("example", new()
{
Name = "example-Nic",
Location = example.Location,
ResourceGroupName = example.Name,
IpConfigurations = new[]
{
new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs
{
Name = "testconfiguration1",
SubnetId = exampleSubnet.Id,
PrivateIpAddressAllocation = "Dynamic",
},
},
});
var exampleVirtualMachine = new Azure.Compute.VirtualMachine("example", new()
{
Name = "example-VM",
Location = example.Location,
ResourceGroupName = example.Name,
NetworkInterfaceIds = new[]
{
exampleNetworkInterface.Id,
},
VmSize = "Standard_D2s_v3",
StorageImageReference = new Azure.Compute.Inputs.VirtualMachineStorageImageReferenceArgs
{
Publisher = "Canonical",
Offer = "0001-com-ubuntu-server-jammy",
Sku = "22_04-lts",
Version = "latest",
},
StorageOsDisk = new Azure.Compute.Inputs.VirtualMachineStorageOsDiskArgs
{
Name = "osdisk-example01",
Caching = "ReadWrite",
CreateOption = "FromImage",
ManagedDiskType = "Standard_LRS",
},
OsProfile = new Azure.Compute.Inputs.VirtualMachineOsProfileArgs
{
ComputerName = "hostnametest01",
AdminUsername = "testadmin",
AdminPassword = "Password1234!",
},
OsProfileLinuxConfig = new Azure.Compute.Inputs.VirtualMachineOsProfileLinuxConfigArgs
{
DisablePasswordAuthentication = false,
},
});
var exampleExtension = new Azure.Compute.Extension("example", new()
{
Name = "example-VMExtension",
VirtualMachineId = exampleVirtualMachine.Id,
Publisher = "Microsoft.Azure.NetworkWatcher",
Type = "NetworkWatcherAgentLinux",
TypeHandlerVersion = "1.4",
AutoUpgradeMinorVersion = true,
});
var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
{
Name = "example-Workspace",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = "PerGB2018",
});
var exampleNetworkConnectionMonitor = new Azure.Network.NetworkConnectionMonitor("example", new()
{
Name = "example-Monitor",
NetworkWatcherId = exampleNetworkWatcher.Id,
Location = exampleNetworkWatcher.Location,
Endpoints = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorEndpointArgs
{
Name = "source",
TargetResourceId = exampleVirtualMachine.Id,
Filter = new Azure.Network.Inputs.NetworkConnectionMonitorEndpointFilterArgs
{
Items = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorEndpointFilterItemArgs
{
Address = exampleVirtualMachine.Id,
Type = "AgentAddress",
},
},
Type = "Include",
},
},
new Azure.Network.Inputs.NetworkConnectionMonitorEndpointArgs
{
Name = "destination",
Address = "mycompany.io",
},
},
TestConfigurations = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationArgs
{
Name = "tcpName",
Protocol = "Tcp",
TestFrequencyInSeconds = 60,
TcpConfiguration = new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs
{
Port = 80,
},
},
},
TestGroups = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorTestGroupArgs
{
Name = "exampletg",
DestinationEndpoints = new[]
{
"destination",
},
SourceEndpoints = new[]
{
"source",
},
TestConfigurationNames = new[]
{
"tcpName",
},
},
},
Notes = "examplenote",
OutputWorkspaceResourceIds = new[]
{
exampleAnalyticsWorkspace.Id,
},
}, new CustomResourceOptions
{
DependsOn =
{
exampleExtension,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.NetworkWatcher;
import com.pulumi.azure.network.NetworkWatcherArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.NetworkInterface;
import com.pulumi.azure.network.NetworkInterfaceArgs;
import com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;
import com.pulumi.azure.compute.VirtualMachine;
import com.pulumi.azure.compute.VirtualMachineArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineStorageImageReferenceArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineStorageOsDiskArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineOsProfileArgs;
import com.pulumi.azure.compute.inputs.VirtualMachineOsProfileLinuxConfigArgs;
import com.pulumi.azure.compute.Extension;
import com.pulumi.azure.compute.ExtensionArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.network.NetworkConnectionMonitor;
import com.pulumi.azure.network.NetworkConnectionMonitorArgs;
import com.pulumi.azure.network.inputs.NetworkConnectionMonitorEndpointArgs;
import com.pulumi.azure.network.inputs.NetworkConnectionMonitorEndpointFilterArgs;
import com.pulumi.azure.network.inputs.NetworkConnectionMonitorTestConfigurationArgs;
import com.pulumi.azure.network.inputs.NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs;
import com.pulumi.azure.network.inputs.NetworkConnectionMonitorTestGroupArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-Watcher-resources")
.location("West Europe")
.build());
var exampleNetworkWatcher = new NetworkWatcher("exampleNetworkWatcher", NetworkWatcherArgs.builder()
.name("example-Watcher")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("example-Vnet")
.addressSpaces("10.0.0.0/16")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.name("example-Subnet")
.resourceGroupName(example.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.2.0/24")
.build());
var exampleNetworkInterface = new NetworkInterface("exampleNetworkInterface", NetworkInterfaceArgs.builder()
.name("example-Nic")
.location(example.location())
.resourceGroupName(example.name())
.ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()
.name("testconfiguration1")
.subnetId(exampleSubnet.id())
.privateIpAddressAllocation("Dynamic")
.build())
.build());
var exampleVirtualMachine = new VirtualMachine("exampleVirtualMachine", VirtualMachineArgs.builder()
.name("example-VM")
.location(example.location())
.resourceGroupName(example.name())
.networkInterfaceIds(exampleNetworkInterface.id())
.vmSize("Standard_D2s_v3")
.storageImageReference(VirtualMachineStorageImageReferenceArgs.builder()
.publisher("Canonical")
.offer("0001-com-ubuntu-server-jammy")
.sku("22_04-lts")
.version("latest")
.build())
.storageOsDisk(VirtualMachineStorageOsDiskArgs.builder()
.name("osdisk-example01")
.caching("ReadWrite")
.createOption("FromImage")
.managedDiskType("Standard_LRS")
.build())
.osProfile(VirtualMachineOsProfileArgs.builder()
.computerName("hostnametest01")
.adminUsername("testadmin")
.adminPassword("Password1234!")
.build())
.osProfileLinuxConfig(VirtualMachineOsProfileLinuxConfigArgs.builder()
.disablePasswordAuthentication(false)
.build())
.build());
var exampleExtension = new Extension("exampleExtension", ExtensionArgs.builder()
.name("example-VMExtension")
.virtualMachineId(exampleVirtualMachine.id())
.publisher("Microsoft.Azure.NetworkWatcher")
.type("NetworkWatcherAgentLinux")
.typeHandlerVersion("1.4")
.autoUpgradeMinorVersion(true)
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.name("example-Workspace")
.location(example.location())
.resourceGroupName(example.name())
.sku("PerGB2018")
.build());
var exampleNetworkConnectionMonitor = new NetworkConnectionMonitor("exampleNetworkConnectionMonitor", NetworkConnectionMonitorArgs.builder()
.name("example-Monitor")
.networkWatcherId(exampleNetworkWatcher.id())
.location(exampleNetworkWatcher.location())
.endpoints(
NetworkConnectionMonitorEndpointArgs.builder()
.name("source")
.targetResourceId(exampleVirtualMachine.id())
.filter(NetworkConnectionMonitorEndpointFilterArgs.builder()
.items(NetworkConnectionMonitorEndpointFilterItemArgs.builder()
.address(exampleVirtualMachine.id())
.type("AgentAddress")
.build())
.type("Include")
.build())
.build(),
NetworkConnectionMonitorEndpointArgs.builder()
.name("destination")
.address("mycompany.io")
.build())
.testConfigurations(NetworkConnectionMonitorTestConfigurationArgs.builder()
.name("tcpName")
.protocol("Tcp")
.testFrequencyInSeconds(60)
.tcpConfiguration(NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs.builder()
.port(80)
.build())
.build())
.testGroups(NetworkConnectionMonitorTestGroupArgs.builder()
.name("exampletg")
.destinationEndpoints("destination")
.sourceEndpoints("source")
.testConfigurationNames("tcpName")
.build())
.notes("examplenote")
.outputWorkspaceResourceIds(exampleAnalyticsWorkspace.id())
.build(), CustomResourceOptions.builder()
.dependsOn(exampleExtension)
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-Watcher-resources
location: West Europe
exampleNetworkWatcher:
type: azure:network:NetworkWatcher
name: example
properties:
name: example-Watcher
location: ${example.location}
resourceGroupName: ${example.name}
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-Vnet
addressSpaces:
- 10.0.0.0/16
location: ${example.location}
resourceGroupName: ${example.name}
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: example-Subnet
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.0.2.0/24
exampleNetworkInterface:
type: azure:network:NetworkInterface
name: example
properties:
name: example-Nic
location: ${example.location}
resourceGroupName: ${example.name}
ipConfigurations:
- name: testconfiguration1
subnetId: ${exampleSubnet.id}
privateIpAddressAllocation: Dynamic
exampleVirtualMachine:
type: azure:compute:VirtualMachine
name: example
properties:
name: example-VM
location: ${example.location}
resourceGroupName: ${example.name}
networkInterfaceIds:
- ${exampleNetworkInterface.id}
vmSize: Standard_D2s_v3
storageImageReference:
publisher: Canonical
offer: 0001-com-ubuntu-server-jammy
sku: 22_04-lts
version: latest
storageOsDisk:
name: osdisk-example01
caching: ReadWrite
createOption: FromImage
managedDiskType: Standard_LRS
osProfile:
computerName: hostnametest01
adminUsername: testadmin
adminPassword: Password1234!
osProfileLinuxConfig:
disablePasswordAuthentication: false
exampleExtension:
type: azure:compute:Extension
name: example
properties:
name: example-VMExtension
virtualMachineId: ${exampleVirtualMachine.id}
publisher: Microsoft.Azure.NetworkWatcher
type: NetworkWatcherAgentLinux
typeHandlerVersion: '1.4'
autoUpgradeMinorVersion: true
exampleAnalyticsWorkspace:
type: azure:operationalinsights:AnalyticsWorkspace
name: example
properties:
name: example-Workspace
location: ${example.location}
resourceGroupName: ${example.name}
sku: PerGB2018
exampleNetworkConnectionMonitor:
type: azure:network:NetworkConnectionMonitor
name: example
properties:
name: example-Monitor
networkWatcherId: ${exampleNetworkWatcher.id}
location: ${exampleNetworkWatcher.location}
endpoints:
- name: source
targetResourceId: ${exampleVirtualMachine.id}
filter:
items:
- address: ${exampleVirtualMachine.id}
type: AgentAddress
type: Include
- name: destination
address: mycompany.io
testConfigurations:
- name: tcpName
protocol: Tcp
testFrequencyInSeconds: 60
tcpConfiguration:
port: 80
testGroups:
- name: exampletg
destinationEndpoints:
- destination
sourceEndpoints:
- source
testConfigurationNames:
- tcpName
notes: examplenote
outputWorkspaceResourceIds:
- ${exampleAnalyticsWorkspace.id}
options:
dependson:
- ${exampleExtension}
Create NetworkConnectionMonitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkConnectionMonitor(name: string, args: NetworkConnectionMonitorArgs, opts?: CustomResourceOptions);
@overload
def NetworkConnectionMonitor(resource_name: str,
args: NetworkConnectionMonitorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkConnectionMonitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
endpoints: Optional[Sequence[NetworkConnectionMonitorEndpointArgs]] = None,
network_watcher_id: Optional[str] = None,
test_configurations: Optional[Sequence[NetworkConnectionMonitorTestConfigurationArgs]] = None,
test_groups: Optional[Sequence[NetworkConnectionMonitorTestGroupArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
notes: Optional[str] = None,
output_workspace_resource_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewNetworkConnectionMonitor(ctx *Context, name string, args NetworkConnectionMonitorArgs, opts ...ResourceOption) (*NetworkConnectionMonitor, error)
public NetworkConnectionMonitor(string name, NetworkConnectionMonitorArgs args, CustomResourceOptions? opts = null)
public NetworkConnectionMonitor(String name, NetworkConnectionMonitorArgs args)
public NetworkConnectionMonitor(String name, NetworkConnectionMonitorArgs args, CustomResourceOptions options)
type: azure:network:NetworkConnectionMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkConnectionMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkConnectionMonitorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkConnectionMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkConnectionMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkConnectionMonitorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkConnectionMonitorResource = new Azure.Network.NetworkConnectionMonitor("networkConnectionMonitorResource", new()
{
Endpoints = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorEndpointArgs
{
Name = "string",
Address = "string",
CoverageLevel = "string",
ExcludedIpAddresses = new[]
{
"string",
},
Filter = new Azure.Network.Inputs.NetworkConnectionMonitorEndpointFilterArgs
{
Items = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorEndpointFilterItemArgs
{
Address = "string",
Type = "string",
},
},
Type = "string",
},
IncludedIpAddresses = new[]
{
"string",
},
TargetResourceId = "string",
TargetResourceType = "string",
},
},
NetworkWatcherId = "string",
TestConfigurations = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationArgs
{
Name = "string",
Protocol = "string",
HttpConfiguration = new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationHttpConfigurationArgs
{
Method = "string",
Path = "string",
Port = 0,
PreferHttps = false,
RequestHeaders = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderArgs
{
Name = "string",
Value = "string",
},
},
ValidStatusCodeRanges = new[]
{
"string",
},
},
IcmpConfiguration = new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationIcmpConfigurationArgs
{
TraceRouteEnabled = false,
},
PreferredIpVersion = "string",
SuccessThreshold = new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationSuccessThresholdArgs
{
ChecksFailedPercent = 0,
RoundTripTimeMs = 0,
},
TcpConfiguration = new Azure.Network.Inputs.NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs
{
Port = 0,
DestinationPortBehavior = "string",
TraceRouteEnabled = false,
},
TestFrequencyInSeconds = 0,
},
},
TestGroups = new[]
{
new Azure.Network.Inputs.NetworkConnectionMonitorTestGroupArgs
{
DestinationEndpoints = new[]
{
"string",
},
Name = "string",
SourceEndpoints = new[]
{
"string",
},
TestConfigurationNames = new[]
{
"string",
},
Enabled = false,
},
},
Location = "string",
Name = "string",
Notes = "string",
OutputWorkspaceResourceIds = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewNetworkConnectionMonitor(ctx, "networkConnectionMonitorResource", &network.NetworkConnectionMonitorArgs{
Endpoints: network.NetworkConnectionMonitorEndpointArray{
&network.NetworkConnectionMonitorEndpointArgs{
Name: pulumi.String("string"),
Address: pulumi.String("string"),
CoverageLevel: pulumi.String("string"),
ExcludedIpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
Filter: &network.NetworkConnectionMonitorEndpointFilterArgs{
Items: network.NetworkConnectionMonitorEndpointFilterItemArray{
&network.NetworkConnectionMonitorEndpointFilterItemArgs{
Address: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Type: pulumi.String("string"),
},
IncludedIpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
TargetResourceId: pulumi.String("string"),
TargetResourceType: pulumi.String("string"),
},
},
NetworkWatcherId: pulumi.String("string"),
TestConfigurations: network.NetworkConnectionMonitorTestConfigurationArray{
&network.NetworkConnectionMonitorTestConfigurationArgs{
Name: pulumi.String("string"),
Protocol: pulumi.String("string"),
HttpConfiguration: &network.NetworkConnectionMonitorTestConfigurationHttpConfigurationArgs{
Method: pulumi.String("string"),
Path: pulumi.String("string"),
Port: pulumi.Int(0),
PreferHttps: pulumi.Bool(false),
RequestHeaders: network.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderArray{
&network.NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ValidStatusCodeRanges: pulumi.StringArray{
pulumi.String("string"),
},
},
IcmpConfiguration: &network.NetworkConnectionMonitorTestConfigurationIcmpConfigurationArgs{
TraceRouteEnabled: pulumi.Bool(false),
},
PreferredIpVersion: pulumi.String("string"),
SuccessThreshold: &network.NetworkConnectionMonitorTestConfigurationSuccessThresholdArgs{
ChecksFailedPercent: pulumi.Int(0),
RoundTripTimeMs: pulumi.Float64(0),
},
TcpConfiguration: &network.NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs{
Port: pulumi.Int(0),
DestinationPortBehavior: pulumi.String("string"),
TraceRouteEnabled: pulumi.Bool(false),
},
TestFrequencyInSeconds: pulumi.Int(0),
},
},
TestGroups: network.NetworkConnectionMonitorTestGroupArray{
&network.NetworkConnectionMonitorTestGroupArgs{
DestinationEndpoints: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
SourceEndpoints: pulumi.StringArray{
pulumi.String("string"),
},
TestConfigurationNames: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Notes: pulumi.String("string"),
OutputWorkspaceResourceIds: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkConnectionMonitorResource = new NetworkConnectionMonitor("networkConnectionMonitorResource", NetworkConnectionMonitorArgs.builder()
.endpoints(NetworkConnectionMonitorEndpointArgs.builder()
.name("string")
.address("string")
.coverageLevel("string")
.excludedIpAddresses("string")
.filter(NetworkConnectionMonitorEndpointFilterArgs.builder()
.items(NetworkConnectionMonitorEndpointFilterItemArgs.builder()
.address("string")
.type("string")
.build())
.type("string")
.build())
.includedIpAddresses("string")
.targetResourceId("string")
.targetResourceType("string")
.build())
.networkWatcherId("string")
.testConfigurations(NetworkConnectionMonitorTestConfigurationArgs.builder()
.name("string")
.protocol("string")
.httpConfiguration(NetworkConnectionMonitorTestConfigurationHttpConfigurationArgs.builder()
.method("string")
.path("string")
.port(0)
.preferHttps(false)
.requestHeaders(NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderArgs.builder()
.name("string")
.value("string")
.build())
.validStatusCodeRanges("string")
.build())
.icmpConfiguration(NetworkConnectionMonitorTestConfigurationIcmpConfigurationArgs.builder()
.traceRouteEnabled(false)
.build())
.preferredIpVersion("string")
.successThreshold(NetworkConnectionMonitorTestConfigurationSuccessThresholdArgs.builder()
.checksFailedPercent(0)
.roundTripTimeMs(0)
.build())
.tcpConfiguration(NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs.builder()
.port(0)
.destinationPortBehavior("string")
.traceRouteEnabled(false)
.build())
.testFrequencyInSeconds(0)
.build())
.testGroups(NetworkConnectionMonitorTestGroupArgs.builder()
.destinationEndpoints("string")
.name("string")
.sourceEndpoints("string")
.testConfigurationNames("string")
.enabled(false)
.build())
.location("string")
.name("string")
.notes("string")
.outputWorkspaceResourceIds("string")
.tags(Map.of("string", "string"))
.build());
network_connection_monitor_resource = azure.network.NetworkConnectionMonitor("networkConnectionMonitorResource",
endpoints=[{
"name": "string",
"address": "string",
"coverage_level": "string",
"excluded_ip_addresses": ["string"],
"filter": {
"items": [{
"address": "string",
"type": "string",
}],
"type": "string",
},
"included_ip_addresses": ["string"],
"target_resource_id": "string",
"target_resource_type": "string",
}],
network_watcher_id="string",
test_configurations=[{
"name": "string",
"protocol": "string",
"http_configuration": {
"method": "string",
"path": "string",
"port": 0,
"prefer_https": False,
"request_headers": [{
"name": "string",
"value": "string",
}],
"valid_status_code_ranges": ["string"],
},
"icmp_configuration": {
"trace_route_enabled": False,
},
"preferred_ip_version": "string",
"success_threshold": {
"checks_failed_percent": 0,
"round_trip_time_ms": 0,
},
"tcp_configuration": {
"port": 0,
"destination_port_behavior": "string",
"trace_route_enabled": False,
},
"test_frequency_in_seconds": 0,
}],
test_groups=[{
"destination_endpoints": ["string"],
"name": "string",
"source_endpoints": ["string"],
"test_configuration_names": ["string"],
"enabled": False,
}],
location="string",
name="string",
notes="string",
output_workspace_resource_ids=["string"],
tags={
"string": "string",
})
const networkConnectionMonitorResource = new azure.network.NetworkConnectionMonitor("networkConnectionMonitorResource", {
endpoints: [{
name: "string",
address: "string",
coverageLevel: "string",
excludedIpAddresses: ["string"],
filter: {
items: [{
address: "string",
type: "string",
}],
type: "string",
},
includedIpAddresses: ["string"],
targetResourceId: "string",
targetResourceType: "string",
}],
networkWatcherId: "string",
testConfigurations: [{
name: "string",
protocol: "string",
httpConfiguration: {
method: "string",
path: "string",
port: 0,
preferHttps: false,
requestHeaders: [{
name: "string",
value: "string",
}],
validStatusCodeRanges: ["string"],
},
icmpConfiguration: {
traceRouteEnabled: false,
},
preferredIpVersion: "string",
successThreshold: {
checksFailedPercent: 0,
roundTripTimeMs: 0,
},
tcpConfiguration: {
port: 0,
destinationPortBehavior: "string",
traceRouteEnabled: false,
},
testFrequencyInSeconds: 0,
}],
testGroups: [{
destinationEndpoints: ["string"],
name: "string",
sourceEndpoints: ["string"],
testConfigurationNames: ["string"],
enabled: false,
}],
location: "string",
name: "string",
notes: "string",
outputWorkspaceResourceIds: ["string"],
tags: {
string: "string",
},
});
type: azure:network:NetworkConnectionMonitor
properties:
endpoints:
- address: string
coverageLevel: string
excludedIpAddresses:
- string
filter:
items:
- address: string
type: string
type: string
includedIpAddresses:
- string
name: string
targetResourceId: string
targetResourceType: string
location: string
name: string
networkWatcherId: string
notes: string
outputWorkspaceResourceIds:
- string
tags:
string: string
testConfigurations:
- httpConfiguration:
method: string
path: string
port: 0
preferHttps: false
requestHeaders:
- name: string
value: string
validStatusCodeRanges:
- string
icmpConfiguration:
traceRouteEnabled: false
name: string
preferredIpVersion: string
protocol: string
successThreshold:
checksFailedPercent: 0
roundTripTimeMs: 0
tcpConfiguration:
destinationPortBehavior: string
port: 0
traceRouteEnabled: false
testFrequencyInSeconds: 0
testGroups:
- destinationEndpoints:
- string
enabled: false
name: string
sourceEndpoints:
- string
testConfigurationNames:
- string
NetworkConnectionMonitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NetworkConnectionMonitor resource accepts the following input properties:
- Endpoints
List<Network
Connection Monitor Endpoint> - A
endpoint
block as defined below. - Network
Watcher stringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- Test
Configurations List<NetworkConnection Monitor Test Configuration> - A
test_configuration
block as defined below. - Test
Groups List<NetworkConnection Monitor Test Group> - A
test_group
block as defined below. - Location string
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- Notes string
- The description of the Network Connection Monitor.
- Output
Workspace List<string>Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Network Connection Monitor.
- Endpoints
[]Network
Connection Monitor Endpoint Args - A
endpoint
block as defined below. - Network
Watcher stringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- Test
Configurations []NetworkConnection Monitor Test Configuration Args - A
test_configuration
block as defined below. - Test
Groups []NetworkConnection Monitor Test Group Args - A
test_group
block as defined below. - Location string
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- Notes string
- The description of the Network Connection Monitor.
- Output
Workspace []stringResource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- map[string]string
- A mapping of tags which should be assigned to the Network Connection Monitor.
- endpoints
List<Network
Connection Monitor Endpoint> - A
endpoint
block as defined below. - network
Watcher StringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- test
Configurations List<NetworkConnection Monitor Test Configuration> - A
test_configuration
block as defined below. - test
Groups List<NetworkConnection Monitor Test Group> - A
test_group
block as defined below. - location String
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- notes String
- The description of the Network Connection Monitor.
- output
Workspace List<String>Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Map<String,String>
- A mapping of tags which should be assigned to the Network Connection Monitor.
- endpoints
Network
Connection Monitor Endpoint[] - A
endpoint
block as defined below. - network
Watcher stringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- test
Configurations NetworkConnection Monitor Test Configuration[] - A
test_configuration
block as defined below. - test
Groups NetworkConnection Monitor Test Group[] - A
test_group
block as defined below. - location string
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- notes string
- The description of the Network Connection Monitor.
- output
Workspace string[]Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Network Connection Monitor.
- endpoints
Sequence[Network
Connection Monitor Endpoint Args] - A
endpoint
block as defined below. - network_
watcher_ strid - The ID of the Network Watcher. Changing this forces a new resource to be created.
- test_
configurations Sequence[NetworkConnection Monitor Test Configuration Args] - A
test_configuration
block as defined below. - test_
groups Sequence[NetworkConnection Monitor Test Group Args] - A
test_group
block as defined below. - location str
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name str
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- notes str
- The description of the Network Connection Monitor.
- output_
workspace_ Sequence[str]resource_ ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Network Connection Monitor.
- endpoints List<Property Map>
- A
endpoint
block as defined below. - network
Watcher StringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- test
Configurations List<Property Map> - A
test_configuration
block as defined below. - test
Groups List<Property Map> - A
test_group
block as defined below. - location String
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- notes String
- The description of the Network Connection Monitor.
- output
Workspace List<String>Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Map<String>
- A mapping of tags which should be assigned to the Network Connection Monitor.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkConnectionMonitor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NetworkConnectionMonitor Resource
Get an existing NetworkConnectionMonitor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkConnectionMonitorState, opts?: CustomResourceOptions): NetworkConnectionMonitor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endpoints: Optional[Sequence[NetworkConnectionMonitorEndpointArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
network_watcher_id: Optional[str] = None,
notes: Optional[str] = None,
output_workspace_resource_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
test_configurations: Optional[Sequence[NetworkConnectionMonitorTestConfigurationArgs]] = None,
test_groups: Optional[Sequence[NetworkConnectionMonitorTestGroupArgs]] = None) -> NetworkConnectionMonitor
func GetNetworkConnectionMonitor(ctx *Context, name string, id IDInput, state *NetworkConnectionMonitorState, opts ...ResourceOption) (*NetworkConnectionMonitor, error)
public static NetworkConnectionMonitor Get(string name, Input<string> id, NetworkConnectionMonitorState? state, CustomResourceOptions? opts = null)
public static NetworkConnectionMonitor get(String name, Output<String> id, NetworkConnectionMonitorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Endpoints
List<Network
Connection Monitor Endpoint> - A
endpoint
block as defined below. - Location string
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- Network
Watcher stringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- Notes string
- The description of the Network Connection Monitor.
- Output
Workspace List<string>Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Network Connection Monitor.
- Test
Configurations List<NetworkConnection Monitor Test Configuration> - A
test_configuration
block as defined below. - Test
Groups List<NetworkConnection Monitor Test Group> - A
test_group
block as defined below.
- Endpoints
[]Network
Connection Monitor Endpoint Args - A
endpoint
block as defined below. - Location string
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- Network
Watcher stringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- Notes string
- The description of the Network Connection Monitor.
- Output
Workspace []stringResource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- map[string]string
- A mapping of tags which should be assigned to the Network Connection Monitor.
- Test
Configurations []NetworkConnection Monitor Test Configuration Args - A
test_configuration
block as defined below. - Test
Groups []NetworkConnection Monitor Test Group Args - A
test_group
block as defined below.
- endpoints
List<Network
Connection Monitor Endpoint> - A
endpoint
block as defined below. - location String
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- network
Watcher StringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- notes String
- The description of the Network Connection Monitor.
- output
Workspace List<String>Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Map<String,String>
- A mapping of tags which should be assigned to the Network Connection Monitor.
- test
Configurations List<NetworkConnection Monitor Test Configuration> - A
test_configuration
block as defined below. - test
Groups List<NetworkConnection Monitor Test Group> - A
test_group
block as defined below.
- endpoints
Network
Connection Monitor Endpoint[] - A
endpoint
block as defined below. - location string
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- network
Watcher stringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- notes string
- The description of the Network Connection Monitor.
- output
Workspace string[]Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Network Connection Monitor.
- test
Configurations NetworkConnection Monitor Test Configuration[] - A
test_configuration
block as defined below. - test
Groups NetworkConnection Monitor Test Group[] - A
test_group
block as defined below.
- endpoints
Sequence[Network
Connection Monitor Endpoint Args] - A
endpoint
block as defined below. - location str
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name str
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- network_
watcher_ strid - The ID of the Network Watcher. Changing this forces a new resource to be created.
- notes str
- The description of the Network Connection Monitor.
- output_
workspace_ Sequence[str]resource_ ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Network Connection Monitor.
- test_
configurations Sequence[NetworkConnection Monitor Test Configuration Args] - A
test_configuration
block as defined below. - test_
groups Sequence[NetworkConnection Monitor Test Group Args] - A
test_group
block as defined below.
- endpoints List<Property Map>
- A
endpoint
block as defined below. - location String
- The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
- network
Watcher StringId - The ID of the Network Watcher. Changing this forces a new resource to be created.
- notes String
- The description of the Network Connection Monitor.
- output
Workspace List<String>Resource Ids - A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
- Map<String>
- A mapping of tags which should be assigned to the Network Connection Monitor.
- test
Configurations List<Property Map> - A
test_configuration
block as defined below. - test
Groups List<Property Map> - A
test_group
block as defined below.
Supporting Types
NetworkConnectionMonitorEndpoint, NetworkConnectionMonitorEndpointArgs
- Name string
- The name of the endpoint for the Network Connection Monitor .
- Address string
- The IP address or domain name of the Network Connection Monitor endpoint.
- Coverage
Level string - The test coverage for the Network Connection Monitor endpoint. Possible values are
AboveAverage
,Average
,BelowAverage
,Default
,Full
andLow
. - Excluded
Ip List<string>Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
- Filter
Network
Connection Monitor Endpoint Filter - A
filter
block as defined below. - Included
Ip List<string>Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
- Target
Resource stringId - The resource ID which is used as the endpoint by the Network Connection Monitor.
- Target
Resource stringType - The endpoint type of the Network Connection Monitor. Possible values are
AzureArcVM
,AzureSubnet
,AzureVM
,AzureVNet
,ExternalAddress
,MMAWorkspaceMachine
andMMAWorkspaceNetwork
.
- Name string
- The name of the endpoint for the Network Connection Monitor .
- Address string
- The IP address or domain name of the Network Connection Monitor endpoint.
- Coverage
Level string - The test coverage for the Network Connection Monitor endpoint. Possible values are
AboveAverage
,Average
,BelowAverage
,Default
,Full
andLow
. - Excluded
Ip []stringAddresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
- Filter
Network
Connection Monitor Endpoint Filter - A
filter
block as defined below. - Included
Ip []stringAddresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
- Target
Resource stringId - The resource ID which is used as the endpoint by the Network Connection Monitor.
- Target
Resource stringType - The endpoint type of the Network Connection Monitor. Possible values are
AzureArcVM
,AzureSubnet
,AzureVM
,AzureVNet
,ExternalAddress
,MMAWorkspaceMachine
andMMAWorkspaceNetwork
.
- name String
- The name of the endpoint for the Network Connection Monitor .
- address String
- The IP address or domain name of the Network Connection Monitor endpoint.
- coverage
Level String - The test coverage for the Network Connection Monitor endpoint. Possible values are
AboveAverage
,Average
,BelowAverage
,Default
,Full
andLow
. - excluded
Ip List<String>Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
- filter
Network
Connection Monitor Endpoint Filter - A
filter
block as defined below. - included
Ip List<String>Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
- target
Resource StringId - The resource ID which is used as the endpoint by the Network Connection Monitor.
- target
Resource StringType - The endpoint type of the Network Connection Monitor. Possible values are
AzureArcVM
,AzureSubnet
,AzureVM
,AzureVNet
,ExternalAddress
,MMAWorkspaceMachine
andMMAWorkspaceNetwork
.
- name string
- The name of the endpoint for the Network Connection Monitor .
- address string
- The IP address or domain name of the Network Connection Monitor endpoint.
- coverage
Level string - The test coverage for the Network Connection Monitor endpoint. Possible values are
AboveAverage
,Average
,BelowAverage
,Default
,Full
andLow
. - excluded
Ip string[]Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
- filter
Network
Connection Monitor Endpoint Filter - A
filter
block as defined below. - included
Ip string[]Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
- target
Resource stringId - The resource ID which is used as the endpoint by the Network Connection Monitor.
- target
Resource stringType - The endpoint type of the Network Connection Monitor. Possible values are
AzureArcVM
,AzureSubnet
,AzureVM
,AzureVNet
,ExternalAddress
,MMAWorkspaceMachine
andMMAWorkspaceNetwork
.
- name str
- The name of the endpoint for the Network Connection Monitor .
- address str
- The IP address or domain name of the Network Connection Monitor endpoint.
- coverage_
level str - The test coverage for the Network Connection Monitor endpoint. Possible values are
AboveAverage
,Average
,BelowAverage
,Default
,Full
andLow
. - excluded_
ip_ Sequence[str]addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
- filter
Network
Connection Monitor Endpoint Filter - A
filter
block as defined below. - included_
ip_ Sequence[str]addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
- target_
resource_ strid - The resource ID which is used as the endpoint by the Network Connection Monitor.
- target_
resource_ strtype - The endpoint type of the Network Connection Monitor. Possible values are
AzureArcVM
,AzureSubnet
,AzureVM
,AzureVNet
,ExternalAddress
,MMAWorkspaceMachine
andMMAWorkspaceNetwork
.
- name String
- The name of the endpoint for the Network Connection Monitor .
- address String
- The IP address or domain name of the Network Connection Monitor endpoint.
- coverage
Level String - The test coverage for the Network Connection Monitor endpoint. Possible values are
AboveAverage
,Average
,BelowAverage
,Default
,Full
andLow
. - excluded
Ip List<String>Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
- filter Property Map
- A
filter
block as defined below. - included
Ip List<String>Addresses - A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
- target
Resource StringId - The resource ID which is used as the endpoint by the Network Connection Monitor.
- target
Resource StringType - The endpoint type of the Network Connection Monitor. Possible values are
AzureArcVM
,AzureSubnet
,AzureVM
,AzureVNet
,ExternalAddress
,MMAWorkspaceMachine
andMMAWorkspaceNetwork
.
NetworkConnectionMonitorEndpointFilter, NetworkConnectionMonitorEndpointFilterArgs
- Items
List<Network
Connection Monitor Endpoint Filter Item> - A
item
block as defined below. - Type string
- The behaviour type of this endpoint filter. Currently the only allowed value is
Include
. Defaults toInclude
.
- Items
[]Network
Connection Monitor Endpoint Filter Item - A
item
block as defined below. - Type string
- The behaviour type of this endpoint filter. Currently the only allowed value is
Include
. Defaults toInclude
.
- items
List<Network
Connection Monitor Endpoint Filter Item> - A
item
block as defined below. - type String
- The behaviour type of this endpoint filter. Currently the only allowed value is
Include
. Defaults toInclude
.
- items
Network
Connection Monitor Endpoint Filter Item[] - A
item
block as defined below. - type string
- The behaviour type of this endpoint filter. Currently the only allowed value is
Include
. Defaults toInclude
.
- items
Sequence[Network
Connection Monitor Endpoint Filter Item] - A
item
block as defined below. - type str
- The behaviour type of this endpoint filter. Currently the only allowed value is
Include
. Defaults toInclude
.
- items List<Property Map>
- A
item
block as defined below. - type String
- The behaviour type of this endpoint filter. Currently the only allowed value is
Include
. Defaults toInclude
.
NetworkConnectionMonitorEndpointFilterItem, NetworkConnectionMonitorEndpointFilterItemArgs
NetworkConnectionMonitorTestConfiguration, NetworkConnectionMonitorTestConfigurationArgs
- Name string
- The name of test configuration for the Network Connection Monitor.
- Protocol string
- The protocol used to evaluate tests. Possible values are
Tcp
,Http
andIcmp
. - Http
Configuration NetworkConnection Monitor Test Configuration Http Configuration - A
http_configuration
block as defined below. - Icmp
Configuration NetworkConnection Monitor Test Configuration Icmp Configuration - A
icmp_configuration
block as defined below. - Preferred
Ip stringVersion - The preferred IP version which is used in the test evaluation. Possible values are
IPv4
andIPv6
. - Success
Threshold NetworkConnection Monitor Test Configuration Success Threshold - A
success_threshold
block as defined below. - Tcp
Configuration NetworkConnection Monitor Test Configuration Tcp Configuration - A
tcp_configuration
block as defined below. - Test
Frequency intIn Seconds - The time interval in seconds at which the test evaluation will happen. Defaults to
60
.
- Name string
- The name of test configuration for the Network Connection Monitor.
- Protocol string
- The protocol used to evaluate tests. Possible values are
Tcp
,Http
andIcmp
. - Http
Configuration NetworkConnection Monitor Test Configuration Http Configuration - A
http_configuration
block as defined below. - Icmp
Configuration NetworkConnection Monitor Test Configuration Icmp Configuration - A
icmp_configuration
block as defined below. - Preferred
Ip stringVersion - The preferred IP version which is used in the test evaluation. Possible values are
IPv4
andIPv6
. - Success
Threshold NetworkConnection Monitor Test Configuration Success Threshold - A
success_threshold
block as defined below. - Tcp
Configuration NetworkConnection Monitor Test Configuration Tcp Configuration - A
tcp_configuration
block as defined below. - Test
Frequency intIn Seconds - The time interval in seconds at which the test evaluation will happen. Defaults to
60
.
- name String
- The name of test configuration for the Network Connection Monitor.
- protocol String
- The protocol used to evaluate tests. Possible values are
Tcp
,Http
andIcmp
. - http
Configuration NetworkConnection Monitor Test Configuration Http Configuration - A
http_configuration
block as defined below. - icmp
Configuration NetworkConnection Monitor Test Configuration Icmp Configuration - A
icmp_configuration
block as defined below. - preferred
Ip StringVersion - The preferred IP version which is used in the test evaluation. Possible values are
IPv4
andIPv6
. - success
Threshold NetworkConnection Monitor Test Configuration Success Threshold - A
success_threshold
block as defined below. - tcp
Configuration NetworkConnection Monitor Test Configuration Tcp Configuration - A
tcp_configuration
block as defined below. - test
Frequency IntegerIn Seconds - The time interval in seconds at which the test evaluation will happen. Defaults to
60
.
- name string
- The name of test configuration for the Network Connection Monitor.
- protocol string
- The protocol used to evaluate tests. Possible values are
Tcp
,Http
andIcmp
. - http
Configuration NetworkConnection Monitor Test Configuration Http Configuration - A
http_configuration
block as defined below. - icmp
Configuration NetworkConnection Monitor Test Configuration Icmp Configuration - A
icmp_configuration
block as defined below. - preferred
Ip stringVersion - The preferred IP version which is used in the test evaluation. Possible values are
IPv4
andIPv6
. - success
Threshold NetworkConnection Monitor Test Configuration Success Threshold - A
success_threshold
block as defined below. - tcp
Configuration NetworkConnection Monitor Test Configuration Tcp Configuration - A
tcp_configuration
block as defined below. - test
Frequency numberIn Seconds - The time interval in seconds at which the test evaluation will happen. Defaults to
60
.
- name str
- The name of test configuration for the Network Connection Monitor.
- protocol str
- The protocol used to evaluate tests. Possible values are
Tcp
,Http
andIcmp
. - http_
configuration NetworkConnection Monitor Test Configuration Http Configuration - A
http_configuration
block as defined below. - icmp_
configuration NetworkConnection Monitor Test Configuration Icmp Configuration - A
icmp_configuration
block as defined below. - preferred_
ip_ strversion - The preferred IP version which is used in the test evaluation. Possible values are
IPv4
andIPv6
. - success_
threshold NetworkConnection Monitor Test Configuration Success Threshold - A
success_threshold
block as defined below. - tcp_
configuration NetworkConnection Monitor Test Configuration Tcp Configuration - A
tcp_configuration
block as defined below. - test_
frequency_ intin_ seconds - The time interval in seconds at which the test evaluation will happen. Defaults to
60
.
- name String
- The name of test configuration for the Network Connection Monitor.
- protocol String
- The protocol used to evaluate tests. Possible values are
Tcp
,Http
andIcmp
. - http
Configuration Property Map - A
http_configuration
block as defined below. - icmp
Configuration Property Map - A
icmp_configuration
block as defined below. - preferred
Ip StringVersion - The preferred IP version which is used in the test evaluation. Possible values are
IPv4
andIPv6
. - success
Threshold Property Map - A
success_threshold
block as defined below. - tcp
Configuration Property Map - A
tcp_configuration
block as defined below. - test
Frequency NumberIn Seconds - The time interval in seconds at which the test evaluation will happen. Defaults to
60
.
NetworkConnectionMonitorTestConfigurationHttpConfiguration, NetworkConnectionMonitorTestConfigurationHttpConfigurationArgs
- Method string
- The HTTP method for the HTTP request. Possible values are
Get
andPost
. Defaults toGet
. - Path string
- The path component of the URI. It only accepts the absolute path.
- Port int
- The port for the HTTP connection.
- Prefer
Https bool - Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to
false
. - Request
Headers List<NetworkConnection Monitor Test Configuration Http Configuration Request Header> - A
request_header
block as defined below. - Valid
Status List<string>Code Ranges - The HTTP status codes to consider successful. For instance,
2xx
,301-304
and418
.
- Method string
- The HTTP method for the HTTP request. Possible values are
Get
andPost
. Defaults toGet
. - Path string
- The path component of the URI. It only accepts the absolute path.
- Port int
- The port for the HTTP connection.
- Prefer
Https bool - Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to
false
. - Request
Headers []NetworkConnection Monitor Test Configuration Http Configuration Request Header - A
request_header
block as defined below. - Valid
Status []stringCode Ranges - The HTTP status codes to consider successful. For instance,
2xx
,301-304
and418
.
- method String
- The HTTP method for the HTTP request. Possible values are
Get
andPost
. Defaults toGet
. - path String
- The path component of the URI. It only accepts the absolute path.
- port Integer
- The port for the HTTP connection.
- prefer
Https Boolean - Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to
false
. - request
Headers List<NetworkConnection Monitor Test Configuration Http Configuration Request Header> - A
request_header
block as defined below. - valid
Status List<String>Code Ranges - The HTTP status codes to consider successful. For instance,
2xx
,301-304
and418
.
- method string
- The HTTP method for the HTTP request. Possible values are
Get
andPost
. Defaults toGet
. - path string
- The path component of the URI. It only accepts the absolute path.
- port number
- The port for the HTTP connection.
- prefer
Https boolean - Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to
false
. - request
Headers NetworkConnection Monitor Test Configuration Http Configuration Request Header[] - A
request_header
block as defined below. - valid
Status string[]Code Ranges - The HTTP status codes to consider successful. For instance,
2xx
,301-304
and418
.
- method str
- The HTTP method for the HTTP request. Possible values are
Get
andPost
. Defaults toGet
. - path str
- The path component of the URI. It only accepts the absolute path.
- port int
- The port for the HTTP connection.
- prefer_
https bool - Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to
false
. - request_
headers Sequence[NetworkConnection Monitor Test Configuration Http Configuration Request Header] - A
request_header
block as defined below. - valid_
status_ Sequence[str]code_ ranges - The HTTP status codes to consider successful. For instance,
2xx
,301-304
and418
.
- method String
- The HTTP method for the HTTP request. Possible values are
Get
andPost
. Defaults toGet
. - path String
- The path component of the URI. It only accepts the absolute path.
- port Number
- The port for the HTTP connection.
- prefer
Https Boolean - Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to
false
. - request
Headers List<Property Map> - A
request_header
block as defined below. - valid
Status List<String>Code Ranges - The HTTP status codes to consider successful. For instance,
2xx
,301-304
and418
.
NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeader, NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderArgs
NetworkConnectionMonitorTestConfigurationIcmpConfiguration, NetworkConnectionMonitorTestConfigurationIcmpConfigurationArgs
- Trace
Route boolEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- Trace
Route boolEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- trace
Route BooleanEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- trace
Route booleanEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- trace_
route_ boolenabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- trace
Route BooleanEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
NetworkConnectionMonitorTestConfigurationSuccessThreshold, NetworkConnectionMonitorTestConfigurationSuccessThresholdArgs
- Checks
Failed intPercent - The maximum percentage of failed checks permitted for a test to be successful.
- Round
Trip doubleTime Ms - The maximum round-trip time in milliseconds permitted for a test to be successful.
- Checks
Failed intPercent - The maximum percentage of failed checks permitted for a test to be successful.
- Round
Trip float64Time Ms - The maximum round-trip time in milliseconds permitted for a test to be successful.
- checks
Failed IntegerPercent - The maximum percentage of failed checks permitted for a test to be successful.
- round
Trip DoubleTime Ms - The maximum round-trip time in milliseconds permitted for a test to be successful.
- checks
Failed numberPercent - The maximum percentage of failed checks permitted for a test to be successful.
- round
Trip numberTime Ms - The maximum round-trip time in milliseconds permitted for a test to be successful.
- checks_
failed_ intpercent - The maximum percentage of failed checks permitted for a test to be successful.
- round_
trip_ floattime_ ms - The maximum round-trip time in milliseconds permitted for a test to be successful.
- checks
Failed NumberPercent - The maximum percentage of failed checks permitted for a test to be successful.
- round
Trip NumberTime Ms - The maximum round-trip time in milliseconds permitted for a test to be successful.
NetworkConnectionMonitorTestConfigurationTcpConfiguration, NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs
- Port int
- The port for the TCP connection.
- Destination
Port stringBehavior - The destination port behavior for the TCP connection. Possible values are
None
andListenIfAvailable
. - Trace
Route boolEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- Port int
- The port for the TCP connection.
- Destination
Port stringBehavior - The destination port behavior for the TCP connection. Possible values are
None
andListenIfAvailable
. - Trace
Route boolEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- port Integer
- The port for the TCP connection.
- destination
Port StringBehavior - The destination port behavior for the TCP connection. Possible values are
None
andListenIfAvailable
. - trace
Route BooleanEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- port number
- The port for the TCP connection.
- destination
Port stringBehavior - The destination port behavior for the TCP connection. Possible values are
None
andListenIfAvailable
. - trace
Route booleanEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- port int
- The port for the TCP connection.
- destination_
port_ strbehavior - The destination port behavior for the TCP connection. Possible values are
None
andListenIfAvailable
. - trace_
route_ boolenabled - Should path evaluation with trace route be enabled? Defaults to
true
.
- port Number
- The port for the TCP connection.
- destination
Port StringBehavior - The destination port behavior for the TCP connection. Possible values are
None
andListenIfAvailable
. - trace
Route BooleanEnabled - Should path evaluation with trace route be enabled? Defaults to
true
.
NetworkConnectionMonitorTestGroup, NetworkConnectionMonitorTestGroupArgs
- Destination
Endpoints List<string> - A list of destination endpoint names.
- Name string
- The name of the test group for the Network Connection Monitor.
- Source
Endpoints List<string> - A list of source endpoint names.
- Test
Configuration List<string>Names - A list of test configuration names.
- Enabled bool
- Should the test group be enabled? Defaults to
true
.
- Destination
Endpoints []string - A list of destination endpoint names.
- Name string
- The name of the test group for the Network Connection Monitor.
- Source
Endpoints []string - A list of source endpoint names.
- Test
Configuration []stringNames - A list of test configuration names.
- Enabled bool
- Should the test group be enabled? Defaults to
true
.
- destination
Endpoints List<String> - A list of destination endpoint names.
- name String
- The name of the test group for the Network Connection Monitor.
- source
Endpoints List<String> - A list of source endpoint names.
- test
Configuration List<String>Names - A list of test configuration names.
- enabled Boolean
- Should the test group be enabled? Defaults to
true
.
- destination
Endpoints string[] - A list of destination endpoint names.
- name string
- The name of the test group for the Network Connection Monitor.
- source
Endpoints string[] - A list of source endpoint names.
- test
Configuration string[]Names - A list of test configuration names.
- enabled boolean
- Should the test group be enabled? Defaults to
true
.
- destination_
endpoints Sequence[str] - A list of destination endpoint names.
- name str
- The name of the test group for the Network Connection Monitor.
- source_
endpoints Sequence[str] - A list of source endpoint names.
- test_
configuration_ Sequence[str]names - A list of test configuration names.
- enabled bool
- Should the test group be enabled? Defaults to
true
.
- destination
Endpoints List<String> - A list of destination endpoint names.
- name String
- The name of the test group for the Network Connection Monitor.
- source
Endpoints List<String> - A list of source endpoint names.
- test
Configuration List<String>Names - A list of test configuration names.
- enabled Boolean
- Should the test group be enabled? Defaults to
true
.
Import
Network Connection Monitors can be imported using the resource id
, e.g.
$ pulumi import azure:network/networkConnectionMonitor:NetworkConnectionMonitor example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/networkWatchers/watcher1/connectionMonitors/connectionMonitor1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.