set EnableHTTPSTrafficOnly in storageAccount creation

This commit is contained in:
andyzhangx 2018-06-11 07:10:24 +00:00
parent 169df74341
commit b9c07dc7a1

View File

@ -113,6 +113,7 @@ func (az *Cloud) ensureStorageAccount(accountName, accountType, location, genAcc
accountName, az.ResourceGroup, location, accountType)
cp := storage.AccountCreateParameters{
Sku: &storage.Sku{Name: storage.SkuName(accountType)},
AccountPropertiesCreateParameters: &storage.AccountPropertiesCreateParameters{EnableHTTPSTrafficOnly: to.BoolPtr(true)},
Tags: map[string]*string{"created-by": to.StringPtr("azure")},
Location: &location}