-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_shared_image
& azurerm_shared_image_version
- support for specialized images by setting generalized to false
#7277
azurerm_shared_image
& azurerm_shared_image_version
- support for specialized images by setting generalized to false
#7277
Conversation
…cialized-custom-image-shared-image
…image-shared-image
…image-shared-image
…e deleted properly
Tests are passing:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArcturusZhang - i am getting test failures on TC:
TestAccAzureRMSharedImageVersion_requiresImport
TestAccDataSourceAzureRMSharedImageVersion_basic
TestAccDataSourceAzureRMSharedImageVersion_latest
TestAccDataSourceAzureRMSharedImageVersion_recent
TestAccDataSourceAzureRMSharedImageVersions_basic
TestAccDataSourceAzureRMSharedImageVersions_tagsFilter
Hi @katbyte I have synced with master... and now the tests seem passing |
@@ -74,6 +74,8 @@ The following arguments are supported: | |||
|
|||
* `release_note_uri` - (Optional) The URI containing the Release Notes associated with this Shared Image. | |||
|
|||
* `os_state` - (Optional) The state of Operating System present in this Shared Image. Possible values are `Generalized` and `Specialized`. Defaults to `Generalized`. Changing this forces a new resource to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some internal discussion could we rename this to generalized = bool
? this is at heart a boolean true/false and os_state really doesn't convey what its doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! I will take care of this.
Hi @katbyte I have resolved your comments, please have a look, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ArcturusZhang, LGTM 👍
azurerm_shared_image
, azurerm_shared_image_version
- Add support for specialized shared imageazurerm_shared_image
& azurerm_shared_image_version
- support for specialized images by setting generalized to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from 2 minor documentation changes which i will make now this LGTM 👍
This has been released in version 2.17.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.17.0"
}
# ... other configuration ... |
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! |
This PR adds support for the specialized shared image, with the following changes:
azurerm_shared_image
- addos_state
attribute to indicate this image definition is generalized or specialized.azurerm_shared_image_version
- addos_disk_snapshot_id
attribute to support create new image version using snapshot, which also enables you create new version for a specialized image.