1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. NetworkWatcher
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

azure-native.network.NetworkWatcher

Explore with Pulumi AI

azure-native logo
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

    Network watcher in a resource group. API Version: 2020-11-01.

    Example Usage

    Create network watcher

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var networkWatcher = new AzureNative.Network.NetworkWatcher("networkWatcher", new()
        {
            Location = "eastus",
            NetworkWatcherName = "nw1",
            ResourceGroupName = "rg1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewNetworkWatcher(ctx, "networkWatcher", &network.NetworkWatcherArgs{
    			Location:           pulumi.String("eastus"),
    			NetworkWatcherName: pulumi.String("nw1"),
    			ResourceGroupName:  pulumi.String("rg1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.network.NetworkWatcher;
    import com.pulumi.azurenative.network.NetworkWatcherArgs;
    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 networkWatcher = new NetworkWatcher("networkWatcher", NetworkWatcherArgs.builder()        
                .location("eastus")
                .networkWatcherName("nw1")
                .resourceGroupName("rg1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    network_watcher = azure_native.network.NetworkWatcher("networkWatcher",
        location="eastus",
        network_watcher_name="nw1",
        resource_group_name="rg1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const networkWatcher = new azure_native.network.NetworkWatcher("networkWatcher", {
        location: "eastus",
        networkWatcherName: "nw1",
        resourceGroupName: "rg1",
    });
    
    resources:
      networkWatcher:
        type: azure-native:network:NetworkWatcher
        properties:
          location: eastus
          networkWatcherName: nw1
          resourceGroupName: rg1
    

    Create NetworkWatcher Resource

    new NetworkWatcher(name: string, args: NetworkWatcherArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkWatcher(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       id: Optional[str] = None,
                       location: Optional[str] = None,
                       network_watcher_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
    @overload
    def NetworkWatcher(resource_name: str,
                       args: NetworkWatcherArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewNetworkWatcher(ctx *Context, name string, args NetworkWatcherArgs, opts ...ResourceOption) (*NetworkWatcher, error)
    public NetworkWatcher(string name, NetworkWatcherArgs args, CustomResourceOptions? opts = null)
    public NetworkWatcher(String name, NetworkWatcherArgs args)
    public NetworkWatcher(String name, NetworkWatcherArgs args, CustomResourceOptions options)
    
    type: azure-native:network:NetworkWatcher
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args NetworkWatcherArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkWatcherArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkWatcherArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkWatcherArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkWatcherArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    NetworkWatcher Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NetworkWatcher resource accepts the following input properties:

    ResourceGroupName string

    The name of the resource group.

    Id string

    Resource ID.

    Location string

    Resource location.

    NetworkWatcherName string

    The name of the network watcher.

    Tags Dictionary<string, string>

    Resource tags.

    ResourceGroupName string

    The name of the resource group.

    Id string

    Resource ID.

    Location string

    Resource location.

    NetworkWatcherName string

    The name of the network watcher.

    Tags map[string]string

    Resource tags.

    resourceGroupName String

    The name of the resource group.

    id String

    Resource ID.

    location String

    Resource location.

    networkWatcherName String

    The name of the network watcher.

    tags Map<String,String>

    Resource tags.

    resourceGroupName string

    The name of the resource group.

    id string

    Resource ID.

    location string

    Resource location.

    networkWatcherName string

    The name of the network watcher.

    tags {[key: string]: string}

    Resource tags.

    resource_group_name str

    The name of the resource group.

    id str

    Resource ID.

    location str

    Resource location.

    network_watcher_name str

    The name of the network watcher.

    tags Mapping[str, str]

    Resource tags.

    resourceGroupName String

    The name of the resource group.

    id String

    Resource ID.

    location String

    Resource location.

    networkWatcherName String

    The name of the network watcher.

    tags Map<String>

    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkWatcher resource produces the following output properties:

    Etag string

    A unique read-only string that changes whenever the resource is updated.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Resource name.

    ProvisioningState string

    The provisioning state of the network watcher resource.

    Type string

    Resource type.

    Etag string

    A unique read-only string that changes whenever the resource is updated.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Resource name.

    ProvisioningState string

    The provisioning state of the network watcher resource.

    Type string

    Resource type.

    etag String

    A unique read-only string that changes whenever the resource is updated.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Resource name.

    provisioningState String

    The provisioning state of the network watcher resource.

    type String

    Resource type.

    etag string

    A unique read-only string that changes whenever the resource is updated.

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    Resource name.

    provisioningState string

    The provisioning state of the network watcher resource.

    type string

    Resource type.

    etag str

    A unique read-only string that changes whenever the resource is updated.

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    Resource name.

    provisioning_state str

    The provisioning state of the network watcher resource.

    type str

    Resource type.

    etag String

    A unique read-only string that changes whenever the resource is updated.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Resource name.

    provisioningState String

    The provisioning state of the network watcher resource.

    type String

    Resource type.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:network:NetworkWatcher nw1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi