1. Packages
  2. Azure Native v2
  3. API Docs
  4. network
  5. StaticMember
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.network.StaticMember

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

StaticMember Item. Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2022-02-01-preview.

Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.

Example Usage

StaticMemberPut

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

return await Deployment.RunAsync(() => 
{
    var staticMember = new AzureNative.Network.StaticMember("staticMember", new()
    {
        NetworkGroupName = "testNetworkGroup",
        NetworkManagerName = "testNetworkManager",
        ResourceGroupName = "rg1",
        ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1",
        StaticMemberName = "testStaticMember",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewStaticMember(ctx, "staticMember", &network.StaticMemberArgs{
			NetworkGroupName:   pulumi.String("testNetworkGroup"),
			NetworkManagerName: pulumi.String("testNetworkManager"),
			ResourceGroupName:  pulumi.String("rg1"),
			ResourceId:         pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1"),
			StaticMemberName:   pulumi.String("testStaticMember"),
		})
		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.network.StaticMember;
import com.pulumi.azurenative.network.StaticMemberArgs;
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 staticMember = new StaticMember("staticMember", StaticMemberArgs.builder()
            .networkGroupName("testNetworkGroup")
            .networkManagerName("testNetworkManager")
            .resourceGroupName("rg1")
            .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1")
            .staticMemberName("testStaticMember")
            .build());

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

const staticMember = new azure_native.network.StaticMember("staticMember", {
    networkGroupName: "testNetworkGroup",
    networkManagerName: "testNetworkManager",
    resourceGroupName: "rg1",
    resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1",
    staticMemberName: "testStaticMember",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

static_member = azure_native.network.StaticMember("staticMember",
    network_group_name="testNetworkGroup",
    network_manager_name="testNetworkManager",
    resource_group_name="rg1",
    resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1",
    static_member_name="testStaticMember")
Copy
resources:
  staticMember:
    type: azure-native:network:StaticMember
    properties:
      networkGroupName: testNetworkGroup
      networkManagerName: testNetworkManager
      resourceGroupName: rg1
      resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1
      staticMemberName: testStaticMember
Copy

Create StaticMember Resource

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

Constructor syntax

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

@overload
def StaticMember(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 network_group_name: Optional[str] = None,
                 network_manager_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 resource_id: Optional[str] = None,
                 static_member_name: Optional[str] = None)
func NewStaticMember(ctx *Context, name string, args StaticMemberArgs, opts ...ResourceOption) (*StaticMember, error)
public StaticMember(string name, StaticMemberArgs args, CustomResourceOptions? opts = null)
public StaticMember(String name, StaticMemberArgs args)
public StaticMember(String name, StaticMemberArgs args, CustomResourceOptions options)
type: azure-native:network:StaticMember
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. StaticMemberArgs
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. StaticMemberArgs
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. StaticMemberArgs
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. StaticMemberArgs
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. StaticMemberArgs
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 staticMemberResource = new AzureNative.Network.StaticMember("staticMemberResource", new()
{
    NetworkGroupName = "string",
    NetworkManagerName = "string",
    ResourceGroupName = "string",
    ResourceId = "string",
    StaticMemberName = "string",
});
Copy
example, err := network.NewStaticMember(ctx, "staticMemberResource", &network.StaticMemberArgs{
	NetworkGroupName:   "string",
	NetworkManagerName: "string",
	ResourceGroupName:  "string",
	ResourceId:         "string",
	StaticMemberName:   "string",
})
Copy
var staticMemberResource = new StaticMember("staticMemberResource", StaticMemberArgs.builder()
    .networkGroupName("string")
    .networkManagerName("string")
    .resourceGroupName("string")
    .resourceId("string")
    .staticMemberName("string")
    .build());
Copy
static_member_resource = azure_native.network.StaticMember("staticMemberResource",
    network_group_name=string,
    network_manager_name=string,
    resource_group_name=string,
    resource_id=string,
    static_member_name=string)
Copy
const staticMemberResource = new azure_native.network.StaticMember("staticMemberResource", {
    networkGroupName: "string",
    networkManagerName: "string",
    resourceGroupName: "string",
    resourceId: "string",
    staticMemberName: "string",
});
Copy
type: azure-native:network:StaticMember
properties:
    networkGroupName: string
    networkManagerName: string
    resourceGroupName: string
    resourceId: string
    staticMemberName: string
Copy

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

NetworkGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network group.
NetworkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ResourceId string
Resource Id.
StaticMemberName Changes to this property will trigger replacement. string
The name of the static member.
NetworkGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network group.
NetworkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ResourceId string
Resource Id.
StaticMemberName Changes to this property will trigger replacement. string
The name of the static member.
networkGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network group.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
resourceId String
Resource Id.
staticMemberName Changes to this property will trigger replacement. String
The name of the static member.
networkGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network group.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
resourceId string
Resource Id.
staticMemberName Changes to this property will trigger replacement. string
The name of the static member.
network_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network group.
network_manager_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network manager.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
resource_id str
Resource Id.
static_member_name Changes to this property will trigger replacement. str
The name of the static member.
networkGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network group.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
resourceId String
Resource Id.
staticMemberName Changes to this property will trigger replacement. String
The name of the static member.

Outputs

All input properties are implicitly available as output properties. Additionally, the StaticMember 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 scope assignment resource.
Region string
Resource region.
SystemData Pulumi.AzureNative.Network.Outputs.SystemDataResponse
The system metadata related to this 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 scope assignment resource.
Region string
Resource region.
SystemData SystemDataResponse
The system metadata related to this 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 scope assignment resource.
region String
Resource region.
systemData SystemDataResponse
The system metadata related to this 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 scope assignment resource.
region string
Resource region.
systemData SystemDataResponse
The system metadata related to this 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 scope assignment resource.
region str
Resource region.
system_data SystemDataResponse
The system metadata related to this 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 scope assignment resource.
region String
Resource region.
systemData Property Map
The system metadata related to this resource.
type String
Resource type.

Supporting Types

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The type of identity that last modified the resource.
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The type of identity that last modified the resource.
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The type of identity that last modified the resource.
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The type of identity that last modified the resource.
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The type of identity that last modified the resource.
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

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

$ pulumi import azure-native:network:StaticMember testStaticMember /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName} 
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