upload/azure: set storage account minimum TLS version to 1.2

This commit is contained in:
Sanne Raymaekers 2023-12-15 13:45:07 +01:00
parent 828d82e871
commit adc07299a8

View file

@ -110,6 +110,9 @@ func (ac Client) CreateStorageAccount(ctx context.Context, resourceGroup, name,
Tags: map[string]*string{
tag.Name: &tag.Value,
},
Properties: &armstorage.AccountPropertiesCreateParameters{
MinimumTLSVersion: common.ToPtr(armstorage.MinimumTLSVersionTLS12),
},
}, nil)
if err != nil {
return fmt.Errorf("sending the create storage account request failed: %v", err)