azure-native.network.SecurityAdminConfiguration
Explore with Pulumi AI
Defines the security admin configuration
Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01.
Other available API versions: 2021-02-01-preview, 2022-01-01, 2022-02-01-preview, 2022-04-01-preview, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 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. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]
. See the version guide for details.
Example Usage
Create manual-mode security admin configuration
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var securityAdminConfiguration = new AzureNative.Network.SecurityAdminConfiguration("securityAdminConfiguration", new()
{
ConfigurationName = "myTestSecurityConfig",
Description = "A configuration which will update any network groups ip addresses at commit times.",
NetworkGroupAddressSpaceAggregationOption = AzureNative.Network.AddressSpaceAggregationOption.Manual,
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewSecurityAdminConfiguration(ctx, "securityAdminConfiguration", &network.SecurityAdminConfigurationArgs{
ConfigurationName: pulumi.String("myTestSecurityConfig"),
Description: pulumi.String("A configuration which will update any network groups ip addresses at commit times."),
NetworkGroupAddressSpaceAggregationOption: pulumi.String(network.AddressSpaceAggregationOptionManual),
NetworkManagerName: pulumi.String("testNetworkManager"),
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.SecurityAdminConfiguration;
import com.pulumi.azurenative.network.SecurityAdminConfigurationArgs;
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 securityAdminConfiguration = new SecurityAdminConfiguration("securityAdminConfiguration", SecurityAdminConfigurationArgs.builder()
.configurationName("myTestSecurityConfig")
.description("A configuration which will update any network groups ip addresses at commit times.")
.networkGroupAddressSpaceAggregationOption("Manual")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const securityAdminConfiguration = new azure_native.network.SecurityAdminConfiguration("securityAdminConfiguration", {
configurationName: "myTestSecurityConfig",
description: "A configuration which will update any network groups ip addresses at commit times.",
networkGroupAddressSpaceAggregationOption: azure_native.network.AddressSpaceAggregationOption.Manual,
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
});
import pulumi
import pulumi_azure_native as azure_native
security_admin_configuration = azure_native.network.SecurityAdminConfiguration("securityAdminConfiguration",
configuration_name="myTestSecurityConfig",
description="A configuration which will update any network groups ip addresses at commit times.",
network_group_address_space_aggregation_option=azure_native.network.AddressSpaceAggregationOption.MANUAL,
network_manager_name="testNetworkManager",
resource_group_name="rg1")
resources:
securityAdminConfiguration:
type: azure-native:network:SecurityAdminConfiguration
properties:
configurationName: myTestSecurityConfig
description: A configuration which will update any network groups ip addresses at commit times.
networkGroupAddressSpaceAggregationOption: Manual
networkManagerName: testNetworkManager
resourceGroupName: rg1
Create network manager security admin configuration
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var securityAdminConfiguration = new AzureNative.Network.SecurityAdminConfiguration("securityAdminConfiguration", new()
{
ApplyOnNetworkIntentPolicyBasedServices = new[]
{
AzureNative.Network.NetworkIntentPolicyBasedService.None,
},
ConfigurationName = "myTestSecurityConfig",
Description = "A sample policy",
NetworkManagerName = "testNetworkManager",
ResourceGroupName = "rg1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewSecurityAdminConfiguration(ctx, "securityAdminConfiguration", &network.SecurityAdminConfigurationArgs{
ApplyOnNetworkIntentPolicyBasedServices: pulumi.StringArray{
pulumi.String(network.NetworkIntentPolicyBasedServiceNone),
},
ConfigurationName: pulumi.String("myTestSecurityConfig"),
Description: pulumi.String("A sample policy"),
NetworkManagerName: pulumi.String("testNetworkManager"),
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.SecurityAdminConfiguration;
import com.pulumi.azurenative.network.SecurityAdminConfigurationArgs;
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 securityAdminConfiguration = new SecurityAdminConfiguration("securityAdminConfiguration", SecurityAdminConfigurationArgs.builder()
.applyOnNetworkIntentPolicyBasedServices("None")
.configurationName("myTestSecurityConfig")
.description("A sample policy")
.networkManagerName("testNetworkManager")
.resourceGroupName("rg1")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const securityAdminConfiguration = new azure_native.network.SecurityAdminConfiguration("securityAdminConfiguration", {
applyOnNetworkIntentPolicyBasedServices: [azure_native.network.NetworkIntentPolicyBasedService.None],
configurationName: "myTestSecurityConfig",
description: "A sample policy",
networkManagerName: "testNetworkManager",
resourceGroupName: "rg1",
});
import pulumi
import pulumi_azure_native as azure_native
security_admin_configuration = azure_native.network.SecurityAdminConfiguration("securityAdminConfiguration",
apply_on_network_intent_policy_based_services=[azure_native.network.NetworkIntentPolicyBasedService.NONE],
configuration_name="myTestSecurityConfig",
description="A sample policy",
network_manager_name="testNetworkManager",
resource_group_name="rg1")
resources:
securityAdminConfiguration:
type: azure-native:network:SecurityAdminConfiguration
properties:
applyOnNetworkIntentPolicyBasedServices:
- None
configurationName: myTestSecurityConfig
description: A sample policy
networkManagerName: testNetworkManager
resourceGroupName: rg1
Create SecurityAdminConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityAdminConfiguration(name: string, args: SecurityAdminConfigurationArgs, opts?: CustomResourceOptions);
@overload
def SecurityAdminConfiguration(resource_name: str,
args: SecurityAdminConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityAdminConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_manager_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
apply_on_network_intent_policy_based_services: Optional[Sequence[Union[str, NetworkIntentPolicyBasedService]]] = None,
configuration_name: Optional[str] = None,
description: Optional[str] = None,
network_group_address_space_aggregation_option: Optional[Union[str, AddressSpaceAggregationOption]] = None)
func NewSecurityAdminConfiguration(ctx *Context, name string, args SecurityAdminConfigurationArgs, opts ...ResourceOption) (*SecurityAdminConfiguration, error)
public SecurityAdminConfiguration(string name, SecurityAdminConfigurationArgs args, CustomResourceOptions? opts = null)
public SecurityAdminConfiguration(String name, SecurityAdminConfigurationArgs args)
public SecurityAdminConfiguration(String name, SecurityAdminConfigurationArgs args, CustomResourceOptions options)
type: azure-native:network:SecurityAdminConfiguration
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 SecurityAdminConfigurationArgs
- 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 SecurityAdminConfigurationArgs
- 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 SecurityAdminConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityAdminConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityAdminConfigurationArgs
- 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 securityAdminConfigurationResource = new AzureNative.Network.SecurityAdminConfiguration("securityAdminConfigurationResource", new()
{
NetworkManagerName = "string",
ResourceGroupName = "string",
ApplyOnNetworkIntentPolicyBasedServices = new[]
{
"string",
},
ConfigurationName = "string",
Description = "string",
NetworkGroupAddressSpaceAggregationOption = "string",
});
example, err := network.NewSecurityAdminConfiguration(ctx, "securityAdminConfigurationResource", &network.SecurityAdminConfigurationArgs{
NetworkManagerName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ApplyOnNetworkIntentPolicyBasedServices: pulumi.StringArray{
pulumi.String("string"),
},
ConfigurationName: pulumi.String("string"),
Description: pulumi.String("string"),
NetworkGroupAddressSpaceAggregationOption: pulumi.String("string"),
})
var securityAdminConfigurationResource = new SecurityAdminConfiguration("securityAdminConfigurationResource", SecurityAdminConfigurationArgs.builder()
.networkManagerName("string")
.resourceGroupName("string")
.applyOnNetworkIntentPolicyBasedServices("string")
.configurationName("string")
.description("string")
.networkGroupAddressSpaceAggregationOption("string")
.build());
security_admin_configuration_resource = azure_native.network.SecurityAdminConfiguration("securityAdminConfigurationResource",
network_manager_name="string",
resource_group_name="string",
apply_on_network_intent_policy_based_services=["string"],
configuration_name="string",
description="string",
network_group_address_space_aggregation_option="string")
const securityAdminConfigurationResource = new azure_native.network.SecurityAdminConfiguration("securityAdminConfigurationResource", {
networkManagerName: "string",
resourceGroupName: "string",
applyOnNetworkIntentPolicyBasedServices: ["string"],
configurationName: "string",
description: "string",
networkGroupAddressSpaceAggregationOption: "string",
});
type: azure-native:network:SecurityAdminConfiguration
properties:
applyOnNetworkIntentPolicyBasedServices:
- string
configurationName: string
description: string
networkGroupAddressSpaceAggregationOption: string
networkManagerName: string
resourceGroupName: string
SecurityAdminConfiguration 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 SecurityAdminConfiguration resource accepts the following input properties:
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group.
- Apply
On List<Union<string, Pulumi.Network Intent Policy Based Services Azure Native. Network. Network Intent Policy Based Service>> - Enum list of network intent policy based services.
- Configuration
Name string - The name of the network manager Security Configuration.
- Description string
- A description of the security configuration.
- Network
Group string | Pulumi.Address Space Aggregation Option Azure Native. Network. Address Space Aggregation Option - Determine update behavior for changes to network groups referenced within the rules in this configuration.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group.
- Apply
On []stringNetwork Intent Policy Based Services - Enum list of network intent policy based services.
- Configuration
Name string - The name of the network manager Security Configuration.
- Description string
- A description of the security configuration.
- Network
Group string | AddressAddress Space Aggregation Option Space Aggregation Option - Determine update behavior for changes to network groups referenced within the rules in this configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group.
- apply
On List<Either<String,NetworkNetwork Intent Policy Based Services Intent Policy Based Service>> - Enum list of network intent policy based services.
- configuration
Name String - The name of the network manager Security Configuration.
- description String
- A description of the security configuration.
- network
Group String | AddressAddress Space Aggregation Option Space Aggregation Option - Determine update behavior for changes to network groups referenced within the rules in this configuration.
- network
Manager stringName - The name of the network manager.
- resource
Group stringName - The name of the resource group.
- apply
On (string | NetworkNetwork Intent Policy Based Services Intent Policy Based Service)[] - Enum list of network intent policy based services.
- configuration
Name string - The name of the network manager Security Configuration.
- description string
- A description of the security configuration.
- network
Group string | AddressAddress Space Aggregation Option Space Aggregation Option - Determine update behavior for changes to network groups referenced within the rules in this configuration.
- network_
manager_ strname - The name of the network manager.
- resource_
group_ strname - The name of the resource group.
- apply_
on_ Sequence[Union[str, Networknetwork_ intent_ policy_ based_ services Intent Policy Based Service]] - Enum list of network intent policy based services.
- configuration_
name str - The name of the network manager Security Configuration.
- description str
- A description of the security configuration.
- network_
group_ str | Addressaddress_ space_ aggregation_ option Space Aggregation Option - Determine update behavior for changes to network groups referenced within the rules in this configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group.
- apply
On List<String | "None" | "All" | "AllowNetwork Intent Policy Based Services Rules Only"> - Enum list of network intent policy based services.
- configuration
Name String - The name of the network manager Security Configuration.
- description String
- A description of the security configuration.
- network
Group String | "None" | "Manual"Address Space Aggregation Option - Determine update behavior for changes to network groups referenced within the rules in this configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityAdminConfiguration resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- 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 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.
- Azure
Api stringVersion - The Azure API version of the resource.
- 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 resource.
- Resource
Guid string - Unique identifier for this resource.
- System
Data SystemData Response - The system metadata related to this resource.
- Type string
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- 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 resource.
- resource
Guid String - Unique identifier for this resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type String
- Resource type.
- azure
Api stringVersion - The Azure API version of the resource.
- 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 resource.
- resource
Guid string - Unique identifier for this resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type string
- Resource type.
- azure_
api_ strversion - The Azure API version of the resource.
- 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 resource.
- resource_
guid str - Unique identifier for this resource.
- system_
data SystemData Response - The system metadata related to this resource.
- type str
- Resource type.
- azure
Api StringVersion - The Azure API version of the resource.
- 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 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
AddressSpaceAggregationOption, AddressSpaceAggregationOptionArgs
- None
- None
- Manual
- Manual
- Address
Space Aggregation Option None - None
- Address
Space Aggregation Option Manual - Manual
- None
- None
- Manual
- Manual
- None
- None
- Manual
- Manual
- NONE
- None
- MANUAL
- Manual
- "None"
- None
- "Manual"
- Manual
NetworkIntentPolicyBasedService, NetworkIntentPolicyBasedServiceArgs
- None
- None
- All
- All
- Allow
Rules Only - AllowRulesOnly
- Network
Intent Policy Based Service None - None
- Network
Intent Policy Based Service All - All
- Network
Intent Policy Based Service Allow Rules Only - AllowRulesOnly
- None
- None
- All
- All
- Allow
Rules Only - AllowRulesOnly
- None
- None
- All
- All
- Allow
Rules Only - AllowRulesOnly
- NONE
- None
- ALL
- All
- ALLOW_RULES_ONLY
- AllowRulesOnly
- "None"
- None
- "All"
- All
- "Allow
Rules Only" - AllowRulesOnly
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:SecurityAdminConfiguration myTestSecurityConfig /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0