azure-native.network.NetworkManager
Explore with Pulumi AI
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, 2023-11-01, 2024-01-01, 2024-01-01-preview, 2024-03-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 (
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.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={
"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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkManager(name: string, args: NetworkManagerArgs, opts?: CustomResourceOptions);
@overload
def NetworkManager(resource_name: str,
args: NetworkManagerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkManager(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_manager_scope_accesses: Optional[Sequence[Union[str, ConfigurationType]]] = None,
network_manager_scopes: Optional[NetworkManagerPropertiesNetworkManagerScopesArgs] = None,
resource_group_name: Optional[str] = None,
description: Optional[str] = None,
id: Optional[str] = None,
location: Optional[str] = None,
network_manager_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkManagerResource = new AzureNative.Network.NetworkManager("networkManagerResource", new()
{
NetworkManagerScopeAccesses = new[]
{
"string",
},
NetworkManagerScopes = new AzureNative.Network.Inputs.NetworkManagerPropertiesNetworkManagerScopesArgs
{
ManagementGroups = new[]
{
"string",
},
Subscriptions = new[]
{
"string",
},
},
ResourceGroupName = "string",
Description = "string",
Id = "string",
Location = "string",
NetworkManagerName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := network.NewNetworkManager(ctx, "networkManagerResource", &network.NetworkManagerArgs{
NetworkManagerScopeAccesses: pulumi.StringArray{
pulumi.String("string"),
},
NetworkManagerScopes: &network.NetworkManagerPropertiesNetworkManagerScopesArgs{
ManagementGroups: pulumi.StringArray{
pulumi.String("string"),
},
Subscriptions: pulumi.StringArray{
pulumi.String("string"),
},
},
ResourceGroupName: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
Location: pulumi.String("string"),
NetworkManagerName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkManagerResource = new NetworkManager("networkManagerResource", NetworkManagerArgs.builder()
.networkManagerScopeAccesses("string")
.networkManagerScopes(NetworkManagerPropertiesNetworkManagerScopesArgs.builder()
.managementGroups("string")
.subscriptions("string")
.build())
.resourceGroupName("string")
.description("string")
.id("string")
.location("string")
.networkManagerName("string")
.tags(Map.of("string", "string"))
.build());
network_manager_resource = azure_native.network.NetworkManager("networkManagerResource",
network_manager_scope_accesses=["string"],
network_manager_scopes={
"managementGroups": ["string"],
"subscriptions": ["string"],
},
resource_group_name="string",
description="string",
id="string",
location="string",
network_manager_name="string",
tags={
"string": "string",
})
const networkManagerResource = new azure_native.network.NetworkManager("networkManagerResource", {
networkManagerScopeAccesses: ["string"],
networkManagerScopes: {
managementGroups: ["string"],
subscriptions: ["string"],
},
resourceGroupName: "string",
description: "string",
id: "string",
location: "string",
networkManagerName: "string",
tags: {
string: "string",
},
});
type: azure-native:network:NetworkManager
properties:
description: string
id: string
location: string
networkManagerName: string
networkManagerScopeAccesses:
- string
networkManagerScopes:
managementGroups:
- string
subscriptions:
- string
resourceGroupName: string
tags:
string: string
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:
- Network
Manager List<Union<string, Pulumi.Scope Accesses Azure Native. Network. Configuration Type>> - Scope Access.
- Network
Manager Pulumi.Scopes Azure Native. Network. Inputs. Network Manager Properties Network Manager Scopes - Scope of Network Manager.
- Resource
Group stringName - The name of the resource group.
- Description string
- A description of the network manager.
- Id string
- Resource ID.
- Location string
- Resource location.
- Network
Manager stringName - The name of the network manager.
- Dictionary<string, string>
- Resource tags.
- Network
Manager []stringScope Accesses - Scope Access.
- Network
Manager NetworkScopes Manager Properties Network Manager Scopes Args - Scope of Network Manager.
- Resource
Group stringName - The name of the resource group.
- Description string
- A description of the network manager.
- Id string
- Resource ID.
- Location string
- Resource location.
- Network
Manager stringName - The name of the network manager.
- map[string]string
- Resource tags.
- network
Manager List<Either<String,ConfigurationScope Accesses Type>> - Scope Access.
- network
Manager NetworkScopes Manager Properties Network Manager Scopes - Scope of Network Manager.
- resource
Group StringName - The name of the resource group.
- description String
- A description of the network manager.
- id String
- Resource ID.
- location String
- Resource location.
- network
Manager StringName - The name of the network manager.
- Map<String,String>
- Resource tags.
- network
Manager (string | ConfigurationScope Accesses Type)[] - Scope Access.
- network
Manager NetworkScopes Manager Properties Network Manager Scopes - Scope of Network Manager.
- resource
Group stringName - The name of the resource group.
- description string
- A description of the network manager.
- id string
- Resource ID.
- location string
- Resource location.
- network
Manager stringName - The name of the network manager.
- {[key: string]: string}
- Resource tags.
- network_
manager_ Sequence[Union[str, Configurationscope_ accesses Type]] - Scope Access.
- network_
manager_ Networkscopes Manager Properties Network Manager Scopes Args - Scope of Network Manager.
- resource_
group_ strname - The name of the resource group.
- description str
- A description of the network manager.
- id str
- Resource ID.
- location str
- Resource location.
- network_
manager_ strname - The name of the network manager.
- Mapping[str, str]
- Resource tags.
- network
Manager List<String | "SecurityScope Accesses Admin" | "Connectivity"> - Scope Access.
- network
Manager Property MapScopes - Scope of Network Manager.
- resource
Group StringName - The name of the resource group.
- description String
- A description of the network manager.
- id String
- Resource ID.
- location String
- Resource location.
- network
Manager StringName - The name of the network manager.
- 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.
- Provisioning
State string - The provisioning state of the network manager resource.
- Resource
Guid string - Unique identifier for this resource.
- 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.
- Provisioning
State string - The provisioning state of the network manager resource.
- Resource
Guid string - Unique identifier for this resource.
- 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.
- provisioning
State String - The provisioning state of the network manager resource.
- resource
Guid String - Unique identifier for this resource.
- 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.
- provisioning
State string - The provisioning state of the network manager resource.
- resource
Guid string - Unique identifier for this resource.
- 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.
- provisioning_
state str - The provisioning state of the network manager resource.
- resource_
guid str - Unique identifier for this resource.
- 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.
- provisioning
State String - The provisioning state of the network manager resource.
- resource
Guid String - Unique identifier for this resource.
- system
Data Property Map - The system metadata related to this resource.
- type String
- Resource type.
Supporting Types
ConfigurationType, ConfigurationTypeArgs
- Security
Admin - SecurityAdmin
- Connectivity
- Connectivity
- Configuration
Type Security Admin - SecurityAdmin
- Configuration
Type Connectivity - Connectivity
- Security
Admin - SecurityAdmin
- Connectivity
- Connectivity
- Security
Admin - SecurityAdmin
- Connectivity
- Connectivity
- SECURITY_ADMIN
- SecurityAdmin
- CONNECTIVITY
- Connectivity
- "Security
Admin" - SecurityAdmin
- "Connectivity"
- Connectivity
CrossTenantScopesResponse, CrossTenantScopesResponseArgs
- Management
Groups List<string> - List of management groups.
- Subscriptions List<string>
- List of subscriptions.
- Tenant
Id string - Tenant ID.
- Management
Groups []string - List of management groups.
- Subscriptions []string
- List of subscriptions.
- Tenant
Id string - Tenant ID.
- management
Groups List<String> - List of management groups.
- subscriptions List<String>
- List of subscriptions.
- tenant
Id String - Tenant ID.
- management
Groups string[] - List of management groups.
- subscriptions string[]
- List of subscriptions.
- tenant
Id string - Tenant ID.
- management_
groups Sequence[str] - List of management groups.
- subscriptions Sequence[str]
- List of subscriptions.
- tenant_
id str - Tenant ID.
- management
Groups List<String> - List of management groups.
- subscriptions List<String>
- List of subscriptions.
- tenant
Id String - Tenant ID.
NetworkManagerPropertiesNetworkManagerScopes, NetworkManagerPropertiesNetworkManagerScopesArgs
- Management
Groups List<string> - List of management groups.
- Subscriptions List<string>
- List of subscriptions.
- Management
Groups []string - List of management groups.
- Subscriptions []string
- List of subscriptions.
- management
Groups List<String> - List of management groups.
- subscriptions List<String>
- List of subscriptions.
- management
Groups string[] - List of management groups.
- subscriptions string[]
- List of subscriptions.
- management_
groups Sequence[str] - List of management groups.
- subscriptions Sequence[str]
- List of subscriptions.
- management
Groups List<String> - List of management groups.
- subscriptions List<String>
- List of subscriptions.
NetworkManagerPropertiesResponseNetworkManagerScopes, NetworkManagerPropertiesResponseNetworkManagerScopesArgs
- Cross
Tenant List<Pulumi.Scopes Azure Native. Network. Inputs. Cross Tenant Scopes Response> - List of cross tenant scopes.
- Management
Groups List<string> - List of management groups.
- Subscriptions List<string>
- List of subscriptions.
- Cross
Tenant []CrossScopes Tenant Scopes Response - List of cross tenant scopes.
- Management
Groups []string - List of management groups.
- Subscriptions []string
- List of subscriptions.
- cross
Tenant List<CrossScopes Tenant Scopes Response> - List of cross tenant scopes.
- management
Groups List<String> - List of management groups.
- subscriptions List<String>
- List of subscriptions.
- cross
Tenant CrossScopes Tenant Scopes Response[] - List of cross tenant scopes.
- management
Groups string[] - List of management groups.
- subscriptions string[]
- List of subscriptions.
- cross_
tenant_ Sequence[Crossscopes Tenant Scopes Response] - List of cross tenant scopes.
- management_
groups Sequence[str] - List of management groups.
- subscriptions Sequence[str]
- List of subscriptions.
- cross
Tenant List<Property Map>Scopes - List of cross tenant scopes.
- management
Groups List<String> - List of management groups.
- subscriptions List<String>
- List of subscriptions.
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:NetworkManager TestNetworkManager /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0