You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying terraform to create a batch account and batch pools everything works as expected. Both account and pools are created with correct frontend_port_range (eg "4000-4100")
If a second apply is run on the same state file where no changes have been made, I'd expect terraform to not change anything.
Actual Behavior
Instead all subsequent tf apply commands incorrectly reports that the frontend_port_range end port is a large number beginning with 8 and not 4100 as reported via the portal and the API. As a result terraform thinks a change is required and force replaces all the pools every time.
When running terraform with debugging I can see it is making this API call. I've confirmed that call is returning the correct frontend_port_range end port value (4100 in this case).
2020-02-23T23:03:23.5519381Z 2020-02-23T23:00:51.715Z [DEBUG] plugin.terraform-provider-azurerm_v1.42.0_x4: GET /subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.Batch/batchAccounts/<account_name>/pools
Steps to Reproduce
Setup a batch account and pool in terraform
Run terraform apply to create the resources
Run terraform apply or terraform plan to see the pool resources get a force replacement.
Important Factoids
Running in Australia East Azure.
Issue occurs consistently on every subsequent run.
Attempted using different port ranges (no difference)
Attempted latested released azurerm/tf (no difference)
Tried on multiple subscriptions. (no difference)
Have setup an auzure batch pool data source and this reports the incorrect number as well.
The text was updated successfully, but these errors were encountered:
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
locked and limited conversation to collaborators
Apr 2, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
Terraform
v0.12.8
with Azurermv1.42.0
Terraform
v0.12.21
with AzureRMv.44.0
Terraform
v0.12.21
with AzureRMv.2.0.0
Affected Resource(s)
azurerm_batch_pool
Terraform Configuration Files
Expected Behavior
When applying terraform to create a batch account and batch pools everything works as expected. Both account and pools are created with correct frontend_port_range (eg "4000-4100")
If a second apply is run on the same state file where no changes have been made, I'd expect terraform to not change anything.
Actual Behavior
Instead all subsequent
tf apply
commands incorrectly reports that the frontend_port_range end port is a large number beginning with 8 and not 4100 as reported via the portal and the API. As a result terraform thinks a change is required and force replaces all the pools every time.When running terraform with debugging I can see it is making this API call. I've confirmed that call is returning the correct frontend_port_range end port value (4100 in this case).
Steps to Reproduce
Setup a batch account and pool in terraform
Run
terraform apply
to create the resourcesRun
terraform apply
orterraform plan
to see the pool resources get a force replacement.Important Factoids
The text was updated successfully, but these errors were encountered: