From b76a3a1ce8e13cbf9cd8f6ff188f67d8de8eb47e Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Thu, 5 Jul 2018 06:17:31 +0000 Subject: [PATCH] fix azure storage account creation failure fix comments --- pkg/cloudprovider/providers/azure/azure_storageaccount.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cloudprovider/providers/azure/azure_storageaccount.go b/pkg/cloudprovider/providers/azure/azure_storageaccount.go index a53e34920e2..e6610d22ad0 100644 --- a/pkg/cloudprovider/providers/azure/azure_storageaccount.go +++ b/pkg/cloudprovider/providers/azure/azure_storageaccount.go @@ -113,6 +113,8 @@ func (az *Cloud) ensureStorageAccount(accountName, accountType, location, genAcc accountName, az.ResourceGroup, location, accountType) cp := storage.AccountCreateParameters{ Sku: &storage.Sku{Name: storage.SkuName(accountType)}, + // 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, AccountPropertiesCreateParameters: &storage.AccountPropertiesCreateParameters{EnableHTTPSTrafficOnly: to.BoolPtr(true)}, Tags: map[string]*string{"created-by": to.StringPtr("azure")}, Location: &location}