1. Packages
  2. Azure Native v1
  3. API Docs
  4. managednetwork
  5. ManagedNetworkGroup
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.managednetwork.ManagedNetworkGroup

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 Managed Network Group resource API Version: 2019-06-01-preview.

    Example Usage

    ManagementNetworkGroupsPut

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var managedNetworkGroup = new AzureNative.ManagedNetwork.ManagedNetworkGroup("managedNetworkGroup", new()
        {
            ManagedNetworkGroupName = "myManagedNetworkGroup1",
            ManagedNetworkName = "myManagedNetwork",
            ManagementGroups = new[] {},
            ResourceGroupName = "myResourceGroup",
            Subnets = new[]
            {
                new AzureNative.ManagedNetwork.Inputs.ResourceIdArgs
                {
                    Id = "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA",
                },
            },
            Subscriptions = new[] {},
            VirtualNetworks = new[]
            {
                new AzureNative.ManagedNetwork.Inputs.ResourceIdArgs
                {
                    Id = "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA",
                },
                new AzureNative.ManagedNetwork.Inputs.ResourceIdArgs
                {
                    Id = "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	managednetwork "github.com/pulumi/pulumi-azure-native-sdk/managednetwork"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := managednetwork.NewManagedNetworkGroup(ctx, "managedNetworkGroup", &managednetwork.ManagedNetworkGroupArgs{
    			ManagedNetworkGroupName: pulumi.String("myManagedNetworkGroup1"),
    			ManagedNetworkName:      pulumi.String("myManagedNetwork"),
    			ManagementGroups:        managednetwork.ResourceIdArray{},
    			ResourceGroupName:       pulumi.String("myResourceGroup"),
    			Subnets: []managednetwork.ResourceIdArgs{
    				{
    					Id: pulumi.String("/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA"),
    				},
    			},
    			Subscriptions: managednetwork.ResourceIdArray{},
    			VirtualNetworks: []managednetwork.ResourceIdArgs{
    				{
    					Id: pulumi.String("/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA"),
    				},
    				{
    					Id: pulumi.String("/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB"),
    				},
    			},
    		})
    		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.managednetwork.ManagedNetworkGroup;
    import com.pulumi.azurenative.managednetwork.ManagedNetworkGroupArgs;
    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 managedNetworkGroup = new ManagedNetworkGroup("managedNetworkGroup", ManagedNetworkGroupArgs.builder()        
                .managedNetworkGroupName("myManagedNetworkGroup1")
                .managedNetworkName("myManagedNetwork")
                .managementGroups()
                .resourceGroupName("myResourceGroup")
                .subnets(Map.of("id", "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA"))
                .subscriptions()
                .virtualNetworks(            
                    Map.of("id", "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA"),
                    Map.of("id", "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    managed_network_group = azure_native.managednetwork.ManagedNetworkGroup("managedNetworkGroup",
        managed_network_group_name="myManagedNetworkGroup1",
        managed_network_name="myManagedNetwork",
        management_groups=[],
        resource_group_name="myResourceGroup",
        subnets=[azure_native.managednetwork.ResourceIdArgs(
            id="/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA",
        )],
        subscriptions=[],
        virtual_networks=[
            azure_native.managednetwork.ResourceIdArgs(
                id="/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA",
            ),
            azure_native.managednetwork.ResourceIdArgs(
                id="/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB",
            ),
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const managedNetworkGroup = new azure_native.managednetwork.ManagedNetworkGroup("managedNetworkGroup", {
        managedNetworkGroupName: "myManagedNetworkGroup1",
        managedNetworkName: "myManagedNetwork",
        managementGroups: [],
        resourceGroupName: "myResourceGroup",
        subnets: [{
            id: "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA",
        }],
        subscriptions: [],
        virtualNetworks: [
            {
                id: "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA",
            },
            {
                id: "/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB",
            },
        ],
    });
    
    resources:
      managedNetworkGroup:
        type: azure-native:managednetwork:ManagedNetworkGroup
        properties:
          managedNetworkGroupName: myManagedNetworkGroup1
          managedNetworkName: myManagedNetwork
          managementGroups: []
          resourceGroupName: myResourceGroup
          subnets:
            - id: /subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA/subnets/subnetA
          subscriptions: []
          virtualNetworks:
            - id: /subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetA
            - id: /subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/VnetB
    

    Create ManagedNetworkGroup Resource

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

    Constructor syntax

    new ManagedNetworkGroup(name: string, args: ManagedNetworkGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedNetworkGroup(resource_name: str,
                            args: ManagedNetworkGroupArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedNetworkGroup(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            managed_network_name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            kind: Optional[Union[str, Kind]] = None,
                            location: Optional[str] = None,
                            managed_network_group_name: Optional[str] = None,
                            management_groups: Optional[Sequence[ResourceIdArgs]] = None,
                            subnets: Optional[Sequence[ResourceIdArgs]] = None,
                            subscriptions: Optional[Sequence[ResourceIdArgs]] = None,
                            virtual_networks: Optional[Sequence[ResourceIdArgs]] = None)
    func NewManagedNetworkGroup(ctx *Context, name string, args ManagedNetworkGroupArgs, opts ...ResourceOption) (*ManagedNetworkGroup, error)
    public ManagedNetworkGroup(string name, ManagedNetworkGroupArgs args, CustomResourceOptions? opts = null)
    public ManagedNetworkGroup(String name, ManagedNetworkGroupArgs args)
    public ManagedNetworkGroup(String name, ManagedNetworkGroupArgs args, CustomResourceOptions options)
    
    type: azure-native:managednetwork:ManagedNetworkGroup
    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 ManagedNetworkGroupArgs
    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 ManagedNetworkGroupArgs
    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 ManagedNetworkGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedNetworkGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedNetworkGroupArgs
    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 managedNetworkGroupResource = new AzureNative.Managednetwork.ManagedNetworkGroup("managedNetworkGroupResource", new()
    {
        ManagedNetworkName = "string",
        ResourceGroupName = "string",
        Kind = "string",
        Location = "string",
        ManagedNetworkGroupName = "string",
        ManagementGroups = new[]
        {
            
            {
                { "id", "string" },
            },
        },
        Subnets = new[]
        {
            
            {
                { "id", "string" },
            },
        },
        Subscriptions = new[]
        {
            
            {
                { "id", "string" },
            },
        },
        VirtualNetworks = new[]
        {
            
            {
                { "id", "string" },
            },
        },
    });
    
    example, err := managednetwork.NewManagedNetworkGroup(ctx, "managedNetworkGroupResource", &managednetwork.ManagedNetworkGroupArgs{
    	ManagedNetworkName:      "string",
    	ResourceGroupName:       "string",
    	Kind:                    "string",
    	Location:                "string",
    	ManagedNetworkGroupName: "string",
    	ManagementGroups: []map[string]interface{}{
    		map[string]interface{}{
    			"id": "string",
    		},
    	},
    	Subnets: []map[string]interface{}{
    		map[string]interface{}{
    			"id": "string",
    		},
    	},
    	Subscriptions: []map[string]interface{}{
    		map[string]interface{}{
    			"id": "string",
    		},
    	},
    	VirtualNetworks: []map[string]interface{}{
    		map[string]interface{}{
    			"id": "string",
    		},
    	},
    })
    
    var managedNetworkGroupResource = new ManagedNetworkGroup("managedNetworkGroupResource", ManagedNetworkGroupArgs.builder()
        .managedNetworkName("string")
        .resourceGroupName("string")
        .kind("string")
        .location("string")
        .managedNetworkGroupName("string")
        .managementGroups(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .subnets(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .subscriptions(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .virtualNetworks(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    managed_network_group_resource = azure_native.managednetwork.ManagedNetworkGroup("managedNetworkGroupResource",
        managed_network_name=string,
        resource_group_name=string,
        kind=string,
        location=string,
        managed_network_group_name=string,
        management_groups=[{
            id: string,
        }],
        subnets=[{
            id: string,
        }],
        subscriptions=[{
            id: string,
        }],
        virtual_networks=[{
            id: string,
        }])
    
    const managedNetworkGroupResource = new azure_native.managednetwork.ManagedNetworkGroup("managedNetworkGroupResource", {
        managedNetworkName: "string",
        resourceGroupName: "string",
        kind: "string",
        location: "string",
        managedNetworkGroupName: "string",
        managementGroups: [{
            id: "string",
        }],
        subnets: [{
            id: "string",
        }],
        subscriptions: [{
            id: "string",
        }],
        virtualNetworks: [{
            id: "string",
        }],
    });
    
    type: azure-native:managednetwork:ManagedNetworkGroup
    properties:
        kind: string
        location: string
        managedNetworkGroupName: string
        managedNetworkName: string
        managementGroups:
            - id: string
        resourceGroupName: string
        subnets:
            - id: string
        subscriptions:
            - id: string
        virtualNetworks:
            - id: string
    

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

    ManagedNetworkName string
    The name of the Managed Network.
    ResourceGroupName string
    The name of the resource group.
    Kind string | Pulumi.AzureNative.ManagedNetwork.Kind
    Responsibility role under which this Managed Network Group will be created
    Location string
    The geo-location where the resource lives
    ManagedNetworkGroupName string
    The name of the Managed Network Group.
    ManagementGroups List<Pulumi.AzureNative.ManagedNetwork.Inputs.ResourceId>
    The collection of management groups covered by the Managed Network
    Subnets List<Pulumi.AzureNative.ManagedNetwork.Inputs.ResourceId>
    The collection of subnets covered by the Managed Network
    Subscriptions List<Pulumi.AzureNative.ManagedNetwork.Inputs.ResourceId>
    The collection of subscriptions covered by the Managed Network
    VirtualNetworks List<Pulumi.AzureNative.ManagedNetwork.Inputs.ResourceId>
    The collection of virtual nets covered by the Managed Network
    ManagedNetworkName string
    The name of the Managed Network.
    ResourceGroupName string
    The name of the resource group.
    Kind string | Kind
    Responsibility role under which this Managed Network Group will be created
    Location string
    The geo-location where the resource lives
    ManagedNetworkGroupName string
    The name of the Managed Network Group.
    ManagementGroups []ResourceIdArgs
    The collection of management groups covered by the Managed Network
    Subnets []ResourceIdArgs
    The collection of subnets covered by the Managed Network
    Subscriptions []ResourceIdArgs
    The collection of subscriptions covered by the Managed Network
    VirtualNetworks []ResourceIdArgs
    The collection of virtual nets covered by the Managed Network
    managedNetworkName String
    The name of the Managed Network.
    resourceGroupName String
    The name of the resource group.
    kind String | Kind
    Responsibility role under which this Managed Network Group will be created
    location String
    The geo-location where the resource lives
    managedNetworkGroupName String
    The name of the Managed Network Group.
    managementGroups List<ResourceId>
    The collection of management groups covered by the Managed Network
    subnets List<ResourceId>
    The collection of subnets covered by the Managed Network
    subscriptions List<ResourceId>
    The collection of subscriptions covered by the Managed Network
    virtualNetworks List<ResourceId>
    The collection of virtual nets covered by the Managed Network
    managedNetworkName string
    The name of the Managed Network.
    resourceGroupName string
    The name of the resource group.
    kind string | Kind
    Responsibility role under which this Managed Network Group will be created
    location string
    The geo-location where the resource lives
    managedNetworkGroupName string
    The name of the Managed Network Group.
    managementGroups ResourceId[]
    The collection of management groups covered by the Managed Network
    subnets ResourceId[]
    The collection of subnets covered by the Managed Network
    subscriptions ResourceId[]
    The collection of subscriptions covered by the Managed Network
    virtualNetworks ResourceId[]
    The collection of virtual nets covered by the Managed Network
    managed_network_name str
    The name of the Managed Network.
    resource_group_name str
    The name of the resource group.
    kind str | Kind
    Responsibility role under which this Managed Network Group will be created
    location str
    The geo-location where the resource lives
    managed_network_group_name str
    The name of the Managed Network Group.
    management_groups Sequence[ResourceIdArgs]
    The collection of management groups covered by the Managed Network
    subnets Sequence[ResourceIdArgs]
    The collection of subnets covered by the Managed Network
    subscriptions Sequence[ResourceIdArgs]
    The collection of subscriptions covered by the Managed Network
    virtual_networks Sequence[ResourceIdArgs]
    The collection of virtual nets covered by the Managed Network
    managedNetworkName String
    The name of the Managed Network.
    resourceGroupName String
    The name of the resource group.
    kind String | "Connectivity"
    Responsibility role under which this Managed Network Group will be created
    location String
    The geo-location where the resource lives
    managedNetworkGroupName String
    The name of the Managed Network Group.
    managementGroups List<Property Map>
    The collection of management groups covered by the Managed Network
    subnets List<Property Map>
    The collection of subnets covered by the Managed Network
    subscriptions List<Property Map>
    The collection of subscriptions covered by the Managed Network
    virtualNetworks List<Property Map>
    The collection of virtual nets covered by the Managed Network

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagedNetworkGroup 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
    The name of the resource
    ProvisioningState string
    Provisioning state of the ManagedNetwork resource.
    Type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    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
    The name of the resource
    ProvisioningState string
    Provisioning state of the ManagedNetwork resource.
    Type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    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
    The name of the resource
    provisioningState String
    Provisioning state of the ManagedNetwork resource.
    type String
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    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
    The name of the resource
    provisioningState string
    Provisioning state of the ManagedNetwork resource.
    type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    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
    The name of the resource
    provisioning_state str
    Provisioning state of the ManagedNetwork resource.
    type str
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    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
    The name of the resource
    provisioningState String
    Provisioning state of the ManagedNetwork resource.
    type String
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

    Supporting Types

    Kind, KindArgs

    Connectivity
    Connectivity
    KindConnectivity
    Connectivity
    Connectivity
    Connectivity
    Connectivity
    Connectivity
    CONNECTIVITY
    Connectivity
    "Connectivity"
    Connectivity

    ResourceId, ResourceIdArgs

    Id string
    Resource Id
    Id string
    Resource Id
    id String
    Resource Id
    id string
    Resource Id
    id str
    Resource Id
    id String
    Resource Id

    ResourceIdResponse, ResourceIdResponseArgs

    Id string
    Resource Id
    Id string
    Resource Id
    id String
    Resource Id
    id string
    Resource Id
    id str
    Resource Id
    id String
    Resource Id

    Import

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

    $ pulumi import azure-native:managednetwork:ManagedNetworkGroup myManagedNetworkGroup1 /subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.ManagedNetwork/managedNetworks/myManagedNetwork/managedNetworkGroups/myManagedNetworkGroup1 
    

    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