и все равно никак
terraform {
required_version = ">= 0.12"
}
provider "azurerm" {
# Whilst version is optional, we /strongly recommend/ using it to pin the version of the Provider being used
version = "=2.8.0"
subscription_id = var.subscription
features {}
}
resource "random_string" "random" {
length = 6
special = false
upper = false
}
resource "azurerm_resource_group" "zabbix-staging" {
name = "zabbix-staging"
location = var.location
}
resource "azurerm_storage_account" "zabbix-staging" {
name = "zabbixstaging"
resource_group_name =
azurerm_resource_group.zabbix-staging.name location = azurerm_resource_group.zabbix-staging.location
account_tier = "Standard"
account_replication_type = "LRS"
tags = {
AppGroup = "zabbix-monitoring",
Type = "Stage",
Team = "Infra-Dev"
}
}
resource "azurerm_storage_container" "zabbix-staging" {
name = "zabbixstaging"
storage_account_name =
azurerm_storage_account.zabbix-staging.name container_access_type = "private"
}
resource "azurerm_virtual_network" "zabbix-staging" {
name = "zabbix-staging"
address_space = ["10.224.28.0/24"]
location = azurerm_resource_group.zabbix-staging.location
resource_group_name =
azurerm_resource_group.zabbix-staging.name}
resource "azurerm_subnet" "zabbix-staging" {
name = "zabbix-staging"
resource_group_name =
azurerm_resource_group.zabbix-staging.name virtual_network_name =
azurerm_virtual_network.zabbix-staging.name address_prefix = "
10.224.28.240/28"
enforce_private_link_service_network_policies = false
service_endpoints = ["Microsoft.Sql"]
}