1. Packages
  2. Azure Native v2
  3. API Docs
  4. servicefabricmesh
  5. Network
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.servicefabricmesh.Network

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

This type describes a network resource. Azure REST API version: 2018-09-01-preview. Prior API version in Azure Native 1.x: 2018-09-01-preview.

Example Usage

CreateOrUpdateNetwork

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var network = new AzureNative.ServiceFabricMesh.Network("network", new()
    {
        Location = "EastUS",
        NetworkResourceName = "sampleNetwork",
        Properties = null,
        ResourceGroupName = "sbz_demo",
        Tags = null,
    });

});
Copy
package main

import (
	servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicefabricmesh.NewNetwork(ctx, "network", &servicefabricmesh.NetworkArgs{
			Location:            pulumi.String("EastUS"),
			NetworkResourceName: pulumi.String("sampleNetwork"),
			Properties:          &servicefabricmesh.NetworkResourcePropertiesArgs{},
			ResourceGroupName:   pulumi.String("sbz_demo"),
			Tags:                pulumi.StringMap{},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.servicefabricmesh.Network;
import com.pulumi.azurenative.servicefabricmesh.NetworkArgs;
import com.pulumi.azurenative.servicefabricmesh.inputs.NetworkResourcePropertiesArgs;
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 network = new Network("network", NetworkArgs.builder()
            .location("EastUS")
            .networkResourceName("sampleNetwork")
            .properties()
            .resourceGroupName("sbz_demo")
            .tags()
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const network = new azure_native.servicefabricmesh.Network("network", {
    location: "EastUS",
    networkResourceName: "sampleNetwork",
    properties: {},
    resourceGroupName: "sbz_demo",
    tags: {},
});
Copy
import pulumi
import pulumi_azure_native as azure_native

network = azure_native.servicefabricmesh.Network("network",
    location="EastUS",
    network_resource_name="sampleNetwork",
    properties={},
    resource_group_name="sbz_demo",
    tags={})
Copy
resources:
  network:
    type: azure-native:servicefabricmesh:Network
    properties:
      location: EastUS
      networkResourceName: sampleNetwork
      properties: {}
      resourceGroupName: sbz_demo
      tags: {}
Copy

Create Network Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Network(name: string, args: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
            args: NetworkArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Network(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            properties: Optional[NetworkResourcePropertiesArgs] = None,
            resource_group_name: Optional[str] = None,
            location: Optional[str] = None,
            network_resource_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
func NewNetwork(ctx *Context, name string, args NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs args, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: azure-native:servicefabricmesh:Network
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. NetworkArgs
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. NetworkArgs
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. NetworkArgs
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. NetworkArgs
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. NetworkArgs
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 networkResource = new AzureNative.Servicefabricmesh.Network("networkResource", new()
{
    Properties = 
    {
        { "kind", "NetworkResourceProperties" },
        { "description", "string" },
    },
    ResourceGroupName = "string",
    Location = "string",
    NetworkResourceName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := servicefabricmesh.NewNetwork(ctx, "networkResource", &servicefabricmesh.NetworkArgs{
	Properties: map[string]interface{}{
		"kind":        "NetworkResourceProperties",
		"description": "string",
	},
	ResourceGroupName:   "string",
	Location:            "string",
	NetworkResourceName: "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
})
Copy
var networkResource = new Network("networkResource", NetworkArgs.builder()
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .resourceGroupName("string")
    .location("string")
    .networkResourceName("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
network_resource = azure_native.servicefabricmesh.Network("networkResource",
    properties={
        kind: NetworkResourceProperties,
        description: string,
    },
    resource_group_name=string,
    location=string,
    network_resource_name=string,
    tags={
        string: string,
    })
Copy
const networkResource = new azure_native.servicefabricmesh.Network("networkResource", {
    properties: {
        kind: "NetworkResourceProperties",
        description: "string",
    },
    resourceGroupName: "string",
    location: "string",
    networkResourceName: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:servicefabricmesh:Network
properties:
    location: string
    networkResourceName: string
    properties:
        description: string
        kind: NetworkResourceProperties
    resourceGroupName: string
    tags:
        string: string
Copy

Network 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 Network resource accepts the following input properties:

Properties This property is required. Pulumi.AzureNative.ServiceFabricMesh.Inputs.NetworkResourceProperties
Describes properties of a network resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
NetworkResourceName Changes to this property will trigger replacement. string
The identity of the network.
Tags Dictionary<string, string>
Resource tags.
Properties This property is required. NetworkResourcePropertiesArgs
Describes properties of a network resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
NetworkResourceName Changes to this property will trigger replacement. string
The identity of the network.
Tags map[string]string
Resource tags.
properties This property is required. NetworkResourceProperties
Describes properties of a network resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Azure resource group name
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
networkResourceName Changes to this property will trigger replacement. String
The identity of the network.
tags Map<String,String>
Resource tags.
properties This property is required. NetworkResourceProperties
Describes properties of a network resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
networkResourceName Changes to this property will trigger replacement. string
The identity of the network.
tags {[key: string]: string}
Resource tags.
properties This property is required. NetworkResourcePropertiesArgs
Describes properties of a network resource.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Azure resource group name
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
network_resource_name Changes to this property will trigger replacement. str
The identity of the network.
tags Mapping[str, str]
Resource tags.
properties This property is required. Property Map
Describes properties of a network resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Azure resource group name
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
networkResourceName Changes to this property will trigger replacement. String
The identity of the network.
tags Map<String>
Resource tags.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

Supporting Types

NetworkResourceProperties
, NetworkResourcePropertiesArgs

Description string
User readable description of the network.
Description string
User readable description of the network.
description String
User readable description of the network.
description string
User readable description of the network.
description str
User readable description of the network.
description String
User readable description of the network.

NetworkResourcePropertiesResponse
, NetworkResourcePropertiesResponseArgs

ProvisioningState This property is required. string
State of the resource.
Status This property is required. string
Status of the network.
StatusDetails This property is required. string
Gives additional information about the current status of the network.
Description string
User readable description of the network.
ProvisioningState This property is required. string
State of the resource.
Status This property is required. string
Status of the network.
StatusDetails This property is required. string
Gives additional information about the current status of the network.
Description string
User readable description of the network.
provisioningState This property is required. String
State of the resource.
status This property is required. String
Status of the network.
statusDetails This property is required. String
Gives additional information about the current status of the network.
description String
User readable description of the network.
provisioningState This property is required. string
State of the resource.
status This property is required. string
Status of the network.
statusDetails This property is required. string
Gives additional information about the current status of the network.
description string
User readable description of the network.
provisioning_state This property is required. str
State of the resource.
status This property is required. str
Status of the network.
status_details This property is required. str
Gives additional information about the current status of the network.
description str
User readable description of the network.
provisioningState This property is required. String
State of the resource.
status This property is required. String
Status of the network.
statusDetails This property is required. String
Gives additional information about the current status of the network.
description String
User readable description of the network.

Import

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

$ pulumi import azure-native:servicefabricmesh:Network sampleNetwork /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkResourceName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi