1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. NetworkConnectionMonitor

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

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],
});
Copy
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]))
Copy
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
	})
}
Copy
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,
        },
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. NetworkConnectionMonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. NetworkConnectionMonitorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NetworkConnectionMonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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" },
    },
});
Copy
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"),
	},
})
Copy
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());
Copy
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",
    })
Copy
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",
    },
});
Copy
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
Copy

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 This property is required. List<NetworkConnectionMonitorEndpoint>
A endpoint block as defined below.
NetworkWatcherId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Network Watcher. Changing this forces a new resource to be created.
TestConfigurations This property is required. List<NetworkConnectionMonitorTestConfiguration>
A test_configuration block as defined below.
TestGroups This property is required. List<NetworkConnectionMonitorTestGroup>
A test_group block as defined below.
Location Changes to this property will trigger replacement. string
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. 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.
OutputWorkspaceResourceIds List<string>
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Network Connection Monitor.
Endpoints This property is required. []NetworkConnectionMonitorEndpointArgs
A endpoint block as defined below.
NetworkWatcherId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Network Watcher. Changing this forces a new resource to be created.
TestConfigurations This property is required. []NetworkConnectionMonitorTestConfigurationArgs
A test_configuration block as defined below.
TestGroups This property is required. []NetworkConnectionMonitorTestGroupArgs
A test_group block as defined below.
Location Changes to this property will trigger replacement. string
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. 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.
OutputWorkspaceResourceIds []string
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
Tags map[string]string
A mapping of tags which should be assigned to the Network Connection Monitor.
endpoints This property is required. List<NetworkConnectionMonitorEndpoint>
A endpoint block as defined below.
networkWatcherId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Network Watcher. Changing this forces a new resource to be created.
testConfigurations This property is required. List<NetworkConnectionMonitorTestConfiguration>
A test_configuration block as defined below.
testGroups This property is required. List<NetworkConnectionMonitorTestGroup>
A test_group block as defined below.
location Changes to this property will trigger replacement. String
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. 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.
outputWorkspaceResourceIds List<String>
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags Map<String,String>
A mapping of tags which should be assigned to the Network Connection Monitor.
endpoints This property is required. NetworkConnectionMonitorEndpoint[]
A endpoint block as defined below.
networkWatcherId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Network Watcher. Changing this forces a new resource to be created.
testConfigurations This property is required. NetworkConnectionMonitorTestConfiguration[]
A test_configuration block as defined below.
testGroups This property is required. NetworkConnectionMonitorTestGroup[]
A test_group block as defined below.
location Changes to this property will trigger replacement. string
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. 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.
outputWorkspaceResourceIds string[]
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Network Connection Monitor.
endpoints This property is required. Sequence[NetworkConnectionMonitorEndpointArgs]
A endpoint block as defined below.
network_watcher_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Network Watcher. Changing this forces a new resource to be created.
test_configurations This property is required. Sequence[NetworkConnectionMonitorTestConfigurationArgs]
A test_configuration block as defined below.
test_groups This property is required. Sequence[NetworkConnectionMonitorTestGroupArgs]
A test_group block as defined below.
location Changes to this property will trigger replacement. str
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. 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_resource_ids Sequence[str]
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Network Connection Monitor.
endpoints This property is required. List<Property Map>
A endpoint block as defined below.
networkWatcherId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Network Watcher. Changing this forces a new resource to be created.
testConfigurations This property is required. List<Property Map>
A test_configuration block as defined below.
testGroups This property is required. List<Property Map>
A test_group block as defined below.
location Changes to this property will trigger replacement. String
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. 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.
outputWorkspaceResourceIds List<String>
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags 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)
resources:  _:    type: azure:network:NetworkConnectionMonitor    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Endpoints List<NetworkConnectionMonitorEndpoint>
A endpoint block as defined below.
Location Changes to this property will trigger replacement. string
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
NetworkWatcherId Changes to this property will trigger replacement. string
The ID of the Network Watcher. Changing this forces a new resource to be created.
Notes string
The description of the Network Connection Monitor.
OutputWorkspaceResourceIds List<string>
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Network Connection Monitor.
TestConfigurations List<NetworkConnectionMonitorTestConfiguration>
A test_configuration block as defined below.
TestGroups List<NetworkConnectionMonitorTestGroup>
A test_group block as defined below.
Endpoints []NetworkConnectionMonitorEndpointArgs
A endpoint block as defined below.
Location Changes to this property will trigger replacement. string
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
NetworkWatcherId Changes to this property will trigger replacement. string
The ID of the Network Watcher. Changing this forces a new resource to be created.
Notes string
The description of the Network Connection Monitor.
OutputWorkspaceResourceIds []string
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
Tags map[string]string
A mapping of tags which should be assigned to the Network Connection Monitor.
TestConfigurations []NetworkConnectionMonitorTestConfigurationArgs
A test_configuration block as defined below.
TestGroups []NetworkConnectionMonitorTestGroupArgs
A test_group block as defined below.
endpoints List<NetworkConnectionMonitorEndpoint>
A endpoint block as defined below.
location Changes to this property will trigger replacement. String
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
networkWatcherId Changes to this property will trigger replacement. String
The ID of the Network Watcher. Changing this forces a new resource to be created.
notes String
The description of the Network Connection Monitor.
outputWorkspaceResourceIds List<String>
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags Map<String,String>
A mapping of tags which should be assigned to the Network Connection Monitor.
testConfigurations List<NetworkConnectionMonitorTestConfiguration>
A test_configuration block as defined below.
testGroups List<NetworkConnectionMonitorTestGroup>
A test_group block as defined below.
endpoints NetworkConnectionMonitorEndpoint[]
A endpoint block as defined below.
location Changes to this property will trigger replacement. string
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
networkWatcherId Changes to this property will trigger replacement. string
The ID of the Network Watcher. Changing this forces a new resource to be created.
notes string
The description of the Network Connection Monitor.
outputWorkspaceResourceIds string[]
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Network Connection Monitor.
testConfigurations NetworkConnectionMonitorTestConfiguration[]
A test_configuration block as defined below.
testGroups NetworkConnectionMonitorTestGroup[]
A test_group block as defined below.
endpoints Sequence[NetworkConnectionMonitorEndpointArgs]
A endpoint block as defined below.
location Changes to this property will trigger replacement. str
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
network_watcher_id Changes to this property will trigger replacement. str
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_resource_ids Sequence[str]
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Network Connection Monitor.
test_configurations Sequence[NetworkConnectionMonitorTestConfigurationArgs]
A test_configuration block as defined below.
test_groups Sequence[NetworkConnectionMonitorTestGroupArgs]
A test_group block as defined below.
endpoints List<Property Map>
A endpoint block as defined below.
location Changes to this property will trigger replacement. String
The Azure Region where the Network Connection Monitor should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Network Connection Monitor. Changing this forces a new resource to be created.
networkWatcherId Changes to this property will trigger replacement. String
The ID of the Network Watcher. Changing this forces a new resource to be created.
notes String
The description of the Network Connection Monitor.
outputWorkspaceResourceIds List<String>
A list of IDs of the Log Analytics Workspace which will accept the output from the Network Connection Monitor.
tags Map<String>
A mapping of tags which should be assigned to the Network Connection Monitor.
testConfigurations List<Property Map>
A test_configuration block as defined below.
testGroups List<Property Map>
A test_group block as defined below.

