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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_machine_learning_compute_cluster virtual_machine_size is inconsistent due to case #18030

Open
1 task done
mattmshell opened this issue Aug 18, 2022 · 3 comments
Open
1 task done
Labels
bug category/casing/constants Resolved with new base layer, upgrading version should fix. service/machine-learning upstream/microsoft/blocking-swagger-issue This label is applicable when waiting on Microsoft for an issue with the Swagger definition. v/3.x

Comments

@mattmshell
Copy link

mattmshell commented Aug 18, 2022

Is there an existing issue for this?

  • I have searched the existing issues

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 Version

1.1.8

AzureRM Provider Version

3.8.0

Affected Resource(s)/Data Source(s)

azurerm_machine_learning_compute_cluster

Terraform Configuration Files

resource "azurerm_machine_learning_compute_cluster" "cluster" {
  for_each = var.compute_clusters

  name                          = "foo"
  location                      = var.location
  machine_learning_workspace_id = azurerm_machine_learning_workspace.aml_ws.id
  virtual_machine_size          = each.value.vm_size
  subnet_resource_id            = each.value.subnet_id
}

Debug Output/Panic Output

-/+ resource "azurerm_machine_learning_compute_cluster" "foo" {
 	...
	~ vm_size                       = "STANDARD_DS2_V2" -> "Standard_DS2_V2" # forces replacement
	...
}

Expected Behaviour

azurerm_machine_learning_compute_cluster is not replaced

Actual Behaviour

azurerm_machine_learning_compute_cluster is replaced

Steps to Reproduce

terraform apply

Important Factoids

for_each expression

References

No response

@mattmshell mattmshell added the bug label Aug 18, 2022
@github-actions github-actions bot removed the bug label Aug 18, 2022
@mattmshell mattmshell changed the title azurerm_machine_learning_compute_instance virtual_machine_size is inconsistent due to case azurerm_machine_learning_compute_cluster virtual_machine_size is inconsistent due to case Aug 18, 2022
@mattmshell
Copy link
Author

mattmshell commented Aug 18, 2022

Both azurerm_machine_learning_compute_cluster.virtual_machine_size and azurerm_machine_learning_compute_instance.vm_size appear to suffer from this problem.

Originally azurerm_machine_learning_compute_instance triggered this issue. After upgrading to Terraform v1.2.7 and AzureRM v3.18.0, azurerm_machine_learning_compute_cluster caused the same problem.

Uppercase input appears to resolve the problem, but I generally don't think the vm_size should be case sensitive.

@ms-henglu
Copy link
Contributor

Hi @mattmshell ,

Thank you for taking time to report this issue!

I believe this is a server-side bug that it returns vmSize in upper case.

@mybayern1974 mybayern1974 added the upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR label Aug 23, 2022
@ms-henglu
Copy link
Contributor

I've created an issue in swagger repo to track it:Azure/azure-rest-api-specs#20336

@rcskosir rcskosir added category/casing/constants Resolved with new base layer, upgrading version should fix. upstream/microsoft/blocking-swagger-issue This label is applicable when waiting on Microsoft for an issue with the Swagger definition. and removed upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category/casing/constants Resolved with new base layer, upgrading version should fix. service/machine-learning upstream/microsoft/blocking-swagger-issue This label is applicable when waiting on Microsoft for an issue with the Swagger definition. v/3.x
Projects
None yet
Development

No branches or pull requests

6 participants