1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. ApplicationSecurityGroup
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.network.ApplicationSecurityGroup

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

An application security group in a resource group.

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: 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 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-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 application security group

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var applicationSecurityGroup = new AzureNative.Network.ApplicationSecurityGroup("applicationSecurityGroup", new()
    {
        ApplicationSecurityGroupName = "test-asg",
        Location = "westus",
        ResourceGroupName = "rg1",
    });

});
Copy
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.NewApplicationSecurityGroup(ctx, "applicationSecurityGroup", &network.ApplicationSecurityGroupArgs{
			ApplicationSecurityGroupName: pulumi.String("test-asg"),
			Location:                     pulumi.String("westus"),
			ResourceGroupName:            pulumi.String("rg1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.ApplicationSecurityGroup;
import com.pulumi.azurenative.network.ApplicationSecurityGroupArgs;
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 applicationSecurityGroup = new ApplicationSecurityGroup("applicationSecurityGroup", ApplicationSecurityGroupArgs.builder()
            .applicationSecurityGroupName("test-asg")
            .location("westus")
            .resourceGroupName("rg1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const applicationSecurityGroup = new azure_native.network.ApplicationSecurityGroup("applicationSecurityGroup", {
    applicationSecurityGroupName: "test-asg",
    location: "westus",
    resourceGroupName: "rg1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

application_security_group = azure_native.network.ApplicationSecurityGroup("applicationSecurityGroup",
    application_security_group_name="test-asg",
    location="westus",
    resource_group_name="rg1")
Copy
resources:
  applicationSecurityGroup:
    type: azure-native:network:ApplicationSecurityGroup
    properties:
      applicationSecurityGroupName: test-asg
      location: westus
      resourceGroupName: rg1
Copy

Create ApplicationSecurityGroup Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ApplicationSecurityGroup(name: string, args: ApplicationSecurityGroupArgs, opts?: CustomResourceOptions);
@overload
def ApplicationSecurityGroup(resource_name: str,
                             args: ApplicationSecurityGroupInitArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def ApplicationSecurityGroup(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             resource_group_name: Optional[str] = None,
                             application_security_group_name: Optional[str] = None,
                             id: Optional[str] = None,
                             location: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None)
func NewApplicationSecurityGroup(ctx *Context, name string, args ApplicationSecurityGroupArgs, opts ...ResourceOption) (*ApplicationSecurityGroup, error)
public ApplicationSecurityGroup(string name, ApplicationSecurityGroupArgs args, CustomResourceOptions? opts = null)
public ApplicationSecurityGroup(String name, ApplicationSecurityGroupArgs args)
public ApplicationSecurityGroup(String name, ApplicationSecurityGroupArgs args, CustomResourceOptions options)
type: azure-native:network:ApplicationSecurityGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ApplicationSecurityGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ApplicationSecurityGroupInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ApplicationSecurityGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ApplicationSecurityGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ApplicationSecurityGroupArgs
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 applicationSecurityGroupResource = new AzureNative.Network.ApplicationSecurityGroup("applicationSecurityGroupResource", new()
{
    ResourceGroupName = "string",
    ApplicationSecurityGroupName = "string",
    Id = "string",
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := network.NewApplicationSecurityGroup(ctx, "applicationSecurityGroupResource", &network.ApplicationSecurityGroupArgs{
	ResourceGroupName:            pulumi.String("string"),
	ApplicationSecurityGroupName: pulumi.String("string"),
	Id:                           pulumi.String("string"),
	Location:                     pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var applicationSecurityGroupResource = new ApplicationSecurityGroup("applicationSecurityGroupResource", ApplicationSecurityGroupArgs.builder()
    .resourceGroupName("string")
    .applicationSecurityGroupName("string")
    .id("string")
    .location("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
application_security_group_resource = azure_native.network.ApplicationSecurityGroup("applicationSecurityGroupResource",
    resource_group_name="string",
    application_security_group_name="string",
    id="string",
    location="string",
    tags={
        "string": "string",
    })
Copy
const applicationSecurityGroupResource = new azure_native.network.ApplicationSecurityGroup("applicationSecurityGroupResource", {
    resourceGroupName: "string",
    applicationSecurityGroupName: "string",
    id: "string",
    location: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:network:ApplicationSecurityGroup
properties:
    applicationSecurityGroupName: string
    id: string
    location: string
    resourceGroupName: string
    tags:
        string: string
Copy

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

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ApplicationSecurityGroupName Changes to this property will trigger replacement. string
The name of the application security group.
Id string
Resource ID.
Location string
Resource location.
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ApplicationSecurityGroupName Changes to this property will trigger replacement. string
The name of the application security group.
Id string
Resource ID.
Location string
Resource location.
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
applicationSecurityGroupName Changes to this property will trigger replacement. String
The name of the application security group.
id String
Resource ID.
location String
Resource location.
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
applicationSecurityGroupName Changes to this property will trigger replacement. string
The name of the application security group.
id string
Resource ID.
location string
Resource location.
tags {[key: string]: string}
Resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
application_security_group_name Changes to this property will trigger replacement. str
The name of the application security group.
id str
Resource ID.
location str
Resource location.
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
applicationSecurityGroupName Changes to this property will trigger replacement. String
The name of the application security group.
id String
Resource ID.
location String
Resource location.
tags Map<String>
Resource tags.

Outputs

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

AzureApiVersion string
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.
ProvisioningState string
The provisioning state of the application security group resource.
ResourceGuid string
The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
Type string
Resource type.
AzureApiVersion string
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.
ProvisioningState string
The provisioning state of the application security group resource.
ResourceGuid string
The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
Type string
Resource type.
azureApiVersion String
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.
provisioningState String
The provisioning state of the application security group resource.
resourceGuid String
The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
type String
Resource type.
azureApiVersion string
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.
provisioningState string
The provisioning state of the application security group resource.
resourceGuid string
The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
type string
Resource type.
azure_api_version str
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 application security group resource.
resource_guid str
The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
type str
Resource type.
azureApiVersion String
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.
provisioningState String
The provisioning state of the application security group resource.
resourceGuid String
The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
type String
Resource type.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:ApplicationSecurityGroup test-asg /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi