Creating Storage Accounts and allocate a MinTLS Version

Sara 1 Reputation point
2021-03-12T01:57:42.027+00:00

Hi, I am see the latest "tag" in MS git library does not have "minTLS" defined in StorageAccount. I am making changes to my MS SDK and trying to Cherry Pick the latest JARS to have that field specified in my codebase. My question is, once I will do this and StorageAccount class will have 'minTLS' version field specified, can I simply call a method to set minTLS of my StorageAccount object? something like this?

return Retry.operation(() ->  
                 azureConn.getAzure()  
                         .storageAccounts()  
                         .define(accountName)  
                         .withRegion(region)  
                         .withExistingResourceGroup(resourceGroupName)  
                         .withGeneralPurposeAccountKindV2()  
                         .withLargeFileShares(true)  
                         .withSku(StorageAccountSkuType.SKU)  
                         .withTags(tags)  
                         //.minimumTLS(String value)  
                         .create())  
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,687 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sara 1 Reputation point
    2021-03-15T17:36:19.747+00:00

    Thanks. I can explain what I meant. I am trying to create a storage account and assign a MinimumTLS Version 1.2 to it. I see that MS AzureLibrary in the latest master branch has a StorageAccount class that has that property added now. My question is: Can I create my StorageAccount using something like this now and specify TLS property also?

    return Retry.operation(() ->  
                      azureConn.getAzure()  
                              .storageAccounts()  
                              .define(accountName)  
                              .withRegion(region)  
                              .withExistingResourceGroup(resourceGroupName)  
                              .withGeneralPurposeAccountKindV2()  
                              .withLargeFileShares(true)  
                              .withSku(StorageAccountSkuType.SKU)  
                              .withTags(tags)  
                              //.minimumTLS(String value)  
                              .create())