Commit 9b452ae4 authored by andyzhangx's avatar andyzhangx

set EnableHTTPSTrafficOnly in storageAccount creation

parent 68bea2f4
...@@ -107,8 +107,9 @@ func (az *Cloud) ensureStorageAccount(accountName, accountType, location, genAcc ...@@ -107,8 +107,9 @@ func (az *Cloud) ensureStorageAccount(accountName, accountType, location, genAcc
glog.V(2).Infof("azure - no matching account found, begin to create a new account %s in resource group %s, location: %s, accountType: %s", glog.V(2).Infof("azure - no matching account found, begin to create a new account %s in resource group %s, location: %s, accountType: %s",
accountName, az.ResourceGroup, location, accountType) accountName, az.ResourceGroup, location, accountType)
cp := storage.AccountCreateParameters{ cp := storage.AccountCreateParameters{
Sku: &storage.Sku{Name: storage.SkuName(accountType)}, Sku: &storage.Sku{Name: storage.SkuName(accountType)},
Tags: &map[string]*string{"created-by": to.StringPtr("azure")}, Tags: &map[string]*string{"created-by": to.StringPtr("azure")},
AccountPropertiesCreateParameters: &storage.AccountPropertiesCreateParameters{EnableHTTPSTrafficOnly: to.BoolPtr(true)},
Location: &location} Location: &location}
cancel := make(chan struct{}) cancel := make(chan struct{})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment