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

Shared_Image _Gallery_Version only takes single digit integers #2283

Closed
whytoe opened this issue Nov 9, 2018 · 2 comments · Fixed by #2301
Closed

Shared_Image _Gallery_Version only takes single digit integers #2283

whytoe opened this issue Nov 9, 2018 · 2 comments · Fixed by #2301

Comments

@whytoe
Copy link
Contributor

whytoe commented Nov 9, 2018

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

sdccdev01rgp78 git:(master) ✗ terraform -v
Terraform v0.11.10
+ provider.aws v1.43.0
+ provider.azurerm v1.18.0

Affected Resource(s)

*azurerm_shared_image_version

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

data "azurerm_image" "dev" {
  name_regex		= "${var.vm_image}-dev-\\d+\\.\\d+\\.\\d+"
  resource_group_name	= "${data.azurerm_resource_group.rgp.name}"
  sort_descending	= "true"
}

module "image_definition" {
  source		= "mysource"
  image_name		= "${var.image_name}"
  gallery_name		= "${data.azurerm_shared_image_gallery.gallery.name}"
  resource_group_name	= "${data.azurerm_resource_group.rgp.name}"
  os_type		= "${var.image_os_type}"
  image_offer		= "${var.image_offer}"
  image_sku		= "${var.image_sku}"
}

module "image_version_dev" {
  source                = "mysource"
  resource_group_name   = "${data.azurerm_resource_group.rgp.name}"
  gallery_name		= "${data.azurerm_shared_image_gallery.gallery.name}"
  image_name            = "${var.image_name}"
  image_id		= "${data.azurerm_image.dev.id}"
  image_version		= "0.0.111"
  azure_region		= "${var.image_regions}"
}

Debug Output

Panic Output

Expected Behavior

Image Version is created using the Rest API with version 0.0.111

Rest API definition

galleryImageVersionName | path | True | string | The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: ..
-- | -- | -- | -- | --

Actual Behavior

Error: module.image_version_dev.azurerm_shared_image_version.version: Expected name to be in the format `1.2.3` but got "0.0.111".

Steps to Reproduce

Use a Version of anything that is more than a single digit ex 1.18.0

  1. terraform apply

Important Factoids

References

  • #0000
@katbyte
Copy link
Collaborator

katbyte commented Nov 13, 2018

Hi @whytoe,

Thanks for opening this issue, I've opened #2301 to fix this for v1.9 🙂

@ghost
Copy link

ghost commented Mar 6, 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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants