-
Notifications
You must be signed in to change notification settings - Fork 847
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
Can't create DataDisk with compute.CachingTypesReadWrite
or compute.StorageAccountTypesStandardSSDLRS
#12309
Comments
compute.CachingTypesReadWrite
or compute.CachingTypesReadWrite
compute.CachingTypesReadWrite
or compute.CachingTypesReadWrite
compute.CachingTypesReadWrite
or compute.StorageAccountTypesStandardSSDLRS
I'm guessing those parameters are read only and have to create a storage account first with |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv. Issue DetailsBug Report
go1.14.6 vm.StorageProfile.DataDisks = &[]compute.DataDisk{{
Lun: to.Int32Ptr(0),
Name: to.StringPtr(diskName),
CreateOption: compute.DiskCreateOptionTypesEmpty,
DiskSizeGB: to.Int32Ptr(sizeGB),
Caching: compute.CachingTypesReadWrite, // doesn't work
ManagedDisk: &compute.ManagedDiskParameters{ // doesn't work
StorageAccountType: compute.StorageAccountTypesStandardSSDLRS,
ID: &id,
},
}} I still end up with
|
@Drewm3 Do you mind taking a look at this issue please? |
Hi @nyetwurk, I apologize that this issue was not triaged over to the correct team for over a year. I am not an expert in the Go SDK, but I see that I am able to create a VM through the Azure Portal and Rest APIs that has a StandardSSD data disk with the caching set to ReadWrite caching. Could you attempt to recreate the issue using the current API version (2021-07-01) to see if the problem still occurs? If the problem does still occur with the current SDK, then I will need to find someone with Go expertise to help debug why it is not working for you or if there is some weird issue that is only showing up in the Go SDK instead of the backend service. |
I will test this time permitting. We have mostly abandoned this project partially due to this issue, but will revisit this if the issue is resolved. Is there documentation that confirms this is the correct way to instantiate an SSD drive? That is to say, |
Correct, you only need to set the storage account type in the VM create. No storageAccountClient.Create() is needed. |
Bug Report
github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute
github.com/Azure/azure-sdk-for-go v40.6.0+incompatible
go1.14.6
I still end up with
CachingTypesNone
andStandardHDD
The text was updated successfully, but these errors were encountered: