diff --git a/schemas/2021-04-01-preview/Microsoft.Databricks.json b/schemas/2021-04-01-preview/Microsoft.Databricks.json index 51e03bfd23..351a435ebc 100644 --- a/schemas/2021-04-01-preview/Microsoft.Databricks.json +++ b/schemas/2021-04-01-preview/Microsoft.Databricks.json @@ -40,6 +40,9 @@ "oneOf": [ { "$ref": "#/definitions/workspaces_privateEndpointConnections_childResource" + }, + { + "$ref": "#/definitions/workspaces_virtualNetworkPeerings_childResource" } ] } @@ -124,9 +127,68 @@ "type" ], "description": "Microsoft.Databricks/workspaces/privateEndpointConnections" + }, + "workspaces_virtualNetworkPeerings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-04-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the workspace vNet peering." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/VirtualNetworkPeeringPropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the virtual network peering." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Databricks/workspaces/virtualNetworkPeerings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Databricks/workspaces/virtualNetworkPeerings" } }, "definitions": { + "AddressSpace": { + "type": "object", + "properties": { + "addressPrefixes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of address blocks reserved for this virtual network in CIDR notation." + } + }, + "description": "AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network." + }, "CreatedBy": { "type": "object", "properties": {}, @@ -349,6 +411,123 @@ ], "description": "SKU for the resource." }, + "VirtualNetworkPeeringPropertiesFormat": { + "type": "object", + "properties": { + "allowForwardedTraffic": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network." + }, + "allowGatewayTransit": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "If gateway links can be used in remote virtual networking to link to this virtual network." + }, + "allowVirtualNetworkAccess": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space." + }, + "databricksAddressSpace": { + "oneOf": [ + { + "$ref": "#/definitions/AddressSpace" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network." + }, + "databricksVirtualNetwork": { + "oneOf": [ + { + "$ref": "#/definitions/VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": " The 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)." + }, + "remoteAddressSpace": { + "oneOf": [ + { + "$ref": "#/definitions/AddressSpace" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network." + }, + "remoteVirtualNetwork": { + "oneOf": [ + { + "$ref": "#/definitions/VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": " The 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)." + }, + "useRemoteGateways": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "If 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." + } + }, + "required": [ + "remoteVirtualNetwork" + ], + "description": "Properties of the virtual network peering." + }, + "VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The Id of the databricks virtual network." + } + }, + "description": " The 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)." + }, + "VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The Id of the remote virtual network." + } + }, + "description": " The 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)." + }, "WorkspaceCustomBooleanParameter": { "type": "object", "properties": { @@ -832,6 +1011,45 @@ "type" ], "description": "Microsoft.Databricks/workspaces/privateEndpointConnections" + }, + "workspaces_virtualNetworkPeerings_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-04-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The name of the workspace vNet peering." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/VirtualNetworkPeeringPropertiesFormat" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the virtual network peering." + }, + "type": { + "type": "string", + "enum": [ + "virtualNetworkPeerings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Databricks/workspaces/virtualNetworkPeerings" } } } \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 1f7a893eb5..88b28de463 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -3331,6 +3331,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.Databricks.json#/resourceDefinitions/workspaces_privateEndpointConnections" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-04-01-preview/Microsoft.Databricks.json#/resourceDefinitions/workspaces_virtualNetworkPeerings" + }, { "$ref": "https://schema.management.azure.com/schemas/2016-03-30/Microsoft.DataCatalog.json#/resourceDefinitions/catalogs" },