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

The following fields are returned by SELECT queries:

Lists the virtual networks in the specified resource group

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists the virtual networks in the specified resource group
list_by_subscriptionselectsubscriptionIdLists the virtual networks in the specified subscription
create_or_updateinsertsubscriptionId, resourceGroupName, virtualNetworkNameCreates or updates the virtual network resource
updateupdatesubscriptionId, resourceGroupName, virtualNetworkNamePatches the virtual network resource
deletedeletesubscriptionId, resourceGroupName, virtualNetworkNameDeletes the specified virtual network resource
retrieveexecsubscriptionId, resourceGroupName, virtualNetworkNameGets the specified virtual network resource

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualNetworkNamestringParameter for the name of the virtual network

SELECT examples

Lists the virtual networks in the specified resource group

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

INSERT examples

Creates or updates the virtual network resource

INSERT INTO azure.hybrid_aks.virtual_networks (
data__properties,
data__extendedLocation,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
virtualNetworkName
)
SELECT
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ virtualNetworkName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

Patches the virtual network resource

UPDATE azure.hybrid_aks.virtual_networks
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND virtualNetworkName = '{{ virtualNetworkName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

Deletes the specified virtual network resource

DELETE FROM azure.hybrid_aks.virtual_networks
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND virtualNetworkName = '{{ virtualNetworkName }}' --required
;

Lifecycle Methods

Gets the specified virtual network resource

EXEC azure.hybrid_aks.virtual_networks.retrieve 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@virtualNetworkName='{{ virtualNetworkName }}' --required
;