Skip to content

Instantly share code, notes, and snippets.

View weeyin83's full-sized avatar

Sarah Lean weeyin83

View GitHub Profile
resource "azurerm_netapp_account" "example" {
name = "example-netapp-account"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_netapp_pool" "example" {
name = "example-netapp-pool"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
resource "azurerm_resource_group" "example" {
name = "rg-example"
location = "UK South"
}
resource "azurerm_virtual_network" "example" {
name = "networking"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
address_space = ["10.0.0.0/16"]

let part1 = "Just another"; let part2 = " Kusto hacker"; print result = strcat(part1, part2)

trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- task: AzureCLI@2
name: RunTerraform
inputs:
azureSubscription: INSERT NAME OF YOUR SERVICE CONNECTION # The name of your service connection goes here
scriptType: bash
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=4.14.0"
}
}
}
provider "azurerm" {
features {}
module "avm-res-azurestackhci-cluster" {
  source  = "Azure/avm-res-azurestackhci-cluster/azurerm"
  version = "0.12.0"
module "storage_account" {
  source = "./modules/storage-account"
  storage_account_name = "mystorageaccount"
  resource_group_name  = "my-resource-group"
  location             = "East US"
  account_tier         = "Standard"
  account_replication_type = "LRS"
  tags                 = {
    environment = "dev"
    project     = "example-project"
output "storage_account_name" {
  value = azurerm_storage_account.example.name
}
output "primary_blob_endpoint" {
  value = azurerm_storage_account.example.primary_blob_endpoint
}
variable "storage_account_name" {
  description = "The name of the storage account."
  type        = string
}
variable "resource_group_name" {
  description = "The name of the resource group."
  type        = string
}
variable "location" {
  description = "The Azure region where the storage account will be created."
resource "azurerm_storage_account" "example" {
  name                     = var.storage_account_name
  resource_group_name      = var.resource_group_name
  location                 = var.location
  account_tier             = var.account_tier
  account_replication_type = var.account_replication_type
  tags = var.tags
}