/
osbornray
/
PythonHacks
Обзор
Документация
Войти
/
osbornray
/
PythonHacks
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Terraform Tutorial Azure/AzureMachineLearning.tf
48 строк
2 KB
RekhuGopal
Terraform Tutorial Azure
18 сен 2021, 21:42
18 сен 2021, 21:42
342eb62
Код
Авторство
О чём код?
# retrive current connection data data "azurerm_client_config" "current" {} # Create azure RG resource "azurerm_resource_group" "AML" { name = "CloudQuickPOCsML-RG" location = "West Europe" } # Create App Insight resource "azurerm_application_insights" "AML" { name = "aml-cloudquickpocsappinsight" location = azurerm_resource_group.AML.location resource_group_name = azurerm_resource_group.AML.name application_type = "web" } # Create Azure Key Vault resource "azurerm_key_vault" "AML" { name = "cloudquickpockv001" location = azurerm_resource_group.AML.location resource_group_name = azurerm_resource_group.AML.name tenant_id = data.azurerm_client_config.current.tenant_id sku_name = "premium" } # Create Azure Storage Account resource "azurerm_storage_account" "AML" { name = "cloudquickpocsstga001" location = azurerm_resource_group.AML.location resource_group_name = azurerm_resource_group.AML.name account_tier = "Standard" account_replication_type = "GRS" } # Create Azure ML Service resource "azurerm_machine_learning_workspace" "AML" { name = "cloudquickpocs-aml-workspace" location = azurerm_resource_group.AML.location resource_group_name = azurerm_resource_group.AML.name application_insights_id = azurerm_application_insights.AML.id key_vault_id = azurerm_key_vault.AML.id storage_account_id = azurerm_storage_account.AML.id identity { type = "SystemAssigned" } }