1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. NetworkManager
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.network.NetworkManager

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    The Managed Network resource Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2021-02-01-preview.

    Other available API versions: 2021-02-01-preview, 2021-05-01-preview, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01.

    Example Usage

    Put Network Manager

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var networkManager = new AzureNative.Network.NetworkManager("networkManager", new()
        {
            Description = "My Test Network Manager",
            NetworkManagerName = "TestNetworkManager",
            NetworkManagerScopeAccesses = new[]
            {
                AzureNative.Network.ConfigurationType.Connectivity,
            },
            NetworkManagerScopes = new AzureNative.Network.Inputs.NetworkManagerPropertiesNetworkManagerScopesArgs
            {
                ManagementGroups = new[]
                {
                    "/providers/Microsoft.Management/managementGroups/sampleMG",
                },
                Subscriptions = new[]
                {
                    "/subscriptions/00000000-0000-0000-0000-000000000000",
                },
            },
            ResourceGroupName = "rg1",
        });
    
    });
    
    package main
    
    import (
    	"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.NewNetworkManager(ctx, "networkManager", &network.NetworkManagerArgs{
    			Description:        pulumi.String("My Test Network Manager"),
    			NetworkManagerName: pulumi.String("TestNetworkManager"),
    			NetworkManagerScopeAccesses: pulumi.StringArray{
    				pulumi.String(network.ConfigurationTypeConnectivity),
    			},
    			NetworkManagerScopes: &network.NetworkManagerPropertiesNetworkManagerScopesArgs{
    				ManagementGroups: pulumi.StringArray{
    					pulumi.String("/providers/Microsoft.Management/managementGroups/sampleMG"),
    				},
    				Subscriptions: pulumi.StringArray{
    					pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000"),
    				},
    			},
    			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.NetworkManager;
    import com.pulumi.azurenative.network.NetworkManagerArgs;
    import com.pulumi.azurenative.network.inputs.NetworkManagerPropertiesNetworkManagerScopesArgs;
    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 networkManager = new NetworkManager("networkManager", NetworkManagerArgs.builder()        
                .description("My Test Network Manager")
                .networkManagerName("TestNetworkManager")
                .networkManagerScopeAccesses("Connectivity")
                .networkManagerScopes(NetworkManagerPropertiesNetworkManagerScopesArgs.builder()
                    .managementGroups("/providers/Microsoft.Management/managementGroups/sampleMG")
                    .subscriptions("/subscriptions/00000000-0000-0000-0000-000000000000")
                    .build())
                .resourceGroupName("rg1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    network_manager = azure_native.network.NetworkManager("networkManager",
        description="My Test Network Manager",
        network_manager_name="TestNetworkManager",
        network_manager_scope_accesses=[azure_native.network.ConfigurationType.CONNECTIVITY],
        network_manager_scopes=azure_native.network.NetworkManagerPropertiesNetworkManagerScopesArgs(
            management_groups=["/providers/Microsoft.Management/managementGroups/sampleMG"],
            subscriptions=["/subscriptions/00000000-0000-0000-0000-000000000000"],
        ),
        resource_group_name="rg1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const networkManager = new azure_native.network.NetworkManager("networkManager", {
        description: "My Test Network Manager",
        networkManagerName: "TestNetworkManager",
        networkManagerScopeAccesses: [azure_native.network.ConfigurationType.Connectivity],
        networkManagerScopes: {
            managementGroups: ["/providers/Microsoft.Management/managementGroups/sampleMG"],
            subscriptions: ["/subscriptions/00000000-0000-0000-0000-000000000000"],
        },
        resourceGroupName: "rg1",
    });
    
    resources:
      networkManager:
        type: azure-native:network:NetworkManager
        properties:
          description: My Test Network Manager
          networkManagerName: TestNetworkManager
          networkManagerScopeAccesses:
            - Connectivity
          networkManagerScopes:
            managementGroups:
              - /providers/Microsoft.Management/managementGroups/sampleMG
            subscriptions:
              - /subscriptions/00000000-0000-0000-0000-000000000000
          resourceGroupName: rg1
    

    Create NetworkManager Resource

    new NetworkManager(name: string, args: NetworkManagerArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkManager(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       description: Optional[str] = None,
                       id: Optional[str] = None,
                       location: Optional[str] = None,
                       network_manager_name: Optional[str] = None,
                       network_manager_scope_accesses: Optional[Sequence[Union[str, ConfigurationType]]] = None,
                       network_manager_scopes: Optional[NetworkManagerPropertiesNetworkManagerScopesArgs] = None,
                       resource_group_name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
    @overload
    def NetworkManager(resource_name: str,
                       args: NetworkManagerArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewNetworkManager(ctx *Context, name string, args NetworkManagerArgs, opts ...ResourceOption) (*NetworkManager, error)
    public NetworkManager(string name, NetworkManagerArgs args, CustomResourceOptions? opts = null)
    public NetworkManager(String name, NetworkManagerArgs args)
    public NetworkManager(String name, NetworkManagerArgs args, CustomResourceOptions options)
    
    type: azure-native:network:NetworkManager
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args NetworkManagerArgs
    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 NetworkManagerArgs
    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 NetworkManagerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkManagerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkManagerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    NetworkManagerScopeAccesses List<Union<string, Pulumi.AzureNative.Network.ConfigurationType>>
    Scope Access.
    NetworkManagerScopes Pulumi.AzureNative.Network.Inputs.NetworkManagerPropertiesNetworkManagerScopes
    Scope of Network Manager.
    ResourceGroupName string
    The name of the resource group.
    Description string
    A description of the network manager.
    Id string
    Resource ID.
    Location string
    Resource location.
    NetworkManagerName string
    The name of the network manager.
    Tags Dictionary<string, string>
    Resource tags.
    NetworkManagerScopeAccesses []string
    Scope Access.
    NetworkManagerScopes NetworkManagerPropertiesNetworkManagerScopesArgs
    Scope of Network Manager.
    ResourceGroupName string
    The name of the resource group.
    Description string
    A description of the network manager.
    Id string
    Resource ID.
    Location string
    Resource location.
    NetworkManagerName string
    The name of the network manager.
    Tags map[string]string
    Resource tags.
    networkManagerScopeAccesses List<Either<String,ConfigurationType>>
    Scope Access.
    networkManagerScopes NetworkManagerPropertiesNetworkManagerScopes
    Scope of Network Manager.
    resourceGroupName String
    The name of the resource group.
    description String
    A description of the network manager.
    id String
    Resource ID.
    location String
    Resource location.
    networkManagerName String
    The name of the network manager.
    tags Map<String,String>
    Resource tags.
    networkManagerScopeAccesses (string | ConfigurationType)[]
    Scope Access.
    networkManagerScopes NetworkManagerPropertiesNetworkManagerScopes
    Scope of Network Manager.
    resourceGroupName string
    The name of the resource group.
    description string
    A description of the network manager.
    id string
    Resource ID.
    location string
    Resource location.
    networkManagerName string
    The name of the network manager.
    tags {[key: string]: string}
    Resource tags.
    network_manager_scope_accesses Sequence[Union[str, ConfigurationType]]
    Scope Access.
    network_manager_scopes NetworkManagerPropertiesNetworkManagerScopesArgs
    Scope of Network Manager.
    resource_group_name str
    The name of the resource group.
    description str
    A description of the network manager.
    id str
    Resource ID.
    location str
    Resource location.
    network_manager_name str
    The name of the network manager.
    tags Mapping[str, str]
    Resource tags.
    networkManagerScopeAccesses List<String | "SecurityAdmin" | "Connectivity">
    Scope Access.
    networkManagerScopes Property Map
    Scope of Network Manager.
    resourceGroupName String
    The name of the resource group.
    description String
    A description of the network manager.
    id String
    Resource ID.
    location String
    Resource location.
    networkManagerName String
    The name of the network manager.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkManager 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 manager resource.
    ResourceGuid string
    Unique identifier for this 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 network manager resource.
    ResourceGuid string
    Unique identifier for this 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 network manager resource.
    resourceGuid String
    Unique identifier for this 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 network manager resource.
    resourceGuid string
    Unique identifier for this 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 network manager resource.
    resource_guid str
    Unique identifier for this 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 network manager resource.
    resourceGuid String
    Unique identifier for this resource.
    systemData Property Map
    The system metadata related to this resource.
    type String
    Resource type.

    Supporting Types

    ConfigurationType, ConfigurationTypeArgs

    SecurityAdmin
    SecurityAdmin
    Connectivity
    Connectivity
    ConfigurationTypeSecurityAdmin
    SecurityAdmin
    ConfigurationTypeConnectivity
    Connectivity
    SecurityAdmin
    SecurityAdmin
    Connectivity
    Connectivity
    SecurityAdmin
    SecurityAdmin
    Connectivity
    Connectivity
    SECURITY_ADMIN
    SecurityAdmin
    CONNECTIVITY
    Connectivity
    "SecurityAdmin"
    SecurityAdmin
    "Connectivity"
    Connectivity

    CrossTenantScopesResponse, CrossTenantScopesResponseArgs

    ManagementGroups List<string>
    List of management groups.
    Subscriptions List<string>
    List of subscriptions.
    TenantId string
    Tenant ID.
    ManagementGroups []string
    List of management groups.
    Subscriptions []string
    List of subscriptions.
    TenantId string
    Tenant ID.
    managementGroups List<String>
    List of management groups.
    subscriptions List<String>
    List of subscriptions.
    tenantId String
    Tenant ID.
    managementGroups string[]
    List of management groups.
    subscriptions string[]
    List of subscriptions.
    tenantId string
    Tenant ID.
    management_groups Sequence[str]
    List of management groups.
    subscriptions Sequence[str]
    List of subscriptions.
    tenant_id str
    Tenant ID.
    managementGroups List<String>
    List of management groups.
    subscriptions List<String>
    List of subscriptions.
    tenantId String
    Tenant ID.

    NetworkManagerPropertiesNetworkManagerScopes, NetworkManagerPropertiesNetworkManagerScopesArgs

    ManagementGroups List<string>
    List of management groups.
    Subscriptions List<string>
    List of subscriptions.
    ManagementGroups []string
    List of management groups.
    Subscriptions []string
    List of subscriptions.
    managementGroups List<String>
    List of management groups.
    subscriptions List<String>
    List of subscriptions.
    managementGroups string[]
    List of management groups.
    subscriptions string[]
    List of subscriptions.
    management_groups Sequence[str]
    List of management groups.
    subscriptions Sequence[str]
    List of subscriptions.
    managementGroups List<String>
    List of management groups.
    subscriptions List<String>
    List of subscriptions.

    NetworkManagerPropertiesResponseNetworkManagerScopes, NetworkManagerPropertiesResponseNetworkManagerScopesArgs

    CrossTenantScopes List<Pulumi.AzureNative.Network.Inputs.CrossTenantScopesResponse>
    List of cross tenant scopes.
    ManagementGroups List<string>
    List of management groups.
    Subscriptions List<string>
    List of subscriptions.
    CrossTenantScopes []CrossTenantScopesResponse
    List of cross tenant scopes.
    ManagementGroups []string
    List of management groups.
    Subscriptions []string
    List of subscriptions.
    crossTenantScopes List<CrossTenantScopesResponse>
    List of cross tenant scopes.
    managementGroups List<String>
    List of management groups.
    subscriptions List<String>
    List of subscriptions.
    crossTenantScopes CrossTenantScopesResponse[]
    List of cross tenant scopes.
    managementGroups string[]
    List of management groups.
    subscriptions string[]
    List of subscriptions.
    cross_tenant_scopes Sequence[CrossTenantScopesResponse]
    List of cross tenant scopes.
    management_groups Sequence[str]
    List of management groups.
    subscriptions Sequence[str]
    List of subscriptions.
    crossTenantScopes List<Property Map>
    List of cross tenant scopes.
    managementGroups List<String>
    List of management groups.
    subscriptions List<String>
    List of subscriptions.

    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:NetworkManager TestNetworkManager /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi