Skip to content

Commit

Permalink
adding support to terraform v0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarvna committed Sep 20, 2020
1 parent 6e8548e commit 2191e80
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,25 @@ These types of resources supported:
* [Network Security Group](https://www.terraform.io/docs/providers/azurerm/r/network_security_group.html)
* [Availability Set](https://www.terraform.io/docs/providers/azurerm/r/availability_set.html)
* [SSH2 Key generation for Dev Environments](https://www.terraform.io/docs/providers/tls/r/private_key.html)
* [Azure Monitoring Diagnostics](https://www.terraform.io/docs/providers/azurerm/r/monitor_diagnostic_setting.html)

## Module Usage

```hcl
module "virtual-machine" {
source = "kumarvna/virtual-machine/azurerm"
version = "1.0.0"
version = "2.0.0"
# Resource Group, location, VNet and Subnet details
resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
location = "westeurope"
virtual_network_name = "vnet-default-hub-westeurope"
subnet_name = "snet-management-default-hub-westeurope"
virtual_machine_name = "testvm"
virtual_machine_name = "vm-linux"
# (Optional) To enable Azure Monitoring and install log analytics agents
log_analytics_workspace_name = var.log_analytics_workspace_id
hub_storage_account_name = var.hub_storage_account_id
# This module support multiple Pre-Defined Linux and Windows Distributions.
# Linux images: ubuntu1804, ubuntu1604, centos75, centos77, centos81, coreos
Expand Down Expand Up @@ -102,7 +107,8 @@ If the pre-defined Windows or Linux variants are not sufficient then, you can sp

```hcl
module "virtual-machine" {
source = "github.com/kumarvit/terraform-azurerm-virtual-machine"
source = "kumarvna/virtual-machine/azurerm"
version = "2.0.0"
# .... omitted
Expand Down Expand Up @@ -194,7 +200,7 @@ In the Source and Destination columns, `VirtualNetwork`, `AzureLoadBalancer`, an
```hcl
module "virtual-machine" {
source = "kumarvna/virtual-machine/azurerm"
version = "1.0.0"
version = "2.0.0"
# .... omitted
Expand Down Expand Up @@ -254,7 +260,7 @@ End Date of the Project|Date when this application, workload, or service is plan
```hcl
module "virtual-machine" {
source = "kumarvna/virtual-machine/azurerm"
version = "1.0.0"
version = "2.0.0"
# Resource Group, location, VNet and Subnet details
resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
Expand Down
9 changes: 9 additions & 0 deletions examples/linux_virtual_machine/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
variable "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}

variable "hub_storage_account_name" {
description = "The name of the hub storage account to store logs"
default = null
}
9 changes: 9 additions & 0 deletions examples/mssql_windows_virtual_machine/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
variable "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}

variable "hub_storage_account_name" {
description = "The name of the hub storage account to store logs"
default = null
}
9 changes: 9 additions & 0 deletions examples/windows_virtual_machine/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
variable "log_analytics_workspace_name" {
description = "The name of log analytics workspace name"
default = null
}

variable "hub_storage_account_name" {
description = "The name of the hub storage account to store logs"
default = null
}

0 comments on commit 2191e80

Please sign in to comment.