Skip to content

Commit

Permalink
version and output changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchancellor-ms committed Jun 27, 2024
1 parent 92c4180 commit 10128a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion AVS-Landing-Zone/GreenField/Terraform/hcx_addon.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ resource "azapi_resource" "hcx_keys" {

output "hcx_keys" {
value = {
for key, value in azapi_resource.hcx_keys : key => value.output.properties.activationKey
for key, value in azapi_resource.hcx_keys : key => jsondecode(value.output).properties.activationKey
}
}

Expand Down
4 changes: 0 additions & 4 deletions AVS-Landing-Zone/GreenField/Terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ provider "azurerm" {
partner_id = "754599a0-0a6f-424a-b4c5-1b12be198ae8"
}

provider "azapi" {
enable_hcl_output_for_data_source = true
}

## Optional settings to setup a terraform backend in Azure storage

# terraform {
Expand Down
1 change: 1 addition & 0 deletions AVS-Landing-Zone/GreenField/Terraform/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ resource "azurerm_subnet" "jumpboxsubnet" {
resource "azurerm_subnet_network_security_group_association" "this_jumpbox" {
subnet_id = azurerm_subnet.jumpboxsubnet.id
network_security_group_id = module.testnsg.nsg_resource.id
depends_on = [ azurerm_virtual_network.network, azurerm_subnet.jumpboxsubnet, module.testnsg ]
}

module "testnsg" {
Expand Down
4 changes: 2 additions & 2 deletions AVS-Landing-Zone/GreenField/Terraform/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
prefix = "AVS"

#Region to deploy the AVS Private Cloud and associated components
region = "eastasia"
region = "southafricanorth"

#AVS requires a /22 CIDR range, this must not overlap with other networks to be used with AVS
avs-networkblock = "10.1.0.0/22"
avs-networkblock = "10.0.0.0/22"
avs-sku = "AV36"
avs-hostcount = 3
hcx_key_names = ["hcxsite1", "hcxsite2"]
Expand Down

0 comments on commit 10128a6

Please sign in to comment.