Azure / azure-spring-apps-landing-zone-accelerator

The Azure Spring Apps landing zone accelerator is an open-source collection of architectural guidance and reference implementation to accelerate deployment of Azure Spring Apps at scale.
MIT License
80 stars 76 forks source link

Run Terraform failed #190

Closed Netyyyy closed 12 months ago

Netyyyy commented 1 year ago
  1. when I run terraform plan -out my.plan --var-file ../parameters.tfvars from https://github.com/Azure/azure-spring-apps-landing-zone-accelerator/blob/main/Scenarios/ASA-Secure-Baseline/Terraform/07-LZ-AppGateway.md failed with: image
Netyyyy commented 1 year ago
  1. when run terraform init image failed with : image seems all variables.tf files have the same problem.
Netyyyy commented 1 year ago

Hi all, Any updates for those?

jeffpaineMS commented 1 year ago
  1. when I run terraform plan -out my.plan --var-file ../parameters.tfvars from https://github.com/Azure/azure-spring-apps-landing-zone-accelerator/blob/main/Scenarios/ASA-Secure-Baseline/Terraform/07-LZ-AppGateway.md failed with: image

Hello @Netyyyy

When deploying the 07-LZ-AppGateway you must provide a certificate in PFX format and comfigure the parameters.tfvars "07 Application Gateway" section appropriately for your certificate and backend pool information.

The particular error you're seeing here is about "certfilename" variable not being populated in the parameters.tfvars file. This value is commented out be default as the AppGateway is an optional component.

Hope that helps.

jeffpaineMS commented 1 year ago
  1. when run terraform init image failed with : image seems all variables.tf files have the same problem.

Hello @Netyyyy,

The error you are seeing here is related to the "name_prefix" variable, we restrict this variables length to 10 characters to control the size of resource names that are created using this variable.

Can you check the value that is set in the "parameters.tfvars" file and make sure it's less than or equal to 10 characters in length? Here I've set mine to "springent".

image
Netyyyy commented 1 year ago
  1. when run terraform init image failed with : image seems all variables.tf files have the same problem.

Hello @Netyyyy Muyao Feng (CSI Interfusion Inc) Vendor,

The error you are seeing here is related to the "name_prefix" variable, we restrict this variables length to 10 characters to control the size of resource names that are created using this variable.

Can you check the value that is set in the "parameters.tfvars" file and make sure it's less than or equal to 10 characters in length? Here I've set mine to "springent". image

I didn't change name_prefix, image and I modified error_message to start with a capital letter , it fixed image

luisfeliz79 commented 1 year ago

Hi @Netyyyy, is it ok to close this issue? Sounds like you got past the challenges, let us know! Thank you.