Skip to content

Commit 1e88f3b

Browse files
authored
[Storage] Remove AllowBlobPublicAccess and AllowCrossTenantReplication breaking change warning messages (#23683)
* AllowBlobPublicAccess and AllowCrossTenantReplication default value update * Update changelog * Update changelog * Update AllowPublicBlobAccess description
1 parent 9cfdbb6 commit 1e88f3b

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Defaults of AllowBlobPublicAccess and AllowCrossTenantReplication when creating a storage account were set to false by server changes. Please refer to https://techcommunity.microsoft.com/t5/azure-storage-blog/azure-storage-updating-some-default-security-settings-on-new/ba-p/3819554
22+
- `New-AzStorageAccount`
2123
* Supprted filter when listing file shares with management plane cmdlet
2224
- `Get-AzRmStorageShare`
2325

src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccount.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626

2727
namespace Microsoft.Azure.Commands.Management.Storage
2828
{
29-
[GenericBreakingChangeWithVersion("Default value of AllowBlobPublicAccess and AllowCrossTenantReplication settings on storage account will be changed to False in the future release. \n" +
30-
"When AllowBlobPublicAccess is False on a storage account, container ACLs cannot be configured to allow anonymous access to blobs within the storage account. \n" +
31-
"When AllowCrossTenantReplication is False on a storage account, cross AAD tenant object replication is not allowed when setting up Object Replication policies. Target version is for reference only, it might be changed by service plan.",
32-
"11.2.0", "6.2.0",
33-
OldWay = "AllowBlobPublicAccess and AllowCrossTenantReplication are set to True by defult.",
34-
NewWay = "AllowBlobPublicAccess and AllowCrossTenantReplication are set to False by default.")]
3529
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "StorageAccount", DefaultParameterSetName = AzureActiveDirectoryDomainServicesForFileParameterSet), OutputType(typeof(PSStorageAccount))]
3630
public class NewAzureStorageAccountCommand : StorageAccountBaseCmdlet
3731
{
@@ -481,7 +475,7 @@ public int KeyExpirationPeriodInDay
481475

482476
[Parameter(
483477
Mandatory = false,
484-
HelpMessage = "Allow public access to all blobs or containers in the storage account. The default interpretation is true for this property.")]
478+
HelpMessage = "Allow anonymous access to all blobs or containers in the storage account. The default interpretation is false for this property.")]
485479
[ValidateNotNullOrEmpty]
486480
public bool AllowBlobPublicAccess
487481
{
@@ -554,7 +548,7 @@ public bool EnableNfsV3
554548

555549
[Parameter(
556550
Mandatory = false,
557-
HelpMessage = "Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is true for this property.")]
551+
HelpMessage = "Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is false for this property.")]
558552
[ValidateNotNullOrEmpty]
559553
public bool AllowCrossTenantReplication
560554
{

src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public bool EnableActiveDirectoryDomainServicesForFile
394394

395395
[Parameter(
396396
Mandatory = false,
397-
HelpMessage = "Allow or disallow public access to all blobs or containers in the storage account.")]
397+
HelpMessage = "Allow or disallow anonymous access to all blobs or containers in the storage account.")]
398398
[ValidateNotNullOrEmpty]
399399
public bool AllowBlobPublicAccess
400400
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ Accept wildcard characters: False
524524
```
525525
526526
### -AllowBlobPublicAccess
527-
Allow public access to all blobs or containers in the storage account. The default interpretation is true for this property.
527+
Allow anonymous access to all blobs or containers in the storage account. The default interpretation is false for this property.
528528
529529
```yaml
530530
Type: System.Boolean
@@ -539,7 +539,7 @@ Accept wildcard characters: False
539539
```
540540
541541
### -AllowCrossTenantReplication
542-
Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is true for this property.
542+
Gets or sets allow or disallow cross Microsoft Entra tenant object replication. The default interpretation is false for this property.
543543
544544
```yaml
545545
Type: System.Boolean

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ Accept wildcard characters: False
590590
```
591591
592592
### -AllowBlobPublicAccess
593-
Allow or disallow public access to all blobs or containers in the storage account.
593+
Allow or disallow anonymous access to all blobs or containers in the storage account.
594594
595595
```yaml
596596
Type: System.Boolean

0 commit comments

Comments
 (0)