diff --git a/internal/services/compute/image_resource.go b/internal/services/compute/image_resource.go index 099275fa026e..ff17ba8e6300 100644 --- a/internal/services/compute/image_resource.go +++ b/internal/services/compute/image_resource.go @@ -130,6 +130,7 @@ func resourceImage() *pluginsdk.Resource { Type: pluginsdk.TypeInt, Computed: true, Optional: true, + ForceNew: true, ValidateFunc: validation.NoZeroValues, }, }, diff --git a/website/docs/r/image.html.markdown b/website/docs/r/image.html.markdown index a938650d2f45..4d6e229cb79f 100644 --- a/website/docs/r/image.html.markdown +++ b/website/docs/r/image.html.markdown @@ -123,7 +123,7 @@ The `os_disk` block supports the following: * `managed_disk_id` - (Optional) Specifies the ID of the managed disk resource that you want to use to create the image. * `blob_uri` - (Optional) Specifies the URI in Azure storage of the blob that you want to use to create the image. Changing this forces a new resource to be created. * `caching` - (Optional) Specifies the caching mode as `ReadWrite`, `ReadOnly`, or `None`. The default is `None`. -* `size_gb` - (Optional) Specifies the size of the image to be created. The target size can't be smaller than the source size. +* `size_gb` - (Optional) Specifies the size of the image to be created. Changing this forces a new resource to be created. ---