1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. SubscriptionNetworkManagerConnection
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.network.SubscriptionNetworkManagerConnection

Explore with Pulumi AI

The Network Manager Connection resource

Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01.

Other available API versions: 2022-01-01, 2022-02-01-preview, 2022-04-01-preview, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the version guide for details.

Example Usage

Create or Update Subscription Network Manager Connection

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

return await Deployment.RunAsync(() => 
{
    var subscriptionNetworkManagerConnection = new AzureNative.Network.SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnection", new()
    {
        NetworkManagerConnectionName = "TestNMConnection",
        NetworkManagerId = "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewSubscriptionNetworkManagerConnection(ctx, "subscriptionNetworkManagerConnection", &network.SubscriptionNetworkManagerConnectionArgs{
			NetworkManagerConnectionName: pulumi.String("TestNMConnection"),
			NetworkManagerId:             pulumi.String("/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager"),
		})
		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.SubscriptionNetworkManagerConnection;
import com.pulumi.azurenative.network.SubscriptionNetworkManagerConnectionArgs;
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 subscriptionNetworkManagerConnection = new SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnection", SubscriptionNetworkManagerConnectionArgs.builder()
            .networkManagerConnectionName("TestNMConnection")
            .networkManagerId("/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager")
            .build());

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

const subscriptionNetworkManagerConnection = new azure_native.network.SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnection", {
    networkManagerConnectionName: "TestNMConnection",
    networkManagerId: "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

subscription_network_manager_connection = azure_native.network.SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnection",
    network_manager_connection_name="TestNMConnection",
    network_manager_id="/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager")
Copy
resources:
  subscriptionNetworkManagerConnection:
    type: azure-native:network:SubscriptionNetworkManagerConnection
    properties:
      networkManagerConnectionName: TestNMConnection
      networkManagerId: /subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager
Copy

Create SubscriptionNetworkManagerConnection Resource

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

Constructor syntax

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

@overload
def SubscriptionNetworkManagerConnection(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         description: Optional[str] = None,
                                         network_manager_connection_name: Optional[str] = None,
                                         network_manager_id: Optional[str] = None)
func NewSubscriptionNetworkManagerConnection(ctx *Context, name string, args *SubscriptionNetworkManagerConnectionArgs, opts ...ResourceOption) (*SubscriptionNetworkManagerConnection, error)
public SubscriptionNetworkManagerConnection(string name, SubscriptionNetworkManagerConnectionArgs? args = null, CustomResourceOptions? opts = null)
public SubscriptionNetworkManagerConnection(String name, SubscriptionNetworkManagerConnectionArgs args)
public SubscriptionNetworkManagerConnection(String name, SubscriptionNetworkManagerConnectionArgs args, CustomResourceOptions options)
type: azure-native:network:SubscriptionNetworkManagerConnection
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 SubscriptionNetworkManagerConnectionArgs
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 SubscriptionNetworkManagerConnectionArgs
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 SubscriptionNetworkManagerConnectionArgs
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 SubscriptionNetworkManagerConnectionArgs
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. SubscriptionNetworkManagerConnectionArgs
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 subscriptionNetworkManagerConnectionResource = new AzureNative.Network.SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnectionResource", new()
{
    Description = "string",
    NetworkManagerConnectionName = "string",
    NetworkManagerId = "string",
});
Copy
example, err := network.NewSubscriptionNetworkManagerConnection(ctx, "subscriptionNetworkManagerConnectionResource", &network.SubscriptionNetworkManagerConnectionArgs{
	Description:                  pulumi.String("string"),
	NetworkManagerConnectionName: pulumi.String("string"),
	NetworkManagerId:             pulumi.String("string"),
})
Copy
var subscriptionNetworkManagerConnectionResource = new SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnectionResource", SubscriptionNetworkManagerConnectionArgs.builder()
    .description("string")
    .networkManagerConnectionName("string")
    .networkManagerId("string")
    .build());
Copy
subscription_network_manager_connection_resource = azure_native.network.SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnectionResource",
    description="string",
    network_manager_connection_name="string",
    network_manager_id="string")
Copy
const subscriptionNetworkManagerConnectionResource = new azure_native.network.SubscriptionNetworkManagerConnection("subscriptionNetworkManagerConnectionResource", {
    description: "string",
    networkManagerConnectionName: "string",
    networkManagerId: "string",
});
Copy
type: azure-native:network:SubscriptionNetworkManagerConnection
properties:
    description: string
    networkManagerConnectionName: string
    networkManagerId: string
Copy

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

Description string
A description of the network manager connection.
NetworkManagerConnectionName Changes to this property will trigger replacement. string
Name for the network manager connection.
NetworkManagerId string
Network Manager Id.
Description string
A description of the network manager connection.
NetworkManagerConnectionName Changes to this property will trigger replacement. string
Name for the network manager connection.
NetworkManagerId string
Network Manager Id.
description String
A description of the network manager connection.
networkManagerConnectionName Changes to this property will trigger replacement. String
Name for the network manager connection.
networkManagerId String
Network Manager Id.
description string
A description of the network manager connection.
networkManagerConnectionName Changes to this property will trigger replacement. string
Name for the network manager connection.
networkManagerId string
Network Manager Id.
description str
A description of the network manager connection.
network_manager_connection_name Changes to this property will trigger replacement. str
Name for the network manager connection.
network_manager_id str
Network Manager Id.
description String
A description of the network manager connection.
networkManagerConnectionName Changes to this property will trigger replacement. String
Name for the network manager connection.
networkManagerId String
Network Manager Id.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
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.
SystemData Pulumi.AzureNative.Network.Outputs.SystemDataResponse
The system metadata related to this resource.
Type string
Resource type.
AzureApiVersion string
The Azure API version of the resource.
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.
SystemData SystemDataResponse
The system metadata related to this resource.
Type string
Resource type.
azureApiVersion String
The Azure API version of the resource.
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.
systemData SystemDataResponse
The system metadata related to this resource.
type String
Resource type.
azureApiVersion string
The Azure API version of the resource.
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.
systemData SystemDataResponse
The system metadata related to this resource.
type string
Resource type.
azure_api_version str
The Azure API version of the resource.
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.
system_data SystemDataResponse
The system metadata related to this resource.
type str
Resource type.
azureApiVersion String
The Azure API version of the resource.
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.
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:SubscriptionNetworkManagerConnection TestNMConnection /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName} 
Copy

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

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0