update resource abbrevations to azure standarsd

This commit is contained in:
Dennis Eikelenboom
2021-08-18 11:58:01 -07:00
parent 96075ca1ef
commit d814115559
9 changed files with 36 additions and 38 deletions

View File

@ -16,6 +16,6 @@ provider "azurerm" {
data "azurerm_client_config" "current" {}
resource "azurerm_resource_group" "default" {
name = "${var.name}-${var.environment}-rgp"
location = "${var.location}"
name = "rg-${var.name}-${var.environment}"
location = var.location
}

View File

@ -1,9 +1,9 @@
# Azure Machine Learning workspace
This deployment template specifies an [Azure Machine Learning workspace](https://docs.microsoft.com/en-us/azure/machine-learning/concept-workspace),
This deployment configuration specifies an [Azure Machine Learning workspace](https://docs.microsoft.com/en-us/azure/machine-learning/concept-workspace),
and its associated resources including Azure Key Vault, Azure Storage, Azure Application Insights and Azure Container Registry.
This template describes the minimal set of resources you require to get started with Azure Machine Learning.
This configuration describes the minimal set of resources you require to get started with Azure Machine Learning.
## Resources

View File

@ -1,7 +1,6 @@
variable "name" {
type = string
description = "Name of the deployment"
default = "azureml999"
}
variable "environment" {

View File

@ -1,13 +1,13 @@
# Dependent resources for Azure Machine Learning
resource "azurerm_application_insights" "default" {
name = "${var.name}-${var.environment}-ain"
name = "appi-${var.name}-${var.environment}"
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
application_type = "web"
}
resource "azurerm_key_vault" "default" {
name = "${var.name}${var.environment}kv"
name = "kv-${var.name}-${var.environment}"
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
tenant_id = data.azurerm_client_config.current.tenant_id
@ -21,7 +21,7 @@ resource "azurerm_key_vault" "default" {
}
resource "azurerm_storage_account" "default" {
name = "${var.name}${var.environment}sa"
name = "st${var.name}${var.environment}"
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
account_tier = "Standard"
@ -34,7 +34,7 @@ resource "azurerm_storage_account" "default" {
}
resource "azurerm_container_registry" "default" {
name = "${var.name}${var.environment}cr"
name = "cr${var.name}${var.environment}"
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
sku = "Premium"
@ -43,7 +43,7 @@ resource "azurerm_container_registry" "default" {
# Machine Learning workspace
resource "azurerm_machine_learning_workspace" "default" {
name = "${var.name}-${var.environment}-aml"
name = "mlw-${var.name}-${var.environment}"
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
application_insights_id = azurerm_application_insights.default.id