azure-native.network.ManagementGroupNetworkManagerConnection
Explore with Pulumi AI
The Network Manager Connection resource Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2021-05-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.
Example Usage
Create or Update Management Group Network Manager Connection
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementGroupNetworkManagerConnection = new AzureNative.Network.ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnection", new()
{
ManagementGroupId = "managementGroupA",
NetworkManagerConnectionName = "TestNMConnection",
NetworkManagerId = "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager",
});
});
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.NewManagementGroupNetworkManagerConnection(ctx, "managementGroupNetworkManagerConnection", &network.ManagementGroupNetworkManagerConnectionArgs{
ManagementGroupId: pulumi.String("managementGroupA"),
NetworkManagerConnectionName: pulumi.String("TestNMConnection"),
NetworkManagerId: pulumi.String("/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager"),
})
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.ManagementGroupNetworkManagerConnection;
import com.pulumi.azurenative.network.ManagementGroupNetworkManagerConnectionArgs;
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 managementGroupNetworkManagerConnection = new ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnection", ManagementGroupNetworkManagerConnectionArgs.builder()
.managementGroupId("managementGroupA")
.networkManagerConnectionName("TestNMConnection")
.networkManagerId("/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
management_group_network_manager_connection = azure_native.network.ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnection",
management_group_id="managementGroupA",
network_manager_connection_name="TestNMConnection",
network_manager_id="/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementGroupNetworkManagerConnection = new azure_native.network.ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnection", {
managementGroupId: "managementGroupA",
networkManagerConnectionName: "TestNMConnection",
networkManagerId: "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager",
});
resources:
managementGroupNetworkManagerConnection:
type: azure-native:network:ManagementGroupNetworkManagerConnection
properties:
managementGroupId: managementGroupA
networkManagerConnectionName: TestNMConnection
networkManagerId: /subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager
Create ManagementGroupNetworkManagerConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementGroupNetworkManagerConnection(name: string, args: ManagementGroupNetworkManagerConnectionArgs, opts?: CustomResourceOptions);
@overload
def ManagementGroupNetworkManagerConnection(resource_name: str,
args: ManagementGroupNetworkManagerConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementGroupNetworkManagerConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
management_group_id: Optional[str] = None,
description: Optional[str] = None,
network_manager_connection_name: Optional[str] = None,
network_manager_id: Optional[str] = None)
func NewManagementGroupNetworkManagerConnection(ctx *Context, name string, args ManagementGroupNetworkManagerConnectionArgs, opts ...ResourceOption) (*ManagementGroupNetworkManagerConnection, error)
public ManagementGroupNetworkManagerConnection(string name, ManagementGroupNetworkManagerConnectionArgs args, CustomResourceOptions? opts = null)
public ManagementGroupNetworkManagerConnection(String name, ManagementGroupNetworkManagerConnectionArgs args)
public ManagementGroupNetworkManagerConnection(String name, ManagementGroupNetworkManagerConnectionArgs args, CustomResourceOptions options)
type: azure-native:network:ManagementGroupNetworkManagerConnection
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 ManagementGroupNetworkManagerConnectionArgs
- 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 ManagementGroupNetworkManagerConnectionArgs
- 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 ManagementGroupNetworkManagerConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementGroupNetworkManagerConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementGroupNetworkManagerConnectionArgs
- 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 managementGroupNetworkManagerConnectionResource = new AzureNative.Network.ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnectionResource", new()
{
ManagementGroupId = "string",
Description = "string",
NetworkManagerConnectionName = "string",
NetworkManagerId = "string",
});
example, err := network.NewManagementGroupNetworkManagerConnection(ctx, "managementGroupNetworkManagerConnectionResource", &network.ManagementGroupNetworkManagerConnectionArgs{
ManagementGroupId: pulumi.String("string"),
Description: pulumi.String("string"),
NetworkManagerConnectionName: pulumi.String("string"),
NetworkManagerId: pulumi.String("string"),
})
var managementGroupNetworkManagerConnectionResource = new ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnectionResource", ManagementGroupNetworkManagerConnectionArgs.builder()
.managementGroupId("string")
.description("string")
.networkManagerConnectionName("string")
.networkManagerId("string")
.build());
management_group_network_manager_connection_resource = azure_native.network.ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnectionResource",
management_group_id="string",
description="string",
network_manager_connection_name="string",
network_manager_id="string")
const managementGroupNetworkManagerConnectionResource = new azure_native.network.ManagementGroupNetworkManagerConnection("managementGroupNetworkManagerConnectionResource", {
managementGroupId: "string",
description: "string",
networkManagerConnectionName: "string",
networkManagerId: "string",
});
type: azure-native:network:ManagementGroupNetworkManagerConnection
properties:
description: string
managementGroupId: string
networkManagerConnectionName: string
networkManagerId: string
ManagementGroupNetworkManagerConnection 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 ManagementGroupNetworkManagerConnection resource accepts the following input properties:
- Management
Group stringId - The management group Id which uniquely identify the Microsoft Azure management group.
- Description string
- A description of the network manager connection.
- Network
Manager stringConnection Name - Name for the network manager connection.
- Network
Manager stringId - Network Manager Id.
- Management
Group stringId - The management group Id which uniquely identify the Microsoft Azure management group.
- Description string
- A description of the network manager connection.
- Network
Manager stringConnection Name - Name for the network manager connection.
- Network
Manager stringId - Network Manager Id.
- management
Group StringId - The management group Id which uniquely identify the Microsoft Azure management group.
- description String
- A description of the network manager connection.
- network
Manager StringConnection Name - Name for the network manager connection.
- network
Manager StringId - Network Manager Id.
- management
Group stringId - The management group Id which uniquely identify the Microsoft Azure management group.
- description string
- A description of the network manager connection.
- network
Manager stringConnection Name - Name for the network manager connection.
- network
Manager stringId - Network Manager Id.
- management_
group_ strid - The management group Id which uniquely identify the Microsoft Azure management group.
- description str
- A description of the network manager connection.
- network_
manager_ strconnection_ name - Name for the network manager connection.
- network_
manager_ strid - Network Manager Id.
- management
Group StringId - The management group Id which uniquely identify the Microsoft Azure management group.
- description String
- A description of the network manager connection.
- network
Manager StringConnection Name - Name for the network manager connection.
- network
Manager StringId - Network Manager Id.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementGroupNetworkManagerConnection 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.
- System
Data Pulumi.Azure Native. Network. Outputs. System Data Response - 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.
- System
Data SystemData Response - 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.
- system
Data SystemData Response - 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.
- system
Data SystemData Response - 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.
- system_
data SystemData Response - 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.
- system
Data Property Map - The system metadata related to this resource.
- type String
- Resource type.
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:ManagementGroupNetworkManagerConnection TestNMConnection /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0