This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.common.exceptions import WebDriverException, SessionNotCreatedException | |
import sys | |
import os | |
import pathlib | |
import urllib.request | |
import re | |
import zipfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "azurerm_client_config" "Current" {} | |
resource "azurerm_resource_group" "RG" { | |
name = var.ResourceGroup.Name | |
location = var.ResourceGroup.Location | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_data_factory" "DataFactory" { | |
name = "DataFactory Name" | |
location = azurerm_resource_group.RG.location | |
resource_group_name = azurerm_resource_group.RG.name | |
identity { | |
type = "SystemAssigned" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_databricks_workspace" "Databricks" { | |
location = azurerm_resource_group.RG.location | |
name = "Databricks Name" | |
resource_group_name = azurerm_resource_group.RG.name | |
managed_resource_group_name = "Databricks Managed Resource Group" | |
sku = "Databricks Sku" | |
custom_parameters { | |
no_public_ip = true | |
virtual_network_id = azurerm_virtual_network.DatabricksVnet.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_virtual_network" "DatabricksVnet" { | |
name = "VNET NAME" | |
resource_group_name = azurerm_resource_group.RG.name | |
location = azurerm_resource_group.RG.location | |
address_space = ["VNET CIDR"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_subnet" "DatabricksSubnetPublic" { | |
name = "VirtualNetwork PublicSubnet Name" | |
resource_group_name = azurerm_resource_group.RG.name | |
virtual_network_name = azurerm_virtual_network.DatabricksVnet.name | |
address_prefixes = ["VirtualNetwork PublicSubnet CIDR"] | |
service_endpoints = ["Microsoft.Storage"] | |
delegation { | |
name = "Microsoft.Databricks.workspaces" | |
service_delegation { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_network_security_group" "DatabricksNSG" { | |
name = "VirtualNetwork NSG Name" | |
resource_group_name = azurerm_resource_group.RG.name | |
location = azurerm_resource_group.RG.location | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_subnet" "DatabricksSubnetPrivate" { | |
name = "VirtualNetwork PrivateSubnet Name" | |
resource_group_name = azurerm_resource_group.RG.name | |
virtual_network_name = azurerm_virtual_network.DatabricksVnet.name | |
address_prefixes = ["VirtualNetwork PrivateSubnet CIDR"] | |
delegation { | |
name = "Microsoft.Databricks.workspaces" | |
service_delegation { | |
name = "Microsoft.Databricks/workspaces" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_subnet_network_security_group_association" "public" { | |
subnet_id = azurerm_subnet.DatabricksSubnetPublic.id | |
network_security_group_id = azurerm_network_security_group.DatabricksNSG.id | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_subnet_network_security_group_association" "private" { | |
subnet_id = azurerm_subnet.DatabricksSubnetPrivate.id | |
network_security_group_id = azurerm_network_security_group.DatabricksNSG.id | |
} |
OlderNewer