Supporting Types

NetworkConnectionMonitorEndpoint
, NetworkConnectionMonitorEndpointArgs

Name This property is required. 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.
CoverageLevel string
The test coverage for the Network Connection Monitor endpoint. Possible values are AboveAverage, Average, BelowAverage, Default, Full and Low.
ExcludedIpAddresses List<string>
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
Filter NetworkConnectionMonitorEndpointFilter
A filter block as defined below.
IncludedIpAddresses List<string>
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
TargetResourceId string
The resource ID which is used as the endpoint by the Network Connection Monitor.
TargetResourceType string
The endpoint type of the Network Connection Monitor. Possible values are AzureArcVM, AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine and MMAWorkspaceNetwork.
Name This property is required. 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.
CoverageLevel string
The test coverage for the Network Connection Monitor endpoint. Possible values are AboveAverage, Average, BelowAverage, Default, Full and Low.
ExcludedIpAddresses []string
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
Filter NetworkConnectionMonitorEndpointFilter
A filter block as defined below.
IncludedIpAddresses []string
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
TargetResourceId string
The resource ID which is used as the endpoint by the Network Connection Monitor.
TargetResourceType string
The endpoint type of the Network Connection Monitor. Possible values are AzureArcVM, AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine and MMAWorkspaceNetwork.
name This property is required. 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.
coverageLevel String
The test coverage for the Network Connection Monitor endpoint. Possible values are AboveAverage, Average, BelowAverage, Default, Full and Low.
excludedIpAddresses List<String>
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
filter NetworkConnectionMonitorEndpointFilter
A filter block as defined below.
includedIpAddresses List<String>
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
targetResourceId String
The resource ID which is used as the endpoint by the Network Connection Monitor.
targetResourceType String
The endpoint type of the Network Connection Monitor. Possible values are AzureArcVM, AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine and MMAWorkspaceNetwork.
name This property is required. 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.
coverageLevel string
The test coverage for the Network Connection Monitor endpoint. Possible values are AboveAverage, Average, BelowAverage, Default, Full and Low.
excludedIpAddresses string[]
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
filter NetworkConnectionMonitorEndpointFilter
A filter block as defined below.
includedIpAddresses string[]
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
targetResourceId string
The resource ID which is used as the endpoint by the Network Connection Monitor.
targetResourceType string
The endpoint type of the Network Connection Monitor. Possible values are AzureArcVM, AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine and MMAWorkspaceNetwork.
name This property is required. 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 and Low.
excluded_ip_addresses Sequence[str]
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be excluded to the Network Connection Monitor endpoint.
filter NetworkConnectionMonitorEndpointFilter
A filter block as defined below.
included_ip_addresses Sequence[str]
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
target_resource_id str
The resource ID which is used as the endpoint by the Network Connection Monitor.
target_resource_type str
The endpoint type of the Network Connection Monitor. Possible values are AzureArcVM, AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine and MMAWorkspaceNetwork.
name This property is required. 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.
coverageLevel String
The test coverage for the Network Connection Monitor endpoint. Possible values are AboveAverage, Average, BelowAverage, Default, Full and Low.
excludedIpAddresses List<String>
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.
includedIpAddresses List<String>
A list of IPv4/IPv6 subnet masks or IPv4/IPv6 IP addresses to be included to the Network Connection Monitor endpoint.
targetResourceId String
The resource ID which is used as the endpoint by the Network Connection Monitor.
targetResourceType String
The endpoint type of the Network Connection Monitor. Possible values are AzureArcVM, AzureSubnet, AzureVM, AzureVNet, ExternalAddress, MMAWorkspaceMachine and MMAWorkspaceNetwork.

NetworkConnectionMonitorEndpointFilter
, NetworkConnectionMonitorEndpointFilterArgs

Items List<NetworkConnectionMonitorEndpointFilterItem>
A item block as defined below.
Type string
The behaviour type of this endpoint filter. Currently the only allowed value is Include. Defaults to Include.
Items []NetworkConnectionMonitorEndpointFilterItem
A item block as defined below.
Type string
The behaviour type of this endpoint filter. Currently the only allowed value is Include. Defaults to Include.
items List<NetworkConnectionMonitorEndpointFilterItem>
A item block as defined below.
type String
The behaviour type of this endpoint filter. Currently the only allowed value is Include. Defaults to Include.
items NetworkConnectionMonitorEndpointFilterItem[]
A item block as defined below.
type string
The behaviour type of this endpoint filter. Currently the only allowed value is Include. Defaults to Include.
items Sequence[NetworkConnectionMonitorEndpointFilterItem]
A item block as defined below.
type str
The behaviour type of this endpoint filter. Currently the only allowed value is Include. Defaults to Include.
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 to Include.

NetworkConnectionMonitorEndpointFilterItem
, NetworkConnectionMonitorEndpointFilterItemArgs

Address string
The address of the filter item.
Type string
The type of items included in the filter. Possible values are AgentAddress. Defaults to AgentAddress.
Address string
The address of the filter item.
Type string
The type of items included in the filter. Possible values are AgentAddress. Defaults to AgentAddress.
address String
The address of the filter item.
type String
The type of items included in the filter. Possible values are AgentAddress. Defaults to AgentAddress.
address string
The address of the filter item.
type string
The type of items included in the filter. Possible values are AgentAddress. Defaults to AgentAddress.
address str
The address of the filter item.
type str
The type of items included in the filter. Possible values are AgentAddress. Defaults to AgentAddress.
address String
The address of the filter item.
type String
The type of items included in the filter. Possible values are AgentAddress. Defaults to AgentAddress.

