1. Packages
  2. Azure Native v1
  3. API Docs
  4. network
  5. NetworkGroup
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.network.NetworkGroup

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The network group resource API Version: 2021-02-01-preview.

    Example Usage

    NetworkGroupsPut

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var networkGroup = new AzureNative.Network.NetworkGroup("networkGroup", new()
        {
            ConditionalMembership = "",
            Description = "A sample group",
            DisplayName = "My Network Group",
            GroupMembers = new[]
            {
                new AzureNative.Network.Inputs.GroupMembersItemArgs
                {
                    ResourceId = "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1",
                },
            },
            MemberType = "VirtualNetwork",
            NetworkGroupName = "TestNetworkGroup",
            NetworkManagerName = "testNetworkManager",
            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.NewNetworkGroup(ctx, "networkGroup", &network.NetworkGroupArgs{
    			ConditionalMembership: pulumi.String(""),
    			Description:           pulumi.String("A sample group"),
    			DisplayName:           pulumi.String("My Network Group"),
    			GroupMembers: []network.GroupMembersItemArgs{
    				{
    					ResourceId: pulumi.String("/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1"),
    				},
    			},
    			MemberType:         pulumi.String("VirtualNetwork"),
    			NetworkGroupName:   pulumi.String("TestNetworkGroup"),
    			NetworkManagerName: pulumi.String("testNetworkManager"),
    			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.NetworkGroup;
    import com.pulumi.azurenative.network.NetworkGroupArgs;
    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 networkGroup = new NetworkGroup("networkGroup", NetworkGroupArgs.builder()        
                .conditionalMembership("")
                .description("A sample group")
                .displayName("My Network Group")
                .groupMembers(Map.of("resourceId", "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1"))
                .memberType("VirtualNetwork")
                .networkGroupName("TestNetworkGroup")
                .networkManagerName("testNetworkManager")
                .resourceGroupName("rg1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    network_group = azure_native.network.NetworkGroup("networkGroup",
        conditional_membership="",
        description="A sample group",
        display_name="My Network Group",
        group_members=[azure_native.network.GroupMembersItemArgs(
            resource_id="/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1",
        )],
        member_type="VirtualNetwork",
        network_group_name="TestNetworkGroup",
        network_manager_name="testNetworkManager",
        resource_group_name="rg1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const networkGroup = new azure_native.network.NetworkGroup("networkGroup", {
        conditionalMembership: "",
        description: "A sample group",
        displayName: "My Network Group",
        groupMembers: [{
            resourceId: "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1",
        }],
        memberType: "VirtualNetwork",
        networkGroupName: "TestNetworkGroup",
        networkManagerName: "testNetworkManager",
        resourceGroupName: "rg1",
    });
    
    resources:
      networkGroup:
        type: azure-native:network:NetworkGroup
        properties:
          conditionalMembership:
          description: A sample group
          displayName: My Network Group
          groupMembers:
            - resourceId: /subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1
          memberType: VirtualNetwork
          networkGroupName: TestNetworkGroup
          networkManagerName: testNetworkManager
          resourceGroupName: rg1
    

    Create NetworkGroup Resource

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

    Constructor syntax

    new NetworkGroup(name: string, args: NetworkGroupArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkGroup(resource_name: str,
                     args: NetworkGroupArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkGroup(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     network_manager_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     conditional_membership: Optional[str] = None,
                     description: Optional[str] = None,
                     display_name: Optional[str] = None,
                     group_members: Optional[Sequence[GroupMembersItemArgs]] = None,
                     member_type: Optional[str] = None,
                     network_group_name: Optional[str] = None)
    func NewNetworkGroup(ctx *Context, name string, args NetworkGroupArgs, opts ...ResourceOption) (*NetworkGroup, error)
    public NetworkGroup(string name, NetworkGroupArgs args, CustomResourceOptions? opts = null)
    public NetworkGroup(String name, NetworkGroupArgs args)
    public NetworkGroup(String name, NetworkGroupArgs args, CustomResourceOptions options)
    
    type: azure-native:network:NetworkGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NetworkGroupArgs
    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 NetworkGroupArgs
    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 NetworkGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkGroupArgs
    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 networkGroupResource = new AzureNative.Network.NetworkGroup("networkGroupResource", new()
    {
        NetworkManagerName = "string",
        ResourceGroupName = "string",
        ConditionalMembership = "string",
        Description = "string",
        DisplayName = "string",
        GroupMembers = new[]
        {
            
            {
                { "resourceId", "string" },
            },
        },
        MemberType = "string",
        NetworkGroupName = "string",
    });
    
    example, err := network.NewNetworkGroup(ctx, "networkGroupResource", &network.NetworkGroupArgs{
    	NetworkManagerName:    "string",
    	ResourceGroupName:     "string",
    	ConditionalMembership: "string",
    	Description:           "string",
    	DisplayName:           "string",
    	GroupMembers: []map[string]interface{}{
    		map[string]interface{}{
    			"resourceId": "string",
    		},
    	},
    	MemberType:       "string",
    	NetworkGroupName: "string",
    })
    
    var networkGroupResource = new NetworkGroup("networkGroupResource", NetworkGroupArgs.builder()
        .networkManagerName("string")
        .resourceGroupName("string")
        .conditionalMembership("string")
        .description("string")
        .displayName("string")
        .groupMembers(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .memberType("string")
        .networkGroupName("string")
        .build());
    
    network_group_resource = azure_native.network.NetworkGroup("networkGroupResource",
        network_manager_name=string,
        resource_group_name=string,
        conditional_membership=string,
        description=string,
        display_name=string,
        group_members=[{
            resourceId: string,
        }],
        member_type=string,
        network_group_name=string)
    
    const networkGroupResource = new azure_native.network.NetworkGroup("networkGroupResource", {
        networkManagerName: "string",
        resourceGroupName: "string",
        conditionalMembership: "string",
        description: "string",
        displayName: "string",
        groupMembers: [{
            resourceId: "string",
        }],
        memberType: "string",
        networkGroupName: "string",
    });
    
    type: azure-native:network:NetworkGroup
    properties:
        conditionalMembership: string
        description: string
        displayName: string
        groupMembers:
            - resourceId: string
        memberType: string
        networkGroupName: string
        networkManagerName: string
        resourceGroupName: string
    

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

    NetworkManagerName string
    The name of the network manager.
    ResourceGroupName string
    The name of the resource group.
    ConditionalMembership string
    Network group conditional filter.
    Description string
    A description of the network group.
    DisplayName string
    A friendly name for the network group.
    GroupMembers List<Pulumi.AzureNative.Network.Inputs.GroupMembersItem>
    Group members of network group.
    MemberType string
    Group member type.
    NetworkGroupName string
    The name of the network group to get.
    NetworkManagerName string
    The name of the network manager.
    ResourceGroupName string
    The name of the resource group.
    ConditionalMembership string
    Network group conditional filter.
    Description string
    A description of the network group.
    DisplayName string
    A friendly name for the network group.
    GroupMembers []GroupMembersItemArgs
    Group members of network group.
    MemberType string
    Group member type.
    NetworkGroupName string
    The name of the network group to get.
    networkManagerName String
    The name of the network manager.
    resourceGroupName String
    The name of the resource group.
    conditionalMembership String
    Network group conditional filter.
    description String
    A description of the network group.
    displayName String
    A friendly name for the network group.
    groupMembers List<GroupMembersItem>
    Group members of network group.
    memberType String
    Group member type.
    networkGroupName String
    The name of the network group to get.
    networkManagerName string
    The name of the network manager.
    resourceGroupName string
    The name of the resource group.
    conditionalMembership string
    Network group conditional filter.
    description string
    A description of the network group.
    displayName string
    A friendly name for the network group.
    groupMembers GroupMembersItem[]
    Group members of network group.
    memberType string
    Group member type.
    networkGroupName string
    The name of the network group to get.
    network_manager_name str
    The name of the network manager.
    resource_group_name str
    The name of the resource group.
    conditional_membership str
    Network group conditional filter.
    description str
    A description of the network group.
    display_name str
    A friendly name for the network group.
    group_members Sequence[GroupMembersItemArgs]
    Group members of network group.
    member_type str
    Group member type.
    network_group_name str
    The name of the network group to get.
    networkManagerName String
    The name of the network manager.
    resourceGroupName String
    The name of the resource group.
    conditionalMembership String
    Network group conditional filter.
    description String
    A description of the network group.
    displayName String
    A friendly name for the network group.
    groupMembers List<Property Map>
    Group members of network group.
    memberType String
    Group member type.
    networkGroupName String
    The name of the network group to get.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkGroup 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.
    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.
    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.
    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.
    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.
    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.
    systemData Property Map
    The system metadata related to this resource.
    type String
    Resource type.

    Supporting Types

    GroupMembersItem, GroupMembersItemArgs

    ResourceId string
    Resource Id.
    ResourceId string
    Resource Id.
    resourceId String
    Resource Id.
    resourceId string
    Resource Id.
    resource_id str
    Resource Id.
    resourceId String
    Resource Id.

    GroupMembersItemResponse, GroupMembersItemResponseArgs

    ResourceId string
    Resource Id.
    ResourceId string
    Resource Id.
    resourceId String
    Resource Id.
    resourceId string
    Resource Id.
    resource_id str
    Resource Id.
    resourceId String
    Resource Id.

    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:NetworkGroup TestNetworkGroup /subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/TestNetworkGroup 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi