Skip to content

Commit ac23fa7

Browse files
authored
Update adb-vnet-injection to use azurerm v4 (#148)
* Update adb-vnet-injection to use azurerm 4 Signed-off-by: Niko <[email protected]> * change subsctipion_id parameter to prompt Signed-off-by: Niko <[email protected]> * remove no_public_ip parameter from readme Signed-off-by: Niko <[email protected]> --------- Signed-off-by: Niko <[email protected]>
1 parent 057173d commit ac23fa7

File tree

7 files changed

+67
-68
lines changed

7 files changed

+67
-68
lines changed

examples/adb-vnet-injection/.terraform.lock.hcl

+36-40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/adb-vnet-injection/README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,17 @@ Navigate to Azure Portal and verify that all resources were deployed successfull
3939

4040
| Name | Version |
4141
| ---------------------------------------------------------------------------- | -------- |
42-
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=3.0.0 |
43-
| <a name="requirement_databricks"></a> [databricks](#requirement\_databricks) | >=1.13.0 |
42+
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | >=4.0.0 |
43+
| <a name="requirement_databricks"></a> [databricks](#requirement\_databricks) | >=1.52.0 |
44+
| <a name="requirement_random"></a> [random](#requirement\_random) | |
4445

4546
## Providers
4647

4748
| Name | Version |
4849
| ---------------------------------------------------------------------- | ------- |
49-
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.49.0 |
50-
| <a name="provider_databricks"></a> [databricks](#provider\_databricks) | 1.13.0 |
51-
| <a name="provider_random"></a> [random](#provider\_random) | 3.4.3 |
50+
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 4.9.0 |
51+
| <a name="provider_databricks"></a> [databricks](#provider\_databricks) | 1.58.0 |
52+
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |
5253

5354
## Modules
5455

@@ -75,10 +76,10 @@ Navigate to Azure Portal and verify that all resources were deployed successfull
7576

7677
| Name | Description | Type | Default | Required |
7778
| ---------------------------------------------------------------------------------------------------------------------------------- | ----------- | -------- | ------------------- | :------: |
79+
| <a name="input_subscription_id"></a> [subscription\_id](#input\_subscription\_id) | n/a | `string` | | yes |
7880
| <a name="input_cidr"></a> [cidr](#input\_cidr) | n/a | `string` | `"10.179.0.0/20"` | no |
7981
| <a name="input_dbfs_prefix"></a> [dbfs\_prefix](#input\_dbfs\_prefix) | n/a | `string` | `"dbfs"` | no |
8082
| <a name="input_global_auto_termination_minute"></a> [global\_auto\_termination\_minute](#input\_global\_auto\_termination\_minute) | n/a | `number` | `30` | no |
81-
| <a name="input_no_public_ip"></a> [no\_public\_ip](#input\_no\_public\_ip) | n/a | `bool` | `true` | no |
8283
| <a name="input_node_type"></a> [node\_type](#input\_node\_type) | n/a | `string` | `"Standard_DS3_v2"` | no |
8384
| <a name="input_rglocation"></a> [rglocation](#input\_rglocation) | n/a | `string` | `"southeastasia"` | no |
8485
| <a name="input_workspace_prefix"></a> [workspace\_prefix](#input\_workspace\_prefix) | n/a | `string` | `"adb"` | no |

examples/adb-vnet-injection/main.tf

-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Azure Provider source and version being used
2-
terraform {
3-
required_providers {
4-
azurerm = {
5-
source = "hashicorp/azurerm"
6-
version = ">=3.0.0"
7-
}
8-
databricks = {
9-
source = "databricks/databricks"
10-
version = ">=1.13.0"
11-
}
12-
}
13-
}
14-
151
resource "random_string" "naming" {
162
special = false
173
upper = false

examples/adb-vnet-injection/providers.tf

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1-
# Configure the Microsoft Azure Provider
1+
terraform {
2+
required_providers {
3+
azurerm = {
4+
source = "hashicorp/azurerm"
5+
version = ">=4.0.0"
6+
}
7+
databricks = {
8+
source = "databricks/databricks"
9+
version = ">=1.52.0"
10+
}
11+
random = {
12+
source = "hashicorp/random"
13+
}
14+
}
15+
}
16+
217
provider "azurerm" {
18+
subscription_id = var.subscription_id
319
features {}
420
}
521

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
dbfs_prefix = "mycustomdbfs"
2-
cidr = "10.179.0.0/20"
1+
subscription_id = "<your Azure Subscription ID here>"
2+
dbfs_prefix = "mycustomdbfs"
3+
cidr = "10.179.0.0/20"

examples/adb-vnet-injection/variables.tf

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
variable "no_public_ip" {
2-
type = bool
3-
default = true
4-
description = "If Secure Cluster Connectivity (No Public IP) should be enabled. Default: true"
1+
variable "subscription_id" {
2+
type = string
3+
description = "Azure Subscription ID to deploy the workspace into"
54
}
65

76
variable "rglocation" {
@@ -47,3 +46,4 @@ variable "tags" {
4746
}
4847

4948

49+

examples/adb-vnet-injection/workspace.tf

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ resource "azurerm_databricks_workspace" "example" {
66
tags = local.tags
77

88
custom_parameters {
9-
no_public_ip = var.no_public_ip
109
virtual_network_id = azurerm_virtual_network.this.id
1110
private_subnet_name = azurerm_subnet.private.name
1211
public_subnet_name = azurerm_subnet.public.name

0 commit comments

Comments
 (0)