NetworkManagerScopeConnectionArgs

data class NetworkManagerScopeConnectionArgs(val description: Output<String>? = null, val name: Output<String>? = null, val networkManagerId: Output<String>? = null, val targetScopeId: Output<String>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<NetworkManagerScopeConnectionArgs>

Manages a Network Manager Scope Connection which may cross tenants.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.inputs.GetSubscriptionArgs;
import com.pulumi.azure.network.NetworkManager;
import com.pulumi.azure.network.NetworkManagerArgs;
import com.pulumi.azure.network.inputs.NetworkManagerScopeArgs;
import com.pulumi.azure.network.NetworkManagerScopeConnection;
import com.pulumi.azure.network.NetworkManagerScopeConnectionArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
final var currentClientConfig = CoreFunctions.getClientConfig();
final var currentSubscription = CoreFunctions.getSubscription();
final var alt = CoreFunctions.getSubscription(GetSubscriptionArgs.builder()
.subscriptionId("00000000-0000-0000-0000-000000000000")
.build());
var exampleNetworkManager = new NetworkManager("exampleNetworkManager", NetworkManagerArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.scope(NetworkManagerScopeArgs.builder()
.subscriptionIds(currentSubscription.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
.build())
.scopeAccesses("SecurityAdmin")
.build());
var exampleNetworkManagerScopeConnection = new NetworkManagerScopeConnection("exampleNetworkManagerScopeConnection", NetworkManagerScopeConnectionArgs.builder()
.networkManagerId(exampleNetworkManager.id())
.tenantId(currentClientConfig.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.targetScopeId(alt.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
.description("example")
.build());
}
}

Import

Network Manager Scope Connection can be imported using the resource id, e.g.

$ pulumi import azure:network/networkManagerScopeConnection:NetworkManagerScopeConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/networkManagers/networkManager1/scopeConnections/scopeConnection1

Constructors

Link copied to clipboard
fun NetworkManagerScopeConnectionArgs(description: Output<String>? = null, name: Output<String>? = null, networkManagerId: Output<String>? = null, targetScopeId: Output<String>? = null, tenantId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): NetworkManagerScopeConnectionArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

A description of the Network Manager Scope Connection.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name which should be used for this Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created.

Link copied to clipboard
val networkManagerId: Output<String>? = null

Specifies the ID of the Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created.

Link copied to clipboard
val targetScopeId: Output<String>? = null

Specifies the Resource ID of the target scope which the Network Manager is connected to. It should be either Subscription ID or Management Group ID.

Link copied to clipboard
val tenantId: Output<String>? = null

Specifies the Tenant ID of the Resource which the Network Manager is connected to.