question

Sara-8613 avatar image
0 Votes"
Sara-8613 asked Sara-8613 commented

Creating Storage Accounts and allocate a MinTLS Version

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sara-8613 Thanks for raising this question! Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

For better understanding issue: Could you please clarify what exactly are you trying accomplish? Are trying to make your own SDK or something like that?

ARM templates have support for minimum TLS

0 Votes 0 ·

1 Answer

Sara-8613 avatar image
0 Votes"
Sara-8613 answered Sara-8613 commented

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())  
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Sara-8613 Could you tell me which package do you use for storage management?

A workaround for currently version is (base on com.azure.resourcemanager:azure-resourcemanager:2.2.0):

 azure.storageAccounts().manager().serviceClient().getStorageAccounts().create(resourceGroupName, storageName, storageAccount);


0 Votes 0 ·
Sara-8613 avatar image Sara-8613 SumanthMarigowda-MSFT ·

I am using 1.40.0 version

0 Votes 0 ·