Skip to main content

virtual_networks

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

Overview

Namevirtual_networks
TypeResource
Idazure.hybrid_aks.virtual_networks

Fields

NameDatatypeDescription
extendedLocationobjectExtended location pointing to the underlying infrastructure
locationstringThe geo-location where the resource lives
propertiesobjectProperties of the virtual network resource
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists the virtual networks in the specified resource group
list_by_subscriptionSELECTsubscriptionIdLists the virtual networks in the specified subscription
create_or_updateINSERTresourceGroupName, subscriptionId, virtualNetworkNameCreates or updates the virtual network resource
deleteDELETEresourceGroupName, subscriptionId, virtualNetworkNameDeletes the specified virtual network resource
updateUPDATEresourceGroupName, subscriptionId, virtualNetworkNamePatches the virtual network resource
retrieveEXECresourceGroupName, subscriptionId, virtualNetworkNameGets the specified virtual network resource

SELECT examples

Lists the virtual networks in the specified subscription

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.hybrid_aks.virtual_networks
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_aks.virtual_networks (
resourceGroupName,
subscriptionId,
virtualNetworkName,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkName }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a virtual_networks resource.

/*+ update */
UPDATE azure.hybrid_aks.virtual_networks
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkName = '{{ virtualNetworkName }}';

DELETE example

Deletes the specified virtual_networks resource.

/*+ delete */
DELETE FROM azure.hybrid_aks.virtual_networks
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkName = '{{ virtualNetworkName }}';