Network Manager
The Managed Network resource API Version: 2021-02-01-preview.
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",
DisplayName = "TestNetworkManager",
NetworkManagerName = "TestNetworkManager",
NetworkManagerScopeAccesses = new[]
{
"Connectivity",
},
NetworkManagerScopes = new AzureNative.Network.Inputs.NetworkManagerPropertiesNetworkManagerScopesArgs
{
ManagementGroups = new[]
{
"/Microsoft.Management/testmg",
},
Subscriptions = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000",
},
},
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network"
"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"),
DisplayName: pulumi.String("TestNetworkManager"),
NetworkManagerName: pulumi.String("TestNetworkManager"),
NetworkManagerScopeAccesses: pulumi.StringArray{
pulumi.String("Connectivity"),
},
NetworkManagerScopes: &network.NetworkManagerPropertiesNetworkManagerScopesArgs{
ManagementGroups: pulumi.StringArray{
pulumi.String("/Microsoft.Management/testmg"),
},
Subscriptions: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000"),
},
},
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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")
.displayName("TestNetworkManager")
.networkManagerName("TestNetworkManager")
.networkManagerScopeAccesses("Connectivity")
.networkManagerScopes(Map.ofEntries(
Map.entry("managementGroups", "/Microsoft.Management/testmg"),
Map.entry("subscriptions", "/subscriptions/00000000-0000-0000-0000-000000000000")
))
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:NetworkManager TestNetworkManager /subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager
Content copied to clipboard
Properties
Link copied to clipboard
A description of the network manager.
Link copied to clipboard
A friendly name for the network manager.
Link copied to clipboard
Scope Access.
Link copied to clipboard
Scope of Network Manager.
Link copied to clipboard
The provisioning state of the scope assignment resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The system metadata related to this resource.