azure.network.NetworkManagerSecurityAdminConfiguration

Explore with Pulumi AI

Manages a Network Manager Security Admin Configuration.

Example Usage

Coming soon!

Coming soon!

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.NetworkManagerNetworkGroup;
import com.pulumi.azure.network.NetworkManagerNetworkGroupArgs;
import com.pulumi.azure.network.NetworkManagerSecurityAdminConfiguration;
import com.pulumi.azure.network.NetworkManagerSecurityAdminConfigurationArgs;
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 current = CoreFunctions.getSubscription();

        var exampleNetworkManager = new NetworkManager("exampleNetworkManager", NetworkManagerArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .scope(NetworkManagerScopeArgs.builder()
                .subscriptionIds(current.applyValue(getSubscriptionResult -> getSubscriptionResult.id()))
                .build())
            .scopeAccesses(            
                "Connectivity",
                "SecurityAdmin")
            .description("example network manager")
            .build());

        var exampleNetworkManagerNetworkGroup = new NetworkManagerNetworkGroup("exampleNetworkManagerNetworkGroup", NetworkManagerNetworkGroupArgs.builder()        
            .networkManagerId(exampleNetworkManager.id())
            .build());

        var exampleNetworkManagerSecurityAdminConfiguration = new NetworkManagerSecurityAdminConfiguration("exampleNetworkManagerSecurityAdminConfiguration", NetworkManagerSecurityAdminConfigurationArgs.builder()        
            .networkManagerId(exampleNetworkManager.id())
            .description("example admin conf")
            .applyOnNetworkIntentPolicyBasedServices("None")
            .build());

    }
}

Coming soon!

Coming soon!

resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleNetworkManager:
    type: azure:network:NetworkManager
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      scope:
        subscriptionIds:
          - ${current.id}
      scopeAccesses:
        - Connectivity
        - SecurityAdmin
      description: example network manager
  exampleNetworkManagerNetworkGroup:
    type: azure:network:NetworkManagerNetworkGroup
    properties:
      networkManagerId: ${exampleNetworkManager.id}
  exampleNetworkManagerSecurityAdminConfiguration:
    type: azure:network:NetworkManagerSecurityAdminConfiguration
    properties:
      networkManagerId: ${exampleNetworkManager.id}
      description: example admin conf
      applyOnNetworkIntentPolicyBasedServices:
        - None
variables:
  current:
    fn::invoke:
      Function: azure:core:getSubscription
      Arguments: {}

Create NetworkManagerSecurityAdminConfiguration Resource

new NetworkManagerSecurityAdminConfiguration(name: string, args: NetworkManagerSecurityAdminConfigurationArgs, opts?: CustomResourceOptions);
@overload
def NetworkManagerSecurityAdminConfiguration(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             apply_on_network_intent_policy_based_services: Optional[str] = None,
                                             description: Optional[str] = None,
                                             name: Optional[str] = None,
                                             network_manager_id: Optional[str] = None)
@overload
def NetworkManagerSecurityAdminConfiguration(resource_name: str,
                                             args: NetworkManagerSecurityAdminConfigurationArgs,
                                             opts: Optional[ResourceOptions] = None)
func NewNetworkManagerSecurityAdminConfiguration(ctx *Context, name string, args NetworkManagerSecurityAdminConfigurationArgs, opts ...ResourceOption) (*NetworkManagerSecurityAdminConfiguration, error)
public NetworkManagerSecurityAdminConfiguration(string name, NetworkManagerSecurityAdminConfigurationArgs args, CustomResourceOptions? opts = null)
public NetworkManagerSecurityAdminConfiguration(String name, NetworkManagerSecurityAdminConfigurationArgs args)
public NetworkManagerSecurityAdminConfiguration(String name, NetworkManagerSecurityAdminConfigurationArgs args, CustomResourceOptions options)
type: azure:network:NetworkManagerSecurityAdminConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NetworkManagerSecurityAdminConfigurationArgs
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 NetworkManagerSecurityAdminConfigurationArgs
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 NetworkManagerSecurityAdminConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NetworkManagerSecurityAdminConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NetworkManagerSecurityAdminConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

NetworkManagerId string

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

ApplyOnNetworkIntentPolicyBasedServices string

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

Description string

A description of the Security Admin Configuration.

Name string

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

NetworkManagerId string

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

ApplyOnNetworkIntentPolicyBasedServices string

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

Description string

A description of the Security Admin Configuration.

Name string

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

networkManagerId String

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

applyOnNetworkIntentPolicyBasedServices String

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description String

A description of the Security Admin Configuration.

name String

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

networkManagerId string

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

applyOnNetworkIntentPolicyBasedServices string

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description string

A description of the Security Admin Configuration.

name string

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

network_manager_id str

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

apply_on_network_intent_policy_based_services str

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description str

A description of the Security Admin Configuration.

name str

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

networkManagerId String

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

applyOnNetworkIntentPolicyBasedServices String

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description String

A description of the Security Admin Configuration.

name String

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing NetworkManagerSecurityAdminConfiguration Resource

Get an existing NetworkManagerSecurityAdminConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NetworkManagerSecurityAdminConfigurationState, opts?: CustomResourceOptions): NetworkManagerSecurityAdminConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        apply_on_network_intent_policy_based_services: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        network_manager_id: Optional[str] = None) -> NetworkManagerSecurityAdminConfiguration
func GetNetworkManagerSecurityAdminConfiguration(ctx *Context, name string, id IDInput, state *NetworkManagerSecurityAdminConfigurationState, opts ...ResourceOption) (*NetworkManagerSecurityAdminConfiguration, error)
public static NetworkManagerSecurityAdminConfiguration Get(string name, Input<string> id, NetworkManagerSecurityAdminConfigurationState? state, CustomResourceOptions? opts = null)
public static NetworkManagerSecurityAdminConfiguration get(String name, Output<String> id, NetworkManagerSecurityAdminConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApplyOnNetworkIntentPolicyBasedServices string

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

Description string

A description of the Security Admin Configuration.

Name string

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

NetworkManagerId string

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

ApplyOnNetworkIntentPolicyBasedServices string

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

Description string

A description of the Security Admin Configuration.

Name string

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

NetworkManagerId string

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

applyOnNetworkIntentPolicyBasedServices String

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description String

A description of the Security Admin Configuration.

name String

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

networkManagerId String

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

applyOnNetworkIntentPolicyBasedServices string

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description string

A description of the Security Admin Configuration.

name string

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

networkManagerId string

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

apply_on_network_intent_policy_based_services str

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description str

A description of the Security Admin Configuration.

name str

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

network_manager_id str

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

applyOnNetworkIntentPolicyBasedServices String

A list of network intent policy based services. Possible values are All, None and AllowRulesOnly. Exactly one value should be set. The All option requires Microsoft.Network/AllowAdminRulesOnNipBasedServices feature registration to Subscription. Please see this document for more information.

description String

A description of the Security Admin Configuration.

name String

Specifies the name which should be used for this Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

networkManagerId String

Specifies the ID of the Network Manager Security Admin Configuration. Changing this forces a new Network Manager Security Admin Configuration to be created.

Import

Network Manager Security Admin Configuration can be imported using the resource id, e.g.

 $ pulumi import azure:network/networkManagerSecurityAdminConfiguration:NetworkManagerSecurityAdminConfiguration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/networkManagers/networkManager1/securityAdminConfigurations/configuration1

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.