Skip to content

Commit ce355ed

Browse files
committed
Enable enableHttpsTrafficOnly for Azure storage account
1 parent 5cfc7ea commit ce355ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/storage/azure/azure.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ func (d *driver) createStorageAccount(storageAccountsClient storage.AccountsClie
158158

159159
kind := storage.StorageV2
160160
params := &storage.AccountPropertiesCreateParameters{
161-
AllowBlobPublicAccess: to.BoolPtr(false),
162-
MinimumTLSVersion: storage.TLS12,
161+
EnableHTTPSTrafficOnly: to.BoolPtr(true),
162+
AllowBlobPublicAccess: to.BoolPtr(false),
163+
MinimumTLSVersion: storage.TLS12,
163164
}
164165

165166
if strings.EqualFold(cloudName, "AZURESTACKCLOUD") {

0 commit comments

Comments
 (0)