ApplicationSecurityGroupAssociationArgs

data class ApplicationSecurityGroupAssociationArgs(val applicationSecurityGroupId: Output<String>? = null, val privateEndpointId: Output<String>? = null) : ConvertibleToJava<ApplicationSecurityGroupAssociationArgs>

Manages an association between Private Endpoint and Application Security Group.

Example Usage

resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-PEASGAsso
location: West Europe
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: examplevnet
resourceGroupName: ${example.name}
location: ${example.location}
addressSpaces:
- 10.5.0.0/16
service:
type: azure:network:Subnet
properties:
name: examplenetservice
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.5.1.0/24
enforcePrivateLinkServiceNetworkPolicies: true
endpoint:
type: azure:network:Subnet
properties:
name: examplenetendpoint
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.5.2.0/24
enforcePrivateLinkEndpointNetworkPolicies: true
examplePublicIp:
type: azure:network:PublicIp
name: example
properties:
name: examplepip
sku: Standard
location: ${example.location}
resourceGroupName: ${example.name}
allocationMethod: Static
exampleLoadBalancer:
type: azure:lb:LoadBalancer
name: example
properties:
name: examplelb
sku: Standard
location: ${example.location}
resourceGroupName: ${example.name}
frontendIpConfigurations:
- name: ${examplePublicIp.name}
publicIpAddressId: ${examplePublicIp.id}
exampleLinkService:
type: azure:privatedns:LinkService
name: example
properties:
name: examplePLS
location: ${example.location}
resourceGroupName: ${example.name}
autoApprovalSubscriptionIds:
- ${current.subscriptionId}
visibilitySubscriptionIds:
- ${current.subscriptionId}
natIpConfigurations:
- name: primaryIpConfiguration
primary: true
subnetId: ${service.id}
loadBalancerFrontendIpConfigurationIds:
- ${exampleLoadBalancer.frontendIpConfigurations[0].id}
exampleEndpoint:
type: azure:privatelink:Endpoint
name: example
properties:
name: example-privatelink
resourceGroupName: ${example.name}
location: ${example.location}
subnetId: ${endpoint.id}
privateServiceConnection:
name: ${exampleLinkService.name}
isManualConnection: false
privateConnectionResourceId: ${exampleLinkService.id}
exampleApplicationSecurityGroup:
type: azure:network:ApplicationSecurityGroup
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
exampleApplicationSecurityGroupAssociation:
type: azure:privatelink:ApplicationSecurityGroupAssociation
name: example
properties:
privateEndpointId: ${exampleEndpoint.id}
applicationSecurityGroupId: ${exampleApplicationSecurityGroup.id}
variables:
current:
fn::invoke:
function: azure:core:getSubscription
arguments: {}

API Providers

This resource uses the following Azure API Providers:

  • Microsoft.Network: 2024-05-01

Import

Associations between Private Endpoint and Application Security Group can be imported using the resource id, e.g.

$ pulumi import azure:privatelink/applicationSecurityGroupAssociation:ApplicationSecurityGroupAssociation association1 "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/privateEndpoints/endpoints1|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/applicationSecurityGroups/securityGroup1",

Constructors

Link copied to clipboard
constructor(applicationSecurityGroupId: Output<String>? = null, privateEndpointId: Output<String>? = null)

Properties

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

The id of application security group to associate. Changing this forces a new resource to be created.

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

The id of private endpoint to associate. Changing this forces a new resource to be created.

Functions

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