NetworkConnectionMonitorTestConfiguration
, NetworkConnectionMonitorTestConfigurationArgs

Name This property is required. string
The name of test configuration for the Network Connection Monitor.
Protocol This property is required. string
The protocol used to evaluate tests. Possible values are Tcp, Http and Icmp.
HttpConfiguration NetworkConnectionMonitorTestConfigurationHttpConfiguration
A http_configuration block as defined below.
IcmpConfiguration NetworkConnectionMonitorTestConfigurationIcmpConfiguration
A icmp_configuration block as defined below.
PreferredIpVersion string
The preferred IP version which is used in the test evaluation. Possible values are IPv4 and IPv6.
SuccessThreshold NetworkConnectionMonitorTestConfigurationSuccessThreshold
A success_threshold block as defined below.
TcpConfiguration NetworkConnectionMonitorTestConfigurationTcpConfiguration
A tcp_configuration block as defined below.
TestFrequencyInSeconds int
The time interval in seconds at which the test evaluation will happen. Defaults to 60.
Name This property is required. string
The name of test configuration for the Network Connection Monitor.
Protocol This property is required. string
The protocol used to evaluate tests. Possible values are Tcp, Http and Icmp.
HttpConfiguration NetworkConnectionMonitorTestConfigurationHttpConfiguration
A http_configuration block as defined below.
IcmpConfiguration NetworkConnectionMonitorTestConfigurationIcmpConfiguration
A icmp_configuration block as defined below.
PreferredIpVersion string
The preferred IP version which is used in the test evaluation. Possible values are IPv4 and IPv6.
SuccessThreshold NetworkConnectionMonitorTestConfigurationSuccessThreshold
A success_threshold block as defined below.
TcpConfiguration NetworkConnectionMonitorTestConfigurationTcpConfiguration
A tcp_configuration block as defined below.
TestFrequencyInSeconds int
The time interval in seconds at which the test evaluation will happen. Defaults to 60.
name This property is required. String
The name of test configuration for the Network Connection Monitor.
protocol This property is required. String
The protocol used to evaluate tests. Possible values are Tcp, Http and Icmp.
httpConfiguration NetworkConnectionMonitorTestConfigurationHttpConfiguration
A http_configuration block as defined below.
icmpConfiguration NetworkConnectionMonitorTestConfigurationIcmpConfiguration
A icmp_configuration block as defined below.
preferredIpVersion String
The preferred IP version which is used in the test evaluation. Possible values are IPv4 and IPv6.
successThreshold NetworkConnectionMonitorTestConfigurationSuccessThreshold
A success_threshold block as defined below.
tcpConfiguration NetworkConnectionMonitorTestConfigurationTcpConfiguration
A tcp_configuration block as defined below.
testFrequencyInSeconds Integer
The time interval in seconds at which the test evaluation will happen. Defaults to 60.
name This property is required. string
The name of test configuration for the Network Connection Monitor.
protocol This property is required. string
The protocol used to evaluate tests. Possible values are Tcp, Http and Icmp.
httpConfiguration NetworkConnectionMonitorTestConfigurationHttpConfiguration
A http_configuration block as defined below.
icmpConfiguration NetworkConnectionMonitorTestConfigurationIcmpConfiguration
A icmp_configuration block as defined below.
preferredIpVersion string
The preferred IP version which is used in the test evaluation. Possible values are IPv4 and IPv6.
successThreshold NetworkConnectionMonitorTestConfigurationSuccessThreshold
A success_threshold block as defined below.
tcpConfiguration NetworkConnectionMonitorTestConfigurationTcpConfiguration
A tcp_configuration block as defined below.
testFrequencyInSeconds number
The time interval in seconds at which the test evaluation will happen. Defaults to 60.
name This property is required. str
The name of test configuration for the Network Connection Monitor.
protocol This property is required. str
The protocol used to evaluate tests. Possible values are Tcp, Http and Icmp.
http_configuration NetworkConnectionMonitorTestConfigurationHttpConfiguration
A http_configuration block as defined below.
icmp_configuration NetworkConnectionMonitorTestConfigurationIcmpConfiguration
A icmp_configuration block as defined below.
preferred_ip_version str
The preferred IP version which is used in the test evaluation. Possible values are IPv4 and IPv6.
success_threshold NetworkConnectionMonitorTestConfigurationSuccessThreshold
A success_threshold block as defined below.
tcp_configuration NetworkConnectionMonitorTestConfigurationTcpConfiguration
A tcp_configuration block as defined below.
test_frequency_in_seconds int
The time interval in seconds at which the test evaluation will happen. Defaults to 60.
name This property is required. String
The name of test configuration for the Network Connection Monitor.
protocol This property is required. String
The protocol used to evaluate tests. Possible values are Tcp, Http and Icmp.
httpConfiguration Property Map
A http_configuration block as defined below.
icmpConfiguration Property Map
A icmp_configuration block as defined below.
preferredIpVersion String
The preferred IP version which is used in the test evaluation. Possible values are IPv4 and IPv6.
successThreshold Property Map
A success_threshold block as defined below.
tcpConfiguration Property Map
A tcp_configuration block as defined below.
testFrequencyInSeconds Number
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 and Post. Defaults to Get.
Path string
The path component of the URI. It only accepts the absolute path.
Port int
The port for the HTTP connection.
PreferHttps bool
Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to false.
RequestHeaders List<NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeader>
A request_header block as defined below.
ValidStatusCodeRanges List<string>
The HTTP status codes to consider successful. For instance, 2xx, 301-304 and 418.
Method string
The HTTP method for the HTTP request. Possible values are Get and Post. Defaults to Get.
Path string
The path component of the URI. It only accepts the absolute path.
Port int
The port for the HTTP connection.
PreferHttps bool
Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to false.
RequestHeaders []NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeader
A request_header block as defined below.
ValidStatusCodeRanges []string
The HTTP status codes to consider successful. For instance, 2xx, 301-304 and 418.
method String
The HTTP method for the HTTP request. Possible values are Get and Post. Defaults to Get.
path String
The path component of the URI. It only accepts the absolute path.
port Integer
The port for the HTTP connection.
preferHttps Boolean
Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to false.
requestHeaders List<NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeader>
A request_header block as defined below.
validStatusCodeRanges List<String>
The HTTP status codes to consider successful. For instance, 2xx, 301-304 and 418.
method string
The HTTP method for the HTTP request. Possible values are Get and Post. Defaults to Get.
path string
The path component of the URI. It only accepts the absolute path.
port number
The port for the HTTP connection.
preferHttps boolean
Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to false.
requestHeaders NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeader[]
A request_header block as defined below.
validStatusCodeRanges string[]
The HTTP status codes to consider successful. For instance, 2xx, 301-304 and 418.
method str
The HTTP method for the HTTP request. Possible values are Get and Post. Defaults to Get.
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[NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeader]
A request_header block as defined below.
valid_status_code_ranges Sequence[str]
The HTTP status codes to consider successful. For instance, 2xx, 301-304 and 418.
method String
The HTTP method for the HTTP request. Possible values are Get and Post. Defaults to Get.
path String
The path component of the URI. It only accepts the absolute path.
port Number
The port for the HTTP connection.
preferHttps Boolean
Should HTTPS be preferred over HTTP in cases where the choice is not explicit? Defaults to false.
requestHeaders List<Property Map>
A request_header block as defined below.
validStatusCodeRanges List<String>
The HTTP status codes to consider successful. For instance, 2xx, 301-304 and 418.

NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeader
, NetworkConnectionMonitorTestConfigurationHttpConfigurationRequestHeaderArgs

Name This property is required. string
The name of the HTTP header.
Value This property is required. string
The value of the HTTP header.
Name This property is required. string
The name of the HTTP header.
Value This property is required. string
The value of the HTTP header.
name This property is required. String
The name of the HTTP header.
value This property is required. String
The value of the HTTP header.
name This property is required. string
The name of the HTTP header.
value This property is required. string
The value of the HTTP header.
name This property is required. str
The name of the HTTP header.
value This property is required. str
The value of the HTTP header.
name This property is required. String
The name of the HTTP header.
value This property is required. String
The value of the HTTP header.

NetworkConnectionMonitorTestConfigurationIcmpConfiguration
, NetworkConnectionMonitorTestConfigurationIcmpConfigurationArgs

TraceRouteEnabled bool
Should path evaluation with trace route be enabled? Defaults to true.
TraceRouteEnabled bool
Should path evaluation with trace route be enabled? Defaults to true.
traceRouteEnabled Boolean
Should path evaluation with trace route be enabled? Defaults to true.
traceRouteEnabled boolean
Should path evaluation with trace route be enabled? Defaults to true.
trace_route_enabled bool
Should path evaluation with trace route be enabled? Defaults to true.
traceRouteEnabled Boolean
Should path evaluation with trace route be enabled? Defaults to true.

NetworkConnectionMonitorTestConfigurationSuccessThreshold
, NetworkConnectionMonitorTestConfigurationSuccessThresholdArgs

ChecksFailedPercent int
The maximum percentage of failed checks permitted for a test to be successful.
RoundTripTimeMs double
The maximum round-trip time in milliseconds permitted for a test to be successful.
ChecksFailedPercent int
The maximum percentage of failed checks permitted for a test to be successful.
RoundTripTimeMs float64
The maximum round-trip time in milliseconds permitted for a test to be successful.
checksFailedPercent Integer
The maximum percentage of failed checks permitted for a test to be successful.
roundTripTimeMs Double
The maximum round-trip time in milliseconds permitted for a test to be successful.
checksFailedPercent number
The maximum percentage of failed checks permitted for a test to be successful.
roundTripTimeMs number
The maximum round-trip time in milliseconds permitted for a test to be successful.
checks_failed_percent int
The maximum percentage of failed checks permitted for a test to be successful.
round_trip_time_ms float
The maximum round-trip time in milliseconds permitted for a test to be successful.
checksFailedPercent Number
The maximum percentage of failed checks permitted for a test to be successful.
roundTripTimeMs Number
The maximum round-trip time in milliseconds permitted for a test to be successful.

NetworkConnectionMonitorTestConfigurationTcpConfiguration
, NetworkConnectionMonitorTestConfigurationTcpConfigurationArgs

