Skip to main content

vnet_peering

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

Overview

Namevnet_peering
TypeResource
Idazure_isv.databricks.vnet_peering

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
allowForwardedTrafficbooleanWhether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
allowGatewayTransitbooleanIf gateway links can be used in remote virtual networking to link to this virtual network.
allowVirtualNetworkAccessbooleanWhether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
databricksAddressSpaceobjectThe reference to the databricks virtual network address space.
databricksVirtualNetworkobjectThe remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering _).
peeringStatestringThe status of the virtual network peering. Known values are: "Initiated", "Connected", and "Disconnected". (Initiated, Connected, Disconnected)
provisioningStatestringThe provisioning state of the virtual network peering resource. Known values are: "Succeeded", "Updating", "Deleting", and "Failed". (Succeeded, Updating, Deleting, Failed)
remoteAddressSpaceobjectThe reference to the remote virtual network address space.
remoteVirtualNetworkobjectThe remote virtual network should be in the same region. See here to learn more (https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering _). Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
useRemoteGatewaysbooleanIf remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, peering_name, subscription_idGets the workspace vNet Peering.
list_by_workspaceselectresource_group_name, workspace_name, subscription_idLists the workspace vNet Peerings.
create_or_updateinsertresource_group_name, workspace_name, peering_name, subscription_id, propertiesCreates vNet Peering for workspace.
create_or_updatereplaceresource_group_name, workspace_name, peering_name, subscription_id, propertiesCreates vNet Peering for workspace.
deletedeleteresource_group_name, workspace_name, peering_name, subscription_idDeletes 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
peering_namestringThe name of the workspace vNet peering. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets the workspace vNet Peering.

SELECT
id,
name,
allowForwardedTraffic,
allowGatewayTransit,
allowVirtualNetworkAccess,
databricksAddressSpace,
databricksVirtualNetwork,
peeringState,
provisioningState,
remoteAddressSpace,
remoteVirtualNetwork,
systemData,
type,
useRemoteGateways
FROM azure_isv.databricks.vnet_peering
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND peering_name = '{{ peering_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates vNet Peering for workspace.

INSERT INTO azure_isv.databricks.vnet_peering (
properties,
resource_group_name,
workspace_name,
peering_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ peering_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates vNet Peering for workspace.

REPLACE azure_isv.databricks.vnet_peering
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND peering_name = '{{ peering_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the workspace vNetPeering.

DELETE FROM azure_isv.databricks.vnet_peering
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND peering_name = '{{ peering_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;