Skip to content

Commit 320fbf0

Browse files
authored
Add warning message (#21935)
1 parent 3915435 commit 320fbf0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
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 an upcoming breaking change when creating a storage account
22+
- `New-AzStorageAccount`
2123

2224
## Version 5.7.0
2325
* Fixed issue of getting a single blob with leading slashes

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626

2727
namespace Microsoft.Azure.Commands.Management.Storage
2828
{
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.")]
29+
[GenericBreakingChange("Default value of AllowBlobPublicAccess and AllowCrossTenantReplication will be changed from True to False in a future release. \n" +
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. \n" +
31+
"When AllowCrossTenantReplication is False on a storage account, cross AAD tenant object replication is not allowed.",
32+
OldWay = "AllowBlobPublicAccess and AllowCrossTenantReplication are set to True by defult.",
33+
NewWay = "AllowBlobPublicAccess and AllowCrossTenantReplication are set to False by default.")]
3334
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "StorageAccount", DefaultParameterSetName = AzureActiveDirectoryDomainServicesForFileParameterSet), OutputType(typeof(PSStorageAccount))]
3435
public class NewAzureStorageAccountCommand : StorageAccountBaseCmdlet
3536
{

0 commit comments

Comments
 (0)