We recommend using Azure Native.
azure.privatelink.ApplicationSecurityGroupAssociation
Explore with Pulumi AI
Manages an association between Private Endpoint and Application Security Group.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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: {}
Create ApplicationSecurityGroupAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationSecurityGroupAssociation(name: string, args: ApplicationSecurityGroupAssociationArgs, opts?: CustomResourceOptions);
@overload
def ApplicationSecurityGroupAssociation(resource_name: str,
args: ApplicationSecurityGroupAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplicationSecurityGroupAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_security_group_id: Optional[str] = None,
private_endpoint_id: Optional[str] = None)
func NewApplicationSecurityGroupAssociation(ctx *Context, name string, args ApplicationSecurityGroupAssociationArgs, opts ...ResourceOption) (*ApplicationSecurityGroupAssociation, error)
public ApplicationSecurityGroupAssociation(string name, ApplicationSecurityGroupAssociationArgs args, CustomResourceOptions? opts = null)
public ApplicationSecurityGroupAssociation(String name, ApplicationSecurityGroupAssociationArgs args)
public ApplicationSecurityGroupAssociation(String name, ApplicationSecurityGroupAssociationArgs args, CustomResourceOptions options)
type: azure:privatelink:ApplicationSecurityGroupAssociation
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 ApplicationSecurityGroupAssociationArgs
- 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 ApplicationSecurityGroupAssociationArgs
- 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 ApplicationSecurityGroupAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationSecurityGroupAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationSecurityGroupAssociationArgs
- 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 applicationSecurityGroupAssociationResource = new Azure.PrivateLink.ApplicationSecurityGroupAssociation("applicationSecurityGroupAssociationResource", new()
{
ApplicationSecurityGroupId = "string",
PrivateEndpointId = "string",
});
example, err := privatelink.NewApplicationSecurityGroupAssociation(ctx, "applicationSecurityGroupAssociationResource", &privatelink.ApplicationSecurityGroupAssociationArgs{
ApplicationSecurityGroupId: pulumi.String("string"),
PrivateEndpointId: pulumi.String("string"),
})
var applicationSecurityGroupAssociationResource = new ApplicationSecurityGroupAssociation("applicationSecurityGroupAssociationResource", ApplicationSecurityGroupAssociationArgs.builder()
.applicationSecurityGroupId("string")
.privateEndpointId("string")
.build());
application_security_group_association_resource = azure.privatelink.ApplicationSecurityGroupAssociation("applicationSecurityGroupAssociationResource",
application_security_group_id="string",
private_endpoint_id="string")
const applicationSecurityGroupAssociationResource = new azure.privatelink.ApplicationSecurityGroupAssociation("applicationSecurityGroupAssociationResource", {
applicationSecurityGroupId: "string",
privateEndpointId: "string",
});
type: azure:privatelink:ApplicationSecurityGroupAssociation
properties:
applicationSecurityGroupId: string
privateEndpointId: string
ApplicationSecurityGroupAssociation 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 ApplicationSecurityGroupAssociation resource accepts the following input properties:
- Application
Security stringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- Private
Endpoint stringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- Application
Security stringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- Private
Endpoint stringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application
Security StringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- private
Endpoint StringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application
Security stringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- private
Endpoint stringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application_
security_ strgroup_ id - The id of application security group to associate. Changing this forces a new resource to be created.
- private_
endpoint_ strid - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application
Security StringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- private
Endpoint StringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplicationSecurityGroupAssociation 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 ApplicationSecurityGroupAssociation Resource
Get an existing ApplicationSecurityGroupAssociation 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?: ApplicationSecurityGroupAssociationState, opts?: CustomResourceOptions): ApplicationSecurityGroupAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_security_group_id: Optional[str] = None,
private_endpoint_id: Optional[str] = None) -> ApplicationSecurityGroupAssociation
func GetApplicationSecurityGroupAssociation(ctx *Context, name string, id IDInput, state *ApplicationSecurityGroupAssociationState, opts ...ResourceOption) (*ApplicationSecurityGroupAssociation, error)
public static ApplicationSecurityGroupAssociation Get(string name, Input<string> id, ApplicationSecurityGroupAssociationState? state, CustomResourceOptions? opts = null)
public static ApplicationSecurityGroupAssociation get(String name, Output<String> id, ApplicationSecurityGroupAssociationState 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.
- Application
Security stringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- Private
Endpoint stringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- Application
Security stringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- Private
Endpoint stringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application
Security StringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- private
Endpoint StringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application
Security stringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- private
Endpoint stringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application_
security_ strgroup_ id - The id of application security group to associate. Changing this forces a new resource to be created.
- private_
endpoint_ strid - The id of private endpoint to associate. Changing this forces a new resource to be created.
- application
Security StringGroup Id - The id of application security group to associate. Changing this forces a new resource to be created.
- private
Endpoint StringId - The id of private endpoint to associate. Changing this forces a new resource to be created.
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",
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.