Skip to content

Commit 867ce18

Browse files
yifanz0isra-fel
andauthored
[Storage] Add warning message for AllowBlobPublicAccess default behavior change (#20679)
* Add warning for AllowBlobPublicAccess default behavior change * add changelog * update message * Update warning message --------- Co-authored-by: Yeming Liu <[email protected]>
1 parent 62745f1 commit 867ce18

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
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+
* Add a warning message for the upcoming breaking change when creating a Storage account
22+
- `New-AzStorageAccount`
2123
* Removed the ValidateSet of StandardBlobTier parameter
2224
- `Copy-AzStorageBlob`
2325
- `Set-AzStorageBlobContent`

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@
2222
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2323
using System;
2424
using System.Collections.Generic;
25+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2526

2627
namespace Microsoft.Azure.Commands.Management.Storage
2728
{
29+
[GenericBreakingChange("Default value of AllowBlobPublicAccess will be changed from True to False in a future release. " +
30+
"When AllowBlobPublicAccess is False on a storage account, it is not permitted to configure container ACLs to allow anonymous access to blobs within the storage account.",
31+
OldWay = "AllowBlobPublicAccess is set to True by defult.",
32+
NewWay = "AllowBlobPublicAccess is set to False by default.")]
2833
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "StorageAccount", DefaultParameterSetName = AzureActiveDirectoryDomainServicesForFileParameterSet), OutputType(typeof(PSStorageAccount))]
2934
public class NewAzureStorageAccountCommand : StorageAccountBaseCmdlet
3035
{

0 commit comments

Comments
 (0)