fix azure disk create failure due to sdk upgrade

This commit is contained in:
andyzhangx 2018-08-10 05:35:50 +00:00
parent ecc64f2e6e
commit 292226195b

View File

@ -489,7 +489,9 @@ func (c *BlobDiskController) createStorageAccount(storageAccountName string, sto
glog.V(2).Infof("azureDisk - Creating storage account %s type %s", storageAccountName, string(storageAccountType))
cp := storage.AccountCreateParameters{
Sku: &storage.Sku{Name: storageAccountType},
Sku: &storage.Sku{Name: storageAccountType},
// switch to use StorageV2 as it's recommended according to https://docs.microsoft.com/en-us/azure/storage/common/storage-account-options
Kind: storage.StorageV2,
Tags: map[string]*string{"created-by": to.StringPtr("azure-dd")},
Location: &location}
ctx, cancel := getContextWithCancel()