Skip to main content

application_security_groups

Creates, updates, deletes, gets or lists a application_security_groups resource.

Overview

Nameapplication_security_groups
TypeResource
Idazure.network.application_security_groups

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
applicationSecurityGroupNametextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplicationSecurityGroupName, resourceGroupName, subscriptionIdGets information about the specified application security group.
listSELECTresourceGroupName, subscriptionIdGets all the application security groups in a resource group.
list_allSELECTsubscriptionIdGets all application security groups in a subscription.
create_or_updateINSERTapplicationSecurityGroupName, resourceGroupName, subscriptionIdCreates or updates an application security group.
deleteDELETEapplicationSecurityGroupName, resourceGroupName, subscriptionIdDeletes the specified application security group.
update_tagsEXECapplicationSecurityGroupName, resourceGroupName, subscriptionIdUpdates an application security group's tags.

SELECT examples

Gets all application security groups in a subscription.

SELECT
id,
name,
applicationSecurityGroupName,
etag,
location,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
tags,
type
FROM azure.network.vw_application_security_groups
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new application_security_groups resource.

/*+ create */
INSERT INTO azure.network.application_security_groups (
applicationSecurityGroupName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ applicationSecurityGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified application_security_groups resource.

/*+ delete */
DELETE FROM azure.network.application_security_groups
WHERE applicationSecurityGroupName = '{{ applicationSecurityGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';