Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_template_deployment parameters from acs-engine generated parameters file #54

Closed
hashibot opened this issue Jun 13, 2017 · 2 comments
Milestone

Comments

@hashibot
Copy link

This issue was originally opened by @Globegitter as hashicorp/terraform#13241. It was migrated here as part of the provider split. The original body of the issue is below.


Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Terraform version: 0.9.2 6365269541c8e3150ebe638a5c555e1424071417+CHANGES
Go runtime version: go1.8

Affected Resource(s)

Please list the resources as a list, for example:

  • azurerm_template_deployment

Terraform Configuration Files

resource "azurerm_template_deployment" "test" {
  name                = "${var.cluster_name}"
  resource_group_name = "${var.resource_group_name}"

  template_body = "${file(azuredeploy.json)}"
  parameters = "${file(azuredeploy.parameters.json)}"
  deployment_mode = "Incremental"
  depends_on      = ["null_resource.run_acs_engine"]
}

Debug Output

1 error(s) occurred:

* azurerm_template_deployment.test: parameters: should be a map

Expected Behavior

Terraform should have created that deployment

Actual Behavior

It failed

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Download the files from: https://gist.github.com/Globegitter/4ea17f9ed24ebdb38ce0a725fde01795
  2. terraform apply

Important Factoids

I am using acs-engine to create the template file as shown in this article: http://danielrhoades.com/2017/03/20/docker-azure-terra/

When I manually converted the azuredeploy.parameters.json into a map because it seemd to have issues with agentpool1Count = 1 (maybe because it is an int?), once I removed that and the template used it started creating with the deployment.

@rcarun rcarun added this to the M1 milestone Oct 11, 2017
@rcarun rcarun removed the M1 label Oct 12, 2017
@rcarun rcarun modified the milestones: M1, Future Oct 12, 2017
@achandmsft achandmsft removed this from the Future milestone Mar 10, 2018
@tombuildsstuff tombuildsstuff added this to the 1.3.0 milestone Mar 14, 2018
@tombuildsstuff
Copy link
Contributor

Hi @Globegitter

Just to let you know that support for this has been added in #404 which exposes a new parameters_body field on the azurerm_template_deployment resource, which will ship in v1.3.0 of the AzureRM Provider.

Thanks!

@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants