-
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
Support Upload creation_type with uploadSizeBytes #19458
Support Upload creation_type with uploadSizeBytes #19458
Conversation
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.
Hey @harshavmb. This looks mostly good but there are a few big things that we need to fix before merging.
The test is failing with:
=== CONT TestAccManagedDisk_upload
testcase.go:110: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected.
(map[string]string) {
}
(map[string]string) (len=1) {
(string) (len=17) "upload_size_bytes": (string) (len=11) "21475885568"
}
--- FAIL: TestAccManagedDisk_upload (244.56s)
This is because we aren't setting it in resourceManagedDiskRead
so you'll want to add that too
Thanks @mbfrahry for your review. Indeed, I missed to update So, to avoid that what I've done is whenever, |
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.
Test looks good now @harshavmb, just some remaining suggestions on the docs then this should be good to go!
hi @stephybun , Committed changes as per the review. |
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 @harshavmb LGTM 👍
This functionality has been released in v3.34.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Support
Upload
as one of thecreate_option
. To be used in combination withupload_size_bytes
.Helpful to upload VHD disks from On-Prem <-> Azure, Azure <-> Azure etc.,