Skip to main content

virtual_network_rules

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

Overview

Namevirtual_network_rules
TypeResource
Idazure.data_lake_store.virtual_network_rules

Fields

NameDatatypeDescription
idtextThe resource identifier.
nametextThe resource name.
accountNametextfield from the properties object
resourceGroupNametextfield from the properties object
subnet_idtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe resource type.
virtualNetworkRuleNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionId, virtualNetworkRuleNameGets the specified Data Lake Store virtual network rule.
list_by_accountSELECTaccountName, resourceGroupName, subscriptionIdLists the Data Lake Store virtual network rules within the specified Data Lake Store account.
create_or_updateINSERTaccountName, resourceGroupName, subscriptionId, virtualNetworkRuleName, data__propertiesCreates or updates the specified virtual network rule. During update, the virtual network rule with the specified name will be replaced with this new virtual network rule.
deleteDELETEaccountName, resourceGroupName, subscriptionId, virtualNetworkRuleNameDeletes the specified virtual network rule from the specified Data Lake Store account.
updateUPDATEaccountName, resourceGroupName, subscriptionId, virtualNetworkRuleNameUpdates the specified virtual network rule.

SELECT examples

Lists the Data Lake Store virtual network rules within the specified Data Lake Store account.

SELECT
id,
name,
accountName,
resourceGroupName,
subnet_id,
subscriptionId,
type,
virtualNetworkRuleName
FROM azure.data_lake_store.vw_virtual_network_rules
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_lake_store.virtual_network_rules (
accountName,
resourceGroupName,
subscriptionId,
virtualNetworkRuleName,
data__properties,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkRuleName }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a virtual_network_rules resource.

/*+ update */
UPDATE azure.data_lake_store.virtual_network_rules
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkRuleName = '{{ virtualNetworkRuleName }}';

DELETE example

Deletes the specified virtual_network_rules resource.

/*+ delete */
DELETE FROM azure.data_lake_store.virtual_network_rules
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkRuleName = '{{ virtualNetworkRuleName }}';