We recommend using Azure Native.
azure.network.NetworkManagerSecurityAdminConfiguration
Explore with Pulumi AI
Manages a Network Manager Security Admin Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const current = azure.core.getSubscription({});
const exampleNetworkManager = new azure.network.NetworkManager("example", {
name: "example-network-manager",
location: example.location,
resourceGroupName: example.name,
scope: {
subscriptionIds: [current.then(current => current.id)],
},
scopeAccesses: [
"Connectivity",
"SecurityAdmin",
],
description: "example network manager",
});
const exampleNetworkManagerNetworkGroup = new azure.network.NetworkManagerNetworkGroup("example", {
name: "example-network-group",
networkManagerId: exampleNetworkManager.id,
});
const exampleNetworkManagerSecurityAdminConfiguration = new azure.network.NetworkManagerSecurityAdminConfiguration("example", {
name: "example-admin-conf",
networkManagerId: exampleNetworkManager.id,
description: "example admin conf",
applyOnNetworkIntentPolicyBasedServices: "None",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
current = azure.core.get_subscription()
example_network_manager = azure.network.NetworkManager("example",
name="example-network-manager",
location=example.location,
resource_group_name=example.name,
scope={
"subscription_ids": [current.id],
},
scope_accesses=[
"Connectivity",
"SecurityAdmin",
],
description="example network manager")
example_network_manager_network_group = azure.network.NetworkManagerNetworkGroup("example",
name="example-network-group",
network_manager_id=example_network_manager.id)
example_network_manager_security_admin_configuration = azure.network.NetworkManagerSecurityAdminConfiguration("example",
name="example-admin-conf",
network_manager_id=example_network_manager.id,
description="example admin conf",
apply_on_network_intent_policy_based_services="None")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
current, err := core.LookupSubscription(ctx, &core.LookupSubscriptionArgs{}, nil)
if err != nil {
return err
}
exampleNetworkManager, err := network.NewNetworkManager(ctx, "example", &network.NetworkManagerArgs{
Name: pulumi.String("example-network-manager"),
Location: example.Location,
ResourceGroupName: example.Name,
Scope: &network.NetworkManagerScopeArgs{
SubscriptionIds: pulumi.StringArray{
pulumi.String(current.Id),
},
},
ScopeAccesses: pulumi.StringArray{
pulumi.String("Connectivity"),
pulumi.String("SecurityAdmin"),
},
Description: pulumi.String("example network manager"),
})
if err != nil {
return err
}
_, err = network.NewNetworkManagerNetworkGroup(ctx, "example", &network.NetworkManagerNetworkGroupArgs{
Name: pulumi.String("example-network-group"),
NetworkManagerId: exampleNetworkManager.ID(),
})
if err != nil {
return err
}
_, err = network.NewNetworkManagerSecurityAdminConfiguration(ctx, "example", &network.NetworkManagerSecurityAdminConfigurationArgs{
Name: pulumi.String("example-admin-conf"),
NetworkManagerId: exampleNetworkManager.ID(),
Description: pulumi.String("example admin conf"),
ApplyOnNetworkIntentPolicyBasedServices: pulumi.String("None"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var current = Azure.Core.GetSubscription.Invoke();
var exampleNetworkManager = new Azure.Network.NetworkManager("example", new()
{
Name = "example-network-manager",
Location = example.Location,
ResourceGroupName = example.Name,
Scope = new Azure.Network.Inputs.NetworkManagerScopeArgs
{
SubscriptionIds = new[]
{
current.Apply(getSubscriptionResult => getSubscriptionResult.Id),
},
},
ScopeAccesses = new[]
{
"Connectivity",
"SecurityAdmin",
},
Description = "example network manager",
});
var exampleNetworkManagerNetworkGroup = new Azure.Network.NetworkManagerNetworkGroup("example", new()
{
Name = "example-network-group",
NetworkManagerId = exampleNetworkManager.Id,
});
var exampleNetworkManagerSecurityAdminConfiguration = new Azure.Network.NetworkManagerSecurityAdminConfiguration("example", new()
{
Name = "example-admin-conf",
NetworkManagerId = exampleNetworkManager.Id,
Description = "example admin conf",
ApplyOnNetworkIntentPolicyBasedServices = "None",
});
});
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
final var current = CoreFunctions.getSubscription();
var exampleNetworkManager = new NetworkManager("exampleNetworkManager", NetworkManagerArgs.builder()
.name("example-network-manager")
.location(example.location())
.resourceGroupName(example.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()
.name("example-network-group")
.networkManagerId(exampleNetworkManager.id())
.build());
var exampleNetworkManagerSecurityAdminConfiguration = new NetworkManagerSecurityAdminConfiguration("exampleNetworkManagerSecurityAdminConfiguration", NetworkManagerSecurityAdminConfigurationArgs.builder()
.name("example-admin-conf")
.networkManagerId(exampleNetworkManager.id())
.description("example admin conf")
.applyOnNetworkIntentPolicyBasedServices("None")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleNetworkManager:
type: azure:network:NetworkManager
name: example
properties:
name: example-network-manager
location: ${example.location}
resourceGroupName: ${example.name}
scope:
subscriptionIds:
- ${current.id}
scopeAccesses:
- Connectivity
- SecurityAdmin
description: example network manager
exampleNetworkManagerNetworkGroup:
type: azure:network:NetworkManagerNetworkGroup
name: example
properties:
name: example-network-group
networkManagerId: ${exampleNetworkManager.id}
exampleNetworkManagerSecurityAdminConfiguration:
type: azure:network:NetworkManagerSecurityAdminConfiguration
name: example
properties:
name: example-admin-conf
networkManagerId: ${exampleNetworkManager.id}
description: example admin conf
applyOnNetworkIntentPolicyBasedServices: None
variables:
current:
fn::invoke:
Function: azure:core:getSubscription
Arguments: {}
Create NetworkManagerSecurityAdminConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkManagerSecurityAdminConfiguration(name: string, args: NetworkManagerSecurityAdminConfigurationArgs, opts?: CustomResourceOptions);
@overload
def NetworkManagerSecurityAdminConfiguration(resource_name: str,
args: NetworkManagerSecurityAdminConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkManagerSecurityAdminConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_manager_id: Optional[str] = None,
apply_on_network_intent_policy_based_services: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkManagerSecurityAdminConfigurationResource = new Azure.Network.NetworkManagerSecurityAdminConfiguration("networkManagerSecurityAdminConfigurationResource", new()
{
NetworkManagerId = "string",
ApplyOnNetworkIntentPolicyBasedServices = "string",
Description = "string",
Name = "string",
});
example, err := network.NewNetworkManagerSecurityAdminConfiguration(ctx, "networkManagerSecurityAdminConfigurationResource", &network.NetworkManagerSecurityAdminConfigurationArgs{
NetworkManagerId: pulumi.String("string"),
ApplyOnNetworkIntentPolicyBasedServices: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var networkManagerSecurityAdminConfigurationResource = new NetworkManagerSecurityAdminConfiguration("networkManagerSecurityAdminConfigurationResource", NetworkManagerSecurityAdminConfigurationArgs.builder()
.networkManagerId("string")
.applyOnNetworkIntentPolicyBasedServices("string")
.description("string")
.name("string")
.build());
network_manager_security_admin_configuration_resource = azure.network.NetworkManagerSecurityAdminConfiguration("networkManagerSecurityAdminConfigurationResource",
network_manager_id="string",
apply_on_network_intent_policy_based_services="string",
description="string",
name="string")
const networkManagerSecurityAdminConfigurationResource = new azure.network.NetworkManagerSecurityAdminConfiguration("networkManagerSecurityAdminConfigurationResource", {
networkManagerId: "string",
applyOnNetworkIntentPolicyBasedServices: "string",
description: "string",
name: "string",
});
type: azure:network:NetworkManagerSecurityAdminConfiguration
properties:
applyOnNetworkIntentPolicyBasedServices: string
description: string
name: string
networkManagerId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NetworkManagerSecurityAdminConfiguration resource accepts the following input properties:
- Network
Manager stringId - 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 stringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 stringId - 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 stringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 StringId - 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 StringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 stringId - 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 stringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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_ strid - 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_ strnetwork_ intent_ policy_ based_ services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 StringId - 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 StringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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.
- Apply
On stringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 stringId - 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 stringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 stringId - 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 StringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 StringId - 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 stringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 stringId - 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_ strnetwork_ intent_ policy_ based_ services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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_ strid - 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 StringNetwork Intent Policy Based Services - A list of network intent policy based services. Possible values are
All
,None
andAllowRulesOnly
. Exactly one value should be set. TheAll
option requiresMicrosoft.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 StringId - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.