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

Support for data source azurerm_virtual_machine_size #18078

Open
1 task done
sergelogvinov opened this issue Aug 23, 2022 · 0 comments
Open
1 task done

Support for data source azurerm_virtual_machine_size #18078

sergelogvinov opened this issue Aug 23, 2022 · 0 comments

Comments

@sergelogvinov
Copy link
Contributor

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

Description

Data source azurerm_virtual_machine_size helps to define VM capabilities by SKU name.
The capabilities which very interested:

  • vCPUs
  • CPU Architecture
  • Memory Size
  • Cached Disk Size
  • Resource Volume Size (MaxResourceVolumeMB)
  • EphemeralOS DiskSupported
  • PremiumIO DiskSupported

New or Affected Resource(s)/Data Source(s)

azurerm_virtual_machine_size

Potential Terraform Configuration

data "azurerm_virtual_machine_size" "size" {
  name     = "Standard_D2pls_v5"
  location = "westeurope"
}

resource "azurerm_linux_virtual_machine_scale_set" "worker" {
  ...
  source_image_reference {
    location  = "westeurope"
    publisher = "Canonical"
    offer     = "0001-com-ubuntu-server-jammy"
    sku       = "22_04-lts-${data.azurerm_virtual_machine_size.size.architecture == "Arm64" ? "arm64" : "gen2"}"
    version   = "latest"
  }
}

References

Go SDK has such methods already, first method has more details about VM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants