Skip to main content

vnet_peerings

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

Overview

Namevnet_peerings
TypeResource
Idazure_isv.databricks.vnet_peerings

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
idstringResource ID.
namestringName of the virtual network peering resource
propertiesobjectList of properties for vNet Peering
typestringtype of the virtual network peering resource

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, workspaceName, subscriptionId, peeringNameGets the workspace vNet Peering.
list_by_workspaceselectresourceGroupName, workspaceName, subscriptionIdLists the workspace vNet Peerings.
create_or_updateinsertresourceGroupName, workspaceName, subscriptionId, peeringName, data__propertiesCreates vNet Peering for workspace.
deletedeleteresourceGroupName, workspaceName, subscriptionId, peeringNameDeletes the workspace vNetPeering.

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
peeringNamestringThe name of the workspace vNet peering.
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.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets the workspace vNet Peering.

SELECT
id,
name,
properties,
type
FROM azure_isv.databricks.vnet_peerings
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND peeringName = '{{ peeringName }}' -- required
;

INSERT examples

Creates vNet Peering for workspace.

INSERT INTO azure_isv.databricks.vnet_peerings (
data__properties,
resourceGroupName,
workspaceName,
subscriptionId,
peeringName
)
SELECT
'{{ properties }}' /* required */,
'{{ resourceGroupName }}',
'{{ workspaceName }}',
'{{ subscriptionId }}',
'{{ peeringName }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Deletes the workspace vNetPeering.

DELETE FROM azure_isv.databricks.vnet_peerings
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND peeringName = '{{ peeringName }}' --required
;