Port This property is required. int
The port for the TCP connection.
DestinationPortBehavior string
The destination port behavior for the TCP connection. Possible values are None and ListenIfAvailable.
TraceRouteEnabled bool
Should path evaluation with trace route be enabled? Defaults to true.
Port This property is required. int
The port for the TCP connection.
DestinationPortBehavior string
The destination port behavior for the TCP connection. Possible values are None and ListenIfAvailable.
TraceRouteEnabled bool
Should path evaluation with trace route be enabled? Defaults to true.
port This property is required. Integer
The port for the TCP connection.
destinationPortBehavior String
The destination port behavior for the TCP connection. Possible values are None and ListenIfAvailable.
traceRouteEnabled Boolean
Should path evaluation with trace route be enabled? Defaults to true.
port This property is required. number
The port for the TCP connection.
destinationPortBehavior string
The destination port behavior for the TCP connection. Possible values are None and ListenIfAvailable.
traceRouteEnabled boolean
Should path evaluation with trace route be enabled? Defaults to true.
port This property is required. int
The port for the TCP connection.
destination_port_behavior str
The destination port behavior for the TCP connection. Possible values are None and ListenIfAvailable.
trace_route_enabled bool
Should path evaluation with trace route be enabled? Defaults to true.
port This property is required. Number
The port for the TCP connection.
destinationPortBehavior String
The destination port behavior for the TCP connection. Possible values are None and ListenIfAvailable.
traceRouteEnabled Boolean
Should path evaluation with trace route be enabled? Defaults to true.

NetworkConnectionMonitorTestGroup
, NetworkConnectionMonitorTestGroupArgs

DestinationEndpoints This property is required. List<string>
A list of destination endpoint names.
Name This property is required. string
The name of the test group for the Network Connection Monitor.
SourceEndpoints This property is required. List<string>
A list of source endpoint names.
TestConfigurationNames This property is required. List<string>
A list of test configuration names.
Enabled bool
Should the test group be enabled? Defaults to true.
DestinationEndpoints This property is required. []string
A list of destination endpoint names.
Name This property is required. string
The name of the test group for the Network Connection Monitor.
SourceEndpoints This property is required. []string
A list of source endpoint names.
TestConfigurationNames This property is required. []string
A list of test configuration names.
Enabled bool
Should the test group be enabled? Defaults to true.
destinationEndpoints This property is required. List<String>
A list of destination endpoint names.
name This property is required. String
The name of the test group for the Network Connection Monitor.
sourceEndpoints This property is required. List<String>
A list of source endpoint names.
testConfigurationNames This property is required. List<String>
A list of test configuration names.
enabled Boolean
Should the test group be enabled? Defaults to true.
destinationEndpoints This property is required. string[]
A list of destination endpoint names.
name This property is required. string
The name of the test group for the Network Connection Monitor.
sourceEndpoints This property is required. string[]
A list of source endpoint names.
testConfigurationNames This property is required. string[]
A list of test configuration names.
enabled boolean
Should the test group be enabled? Defaults to true.
destination_endpoints This property is required. Sequence[str]
A list of destination endpoint names.
name This property is required. str
The name of the test group for the Network Connection Monitor.
source_endpoints This property is required. Sequence[str]
A list of source endpoint names.
test_configuration_names This property is required. Sequence[str]
A list of test configuration names.
enabled bool
Should the test group be enabled? Defaults to true.
destinationEndpoints This property is required. List<String>
A list of destination endpoint names.
name This property is required. String
The name of the test group for the Network Connection Monitor.
sourceEndpoints This property is required. List<String>
A list of source endpoint names.
testConfigurationNames This property is required. List<String>
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
Copy

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.