Skip to content

Commit a762367

Browse files
authored
[Storage] Update Create account cmdlet help example for MinimumTlsVersion (#25379)
1 parent c4f7023 commit a762367

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
* Fixed sync copy blob issue with -AsJob is specified [#25105]
2626
- `Copy-AzStorageBlob`
2727
* Updated Storage.Management.Sdk to support API version 2023-05-01
28+
* Updated 2 help examples of create storage account cmdlet, with MinimumTlsVersion as TLS1_2.
29+
- `New-AzStorageAccount`
30+
2831

2932
## Version 7.0.0
3033
* Added a prompt that needs confirmation when upgrading a storage account from StorageV1 or BlobStorage to StorageV2. Can be suppressed with -Force.

src/Storage/Storage.Management/help/New-AzStorageAccount.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The **New-AzStorageAccount** cmdlet creates an Azure Storage account.
8383

8484
### Example 1: Create a Storage account
8585
```powershell
86-
New-AzStorageAccount -ResourceGroupName MyResourceGroup -Name mystorageaccount -Location westus -SkuName Standard_GRS
86+
New-AzStorageAccount -ResourceGroupName MyResourceGroup -Name mystorageaccount -Location westus -SkuName Standard_GRS -MinimumTlsVersion TLS1_2
8787
```
8888

8989
This command creates a Storage account for the resource group name MyResourceGroup.
@@ -177,10 +177,10 @@ Then get the Storage account properties, and view the encryption keytype of Queu
177177

178178

179179
```
180-
$account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -MinimumTlsVersion TLS1_1 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $false
180+
$account = New-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -Location "eastus2euap" -SkuName "Standard_LRS" -Kind StorageV2 -MinimumTlsVersion TLS1_2 -AllowBlobPublicAccess $false -AllowSharedKeyAccess $false
181181
182182
$account.MinimumTlsVersion
183-
TLS1_1
183+
TLS1_2
184184
185185
$account.AllowBlobPublicAccess
186186
False

0 commit comments

Comments
 (0)