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

Unable to set multiple environment settings in start task for batch pool #2673

Closed
jschicht opened this issue Jan 15, 2019 · 2 comments · Fixed by #2685
Closed

Unable to set multiple environment settings in start task for batch pool #2673

jschicht opened this issue Jan 15, 2019 · 2 comments · Fixed by #2685

Comments

@jschicht
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Affected Resource(s)

  • azurerm_batch_pool

Terraform Configuration Files

    environment {
      KEY1 = "value1"
      KEY2 = "value2"
      
    }

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Running terraform apply returns;

Error: Error applying plan:

1 error(s) occurred:

  • azurerm_batch_pool.test: 1 error(s) occurred:

  • azurerm_batch_pool.test: Error creating Batch pool "joakimstestaccpool" (Resource Group "joakims-test-batch-rg"): batch.PoolClient#Create: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidPropertyValue" Message="The value provided for one of the properties in the request body is invalid.\nRequestId:24fb8aca-f432-4242-8019-38c99d148351\nTime:2019-01-15T09:02:16.8171408Z" Target="BatchAccount" Details=[{"code":"PropertyName","message":"environmentSettings"},{"code":"PropertyPath","message":"properties.startTask.environmentSettings"},{"code":"Reason","message":"Property environmentSettings has duplicate values 'KEY1'."}]

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@jcorioland
Copy link
Contributor

@jschicht thanks for reporting this. I am looking at this.

@katbyte katbyte added this to the 2.0.0 milestone Jan 17, 2019
katbyte pushed a commit that referenced this issue Jan 17, 2019
…sk (#2685)

This PR fixes #2673.
Was just a value capture issue inside a for loop.
I've added unit test to reproduce the issue and committed a fix.
@tombuildsstuff tombuildsstuff modified the milestones: 2.0.0, 1.22.0 Jan 21, 2019
@ghost
Copy link

ghost commented Mar 5, 2019

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 👉 [email protected]. Thanks!

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