File tree Expand file tree Collapse file tree 6 files changed +8
-52
lines changed
201-machine-learning-moderately-secure
202-machine-learning-moderately-secure-existing-VNet
301-machine-learning-highly-secure Expand file tree Collapse file tree 6 files changed +8
-52
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ resource "azurerm_machine_learning_compute_cluster" "compute" {
1313 machine_learning_workspace_id = azurerm_machine_learning_workspace. default . id
1414 vm_priority = " Dedicated"
1515 vm_size = " STANDARD_DS2_V2"
16+
1617 identity {
1718 type = " SystemAssigned"
1819 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ resource "azurerm_key_vault" "default" {
1313 tenant_id = data. azurerm_client_config . current . tenant_id
1414 sku_name = " premium"
1515 purge_protection_enabled = true
16-
16+
1717 network_acls {
1818 default_action = " Deny"
1919 bypass = " AzureServices"
@@ -46,7 +46,7 @@ resource "azurerm_machine_learning_workspace" "default" {
4646 key_vault_id = azurerm_key_vault. default . id
4747 storage_account_id = azurerm_storage_account. default . id
4848 container_registry_id = azurerm_container_registry. default . id
49-
49+
5050 identity {
5151 type = " SystemAssigned"
5252 }
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ resource "azurerm_network_security_group" "nsg-training" {
121121 source_address_prefix = " BatchNodeManagement"
122122 destination_address_prefix = " *"
123123 }
124+
124125 security_rule {
125126 name = " AzureMachineLearning"
126127 priority = 110
@@ -152,7 +153,7 @@ resource "azurerm_subnet_network_security_group_association" "nsg-aks-link" {
152153
153154# User Defined Routes
154155
155- # UDR for Compute instance and compute clusters
156+ # UDR for compute instance and compute clusters
156157resource "azurerm_route_table" "rt-training" {
157158 name = " rt-training"
158159 location = azurerm_resource_group. default . location
Original file line number Diff line number Diff line change 11# Network Security Groups
2-
32resource "azurerm_network_security_group" "nsg-training" {
43 name = " nsg-training"
54 location = azurerm_resource_group. default . location
@@ -16,6 +15,7 @@ resource "azurerm_network_security_group" "nsg-training" {
1615 source_address_prefix = " BatchNodeManagement"
1716 destination_address_prefix = " *"
1817 }
18+
1919 security_rule {
2020 name = " AzureMachineLearning"
2121 priority = 110
@@ -49,7 +49,7 @@ resource "azurerm_subnet_network_security_group_association" "nsg-aks-link" {
4949
5050# User Defined Routes
5151
52- # UDR for Compute instance and compute clusters
52+ # UDR for Compute instance and compute clusters
5353resource "azurerm_route_table" "rt-training" {
5454 name = " rt-training"
5555 location = azurerm_resource_group. default . location
@@ -84,8 +84,8 @@ resource "azurerm_subnet_route_table_association" "rt-training-link" {
8484 subnet_id = var. training_subnet_resource_id
8585 route_table_id = azurerm_route_table. rt-training . id
8686}
87- # Inferencing (AKS) Route
8887
88+ # Inferencing (AKS) Route
8989resource "azurerm_route_table" "rt-aks" {
9090 name = " rt-aks"
9191 location = azurerm_resource_group. default . location
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ variable "image_build_compute_name" {
2121}
2222
2323# Existing subnets variables
24-
2524variable "training_subnet_resource_id" {
2625 type = string
2726 description = " Resource ID of the existing training subnet"
@@ -39,7 +38,6 @@ variable "ml_subnet_resource_id" {
3938
4039
4140# Existing private DNS zones variables
42-
4341variable "privatelink_api_azureml_ms_resource_id" {
4442 type = string
4543 description = " Resource ID of the existing privatelink.api.azureml.ms private dns zone"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments